/* Modern Luxury Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.page-header {
    padding-top: 0;
    padding-bottom: 3rem;
    text-align: center;
}

.page-header-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.registration-card {
    background: rgba(30, 41, 59, 0.3);
    /* Glassmorphism base */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Decorative subtle glow */
.registration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.form-section-title {
    font-size: 1.35rem;
    color: var(--text-main);
    margin: 2.5rem 0 2rem;
    /* Spacing around section headers */
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-section-title i {
    color: var(--primary);
    background: rgba(56, 189, 248, 0.15);
    padding: 0.5rem;
    border-radius: 10px;
    width: 36px;
    height: 36px;
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: 'Prompt', sans-serif;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(15, 23, 42, 0.7);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Select Styling */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

select.form-control option {
    background-color: var(--bg-secondary);
    color: var(--text-main);
    padding: 1rem;
}

/* Checkbox & Terms */
.checkbox-wrapper {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(56, 189, 248, 0.05);
    /* Very subtle tint */
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.checkbox-wrapper:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.checkbox-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--primary);
}

.required {
    color: #ef4444;
    margin-left: 4px;
}

/* Button override for form */
.btn-submit {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    padding: 1.25rem;
    font-size: 1.1rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    flex-direction: column;
    gap: 1.5rem;
}

.loading-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(56, 189, 248, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .registration-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-control {
        font-size: 16px;
        /* Prevent IOS zoom */
    }
}