/* Reset spacing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* Full screen image section */
.hero {
    width: 100%;
    height: 100vh;
    background-image: url("../images/bg.png");
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

/* Tablet and Mobile background image */
@media (max-width: 1024px) {
    .hero {
        background-image: url("../images/mobile-bg.png");
        background-size: cover;
        background-position: center center;
        background-attachment: fixed;
    }
}

/* Footer */
.footer {
    width: 100%;
    padding: 24px 0 40px 0;
    text-align: center;
    position: fixed;
    left: 0;
    bottom: 0;
}

/* Register button */
.register-btn {
    text-decoration: none;
    background: #d6e024;
    color: #1a1a1a;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: scaleInOut 2s ease-in-out infinite;
}

@keyframes scaleInOut {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.register-btn:hover {
    background: #bfc920;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 224, 36, 0.5);
    animation: none;
}

strong a {
    color: #0080ff;
    text-decoration: none;
}

/* ------------------------------ */
/* RESPONSIVE BREAKPOINTS         */
/* ------------------------------ */

/* Tablets */
@media (max-width: 768px) {
    .register-btn {
        font-size: 16px;
        padding: 1.5vh 22px;
    }

    .footer {
        padding: 2vh 0 4vh 0;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .register-btn {
        font-size: 18px;
        padding: 1.2vh 20px;
    }

    .footer {
        padding: 2vh 0 5vh 0;
    }
}

/* Adjust for very short screens */
@media (max-height: 600px) {
    .register-btn {
        font-size: 14px;
        padding: 1vh 18px;
    }

    .footer {
        padding: 1.5vh 0 3vh 0;
    }
}

/* ------------------------------ */
/* REGISTRATION MODAL STYLES      */
/* ------------------------------ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 15px;
    overflow: hidden;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 25px 30px 20px;
    border-radius: 3px;
    max-width: 550px;
    width: 100%;
    max-height: calc(100vh - 30px);
    position: relative;
    margin: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
                inset 0 0 0 2px rgba(0, 128, 255, 0.3);
    animation: slideDown 0.4s ease-out;
    border: 3px solid #0080ff;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #0080ff;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #FFD700;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1;
    z-index: 10;
}

.close-btn:hover {
    color: #0080ff;
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: 18px;
    color: #fff;
    text-align: center;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 0px #0080ff,
                 6px 6px 10px rgba(0, 0, 0, 0.8);
    position: relative;
    padding-bottom: 12px;
}

.modal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0080ff, #FFD700);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #444;
    border-radius: 2px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group input:focus {
    outline: none;
    border-color: #0080ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #999;
    font-style: italic;
}

/* Hide number input arrows/spinners */
.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Error message styling */
.error-message {
    display: block;
    color: #ff6b6b;
    font-size: 11px;
    margin-top: 4px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    min-height: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.2s ease;
}

.error-message:not(:empty) {
    height: auto;
    min-height: 16px;
}

.input-error {
    border-color: #ff4d4d !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2) !important;
}

.submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #0080ff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 128, 255, 0.4),
                inset 0 -2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5),
                inset 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 2px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.form-message.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    border: 2px solid #1e7e34;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.form-message.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    border: 2px solid #bd2130;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.form-message.info {
    background: linear-gradient(135deg, #0080ff 0%, #17a2b8 100%);
    color: #fff;
    border: 2px solid #117a8b;
    box-shadow: 0 4px 15px rgba(0, 128, 255, 0.4);
}

/* Terms Checkbox */
.terms-checkbox {
    margin: 15px 0 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0080ff;
}

.terms-checkbox label {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    text-transform: none;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.terms-link {
    color: #FFD700;
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.3s;
}

.terms-link:hover {
    color: #0080ff;
}

/* ------------------------------ */
/* TERMS & CONDITIONS MODAL       */
/* ------------------------------ */

.terms-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.terms-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    width: 95%;
    height: 95vh;
    max-width: 900px;
    border-radius: 3px;
    border: 3px solid #0080ff;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8),
                inset 0 0 0 2px rgba(0, 128, 255, 0.3);
    display: flex;
    flex-direction: column;
    animation: zoomIn 0.4s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.terms-header {
    padding: 20px 30px;
    border-bottom: 2px solid #0080ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 128, 255, 0.1);
}

.terms-header h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 2px 2px 0px #0080ff,
                 4px 4px 8px rgba(0, 0, 0, 0.8);
}

.terms-close-btn {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.terms-close-btn:hover {
    color: #FFD700;
    transform: rotate(90deg);
}

.terms-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px;
    color: #fff;
}

.terms-body::-webkit-scrollbar {
    width: 10px;
}

.terms-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.terms-body::-webkit-scrollbar-thumb {
    background: #0080ff;
    border-radius: 10px;
}

.terms-body::-webkit-scrollbar-thumb:hover {
    background: #FFD700;
}

.terms-body h3 {
    color: #FFD700;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.terms-section {
    margin-bottom: 25px;
}

.terms-section h4 {
    color: #0080ff;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.terms-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.terms-section li {
    padding: 8px 0 8px 25px;
    position: relative;
    line-height: 1.6;
    font-size: 14px;
}

.terms-section li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #FFD700;
    font-size: 10px;
}

.terms-section p {
    line-height: 1.6;
    font-size: 14px;
    margin: 10px 0;
}

.terms-section strong {
    color: #0080ff;
    font-weight: 800;
}

.contact-info {
    color: #FFD700;
    font-weight: 700;
    font-size: 16px;
}

.contact-info a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #0080ff;
}

