/* ===========================
   REGISTRATION MODAL STYLES
   =========================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(18, 18, 24, 0.98), rgba(30, 30, 40, 0.98));
    border: 1px solid rgba(199, 125, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(199, 125, 255, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    color: #EF4444;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-title {
    font-family: var(--font-headings);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--color-gray);
    margin: 0;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-headings);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.required {
    color: #EF4444;
}

.form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--color-white);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-purple-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(199, 125, 255, 0.2);
}

.form-group input:valid {
    border-color: rgba(34, 197, 94, 0.5);
}

.modal-cta-btn {
    background: linear-gradient(135deg, var(--color-purple-primary), #9D4EDD);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-family: var(--font-headings);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    box-shadow: 0 4px 20px rgba(199, 125, 255, 0.3);
}

.modal-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(199, 125, 255, 0.5);
    background: linear-gradient(135deg, #9D4EDD, var(--color-purple-primary));
}

.modal-cta-btn:active {
    transform: translateY(0);
}

.modal-cta-btn i {
    transition: transform 0.3s ease;
}

.modal-cta-btn:hover i {
    transform: translateX(4px);
}

/* Form Agreement Text */
.form-agreement {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.agreement-link {
    color: var(--color-purple-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.agreement-link:hover {
    color: #C77DFF;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        max-width: 95%;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-subtitle {
        font-size: 13px;
    }

    .registration-form {
        gap: 16px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .modal-cta-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .modal-content {
        padding: 24px 16px;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .modal-title {
        font-size: 20px;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Fix button style to match CTA */
button.cta-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
