/* ===== FORMS ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

/* High-contrast dropdown options for dark theme (age select, etc.) */
.form-group select option {
    background-color: #1e1e1e; /* dark surface so white text is readable */
    color: #ffffff;
}

/* Windows/Firefox often ignore option background on focus; ensure select remains readable */
.form-group select {
    -webkit-text-fill-color: currentColor; /* Safari readability */
}

.form-group label {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

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

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--turquoise-light);
    background: rgba(255, 255, 255, 0.18);
}

.form-group.focused {
    transform: scale(1.02);
}

/* Interest Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

/* Reduce bottom space after the interest grid (player & company) */
.form-group:has(.interests-grid) {
    margin-bottom: var(--spacing-sm);
}

/* Tighter spacing for consent groups */
.consent-group {
    margin-bottom: var(--spacing-md);
}

/* Slightly tighter on mobile */
@media (max-width: 480px) {
    .form-group:has(.interests-grid) {
        margin-bottom: var(--spacing-xs);
    }
    .consent-group {
        margin-bottom: var(--spacing-sm);
    }
}

/* Form Messages */
.form-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: rgba(231, 76, 60, 0.1);
    border-radius: var(--radius-sm);
    border-left: 3px solid #e74c3c;
    animation: slideInUp 0.3s ease;
}

.form-success {
    color: #27ae60;
    font-size: 1rem;
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(39, 174, 96, 0.1);
    border-radius: var(--radius-md);
    border-left: 3px solid #27ae60;
    text-align: center;
    animation: slideInUp 0.5s ease;
}

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