.terms-footer {
    padding: 20px 30px;
    border-top: 2px solid #0080ff;
    background: rgba(0, 128, 255, 0.1);
}

.terms-accept-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0080ff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 128, 255, 0.4),
                inset 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.terms-accept-btn:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5),
                inset 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.terms-accept-btn:active {
    transform: translateY(0);
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .modal {
        padding: 12px;
    }

    .modal-content {
        padding: 20px 22px 18px;
        max-width: 95%;
        border-width: 2px;
        max-height: calc(100vh - 24px);
    }

    .modal-content h2 {
        font-size: 22px;
        letter-spacing: 1.5px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .modal-content h2::after {
        width: 50px;
        height: 2px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 14px;
        letter-spacing: 1.5px;
        margin-top: 8px;
    }

    .close-btn {
        font-size: 26px;
        top: 8px;
        right: 12px;
    }

    .form-message {
        font-size: 11px;
        padding: 8px;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 8px;
    }

    .modal-content {
        padding: 18px 16px 15px;
        max-width: 100%;
        border-width: 2px;
        max-height: calc(100vh - 16px);
    }

    .modal-content h2 {
        font-size: 18px;
        letter-spacing: 1px;
        margin-bottom: 12px;
        padding-bottom: 8px;
        text-shadow: 2px 2px 0px #0080ff,
                     4px 4px 8px rgba(0, 0, 0, 0.8);
    }

    .modal-content h2::after {
        width: 40px;
        height: 2px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-group label {
        font-size: 10px;
        margin-bottom: 4px;
        letter-spacing: 0.5px;
    }

    .form-group input {
        padding: 9px 10px;
        font-size: 13px;
        border-width: 2px;
    }

    .submit-btn {
        padding: 11px;
        font-size: 13px;
        letter-spacing: 1px;
        margin-top: 6px;
    }

    .close-btn {
        font-size: 24px;
        top: 6px;
        right: 10px;
    }

    .form-message {
        font-size: 10px;
        padding: 8px;
        margin-top: 6px;
    }
}

/* Extra small devices (landscape phones) */
@media (max-width: 360px) {
    .modal {
        padding: 6px;
    }

    .modal-content {
        padding: 15px 14px 12px;
        max-height: calc(100vh - 12px);
    }

    .modal-content h2 {
        font-size: 16px;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .modal-content h2::after {
        width: 35px;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .form-group label {
        font-size: 9px;
        margin-bottom: 3px;
    }

    .form-group input {
        padding: 8px 9px;
        font-size: 12px;
    }

    .submit-btn {
        padding: 10px;
        font-size: 12px;
        margin-top: 5px;
    }

    .close-btn {
        font-size: 22px;
        top: 5px;
        right: 8px;
    }

    .form-message {
        font-size: 9px;
        padding: 6px;
        margin-top: 5px;
    }
}

/* Landscape mode for small devices */
@media (max-height: 600px) and (orientation: landscape) {
    .modal {
        padding: 5px;
        align-items: flex-start;
    }

    .modal-content {
        padding: 12px 20px 10px;
        max-height: calc(100vh - 10px);
        margin-top: 0;
    }

    .modal-content h2 {
        font-size: 16px;
        margin-bottom: 8px;
        padding-bottom: 5px;
    }

    .form-group {
        margin-bottom: 6px;
    }

    .form-group label {
        font-size: 9px;
        margin-bottom: 3px;
    }

    .form-group input {
        padding: 6px 10px;
        font-size: 12px;
    }

    .submit-btn {
        padding: 8px;
        font-size: 11px;
        margin-top: 4px;
    }

    .form-message {
        padding: 6px;
        font-size: 9px;
        margin-top: 4px;
    }

    .close-btn {
        font-size: 20px;
        top: 4px;
        right: 8px;
    }

    .terms-checkbox {
        margin: 10px 0 4px;
        gap: 6px;
    }

    .terms-checkbox input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }

    .terms-checkbox label {
        font-size: 9px;
    }

    .error-message {
        font-size: 10px;
        margin-top: 3px;
    }
}

/* ------------------------------ */
/* TERMS MODAL RESPONSIVE         */
/* ------------------------------ */

@media (max-width: 768px) {
    .terms-modal-content {
        width: 98%;
        height: 95vh;
    }

    .terms-header {
        padding: 15px 20px;
    }

    .terms-header h2 {
        font-size: 22px;
        letter-spacing: 1.5px;
    }

    .terms-close-btn {
        font-size: 30px;
    }

    .terms-body {
        padding: 20px 25px;
    }

    .terms-body h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .terms-section {
        margin-bottom: 20px;
    }

    .terms-section h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .terms-section li {
        font-size: 13px;
        padding: 6px 0 6px 20px;
    }

    .terms-section li::before {
        font-size: 9px;
    }

    .terms-section p {
        font-size: 13px;
    }

    .contact-info {
        font-size: 14px;
    }

    .terms-footer {
        padding: 15px 20px;
    }

    .terms-accept-btn {
        padding: 13px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .terms-modal-content {
        width: 100%;
        height: 95vh;
        border-radius: 0;
        border-width: 0;
    }

    .terms-header {
        padding: 12px 15px;
    }

    .terms-header h2 {
        font-size: 18px;
        letter-spacing: 1px;
        text-shadow: 2px 2px 0px #0080ff,
                     3px 3px 6px rgba(0, 0, 0, 0.8);
    }

    .terms-close-btn {
        font-size: 28px;
    }

    .terms-body {
        padding: 15px 18px;
    }

    .terms-body h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .terms-section {
        margin-bottom: 18px;
    }

    .terms-section h4 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .terms-section li {
        font-size: 12px;
        padding: 5px 0 5px 18px;
        line-height: 1.5;
    }

    .terms-section li::before {
        font-size: 8px;
    }

    .terms-section p {
        font-size: 12px;
        line-height: 1.5;
    }

    .contact-info {
        font-size: 13px;
    }

    .terms-footer {
        padding: 12px 15px;
    }

    .terms-accept-btn {
        padding: 12px;
        font-size: 14px;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 360px) {
    .terms-header h2 {
        font-size: 16px;
    }

    .terms-close-btn {
        font-size: 26px;
    }

    .terms-body {
        padding: 12px 15px;
    }

    .terms-body h3 {
        font-size: 16px;
    }

    .terms-section h4 {
        font-size: 14px;
    }

    .terms-section li {
        font-size: 11px;
        padding: 4px 0 4px 16px;
    }

    .terms-section p {
        font-size: 11px;
    }

    .contact-info {
        font-size: 12px;
    }

    .terms-accept-btn {
        padding: 11px;
        font-size: 13px;
    }
}

/* Landscape mode for terms modal */
@media (max-height: 600px) and (orientation: landscape) {
    .terms-modal-content {
        height: 95vh;
    }

    .terms-header {
        padding: 10px 20px;
    }

    .terms-header h2 {
        font-size: 18px;
    }

    .terms-close-btn {
        font-size: 26px;
    }

    .terms-body {
        padding: 15px 25px;
    }

    .terms-body h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .terms-section {
        margin-bottom: 15px;
    }

    .terms-section h4 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .terms-section li {
        font-size: 12px;
        padding: 4px 0 4px 18px;
    }

    .terms-section p {
        font-size: 12px;
    }

    .terms-footer {
        padding: 10px 20px;
    }

    .terms-accept-btn {
        padding: 10px;
        font-size: 13px;
    }
}
