/* Forms CSS - InfinitySpace42 */
/* Separate CSS file for form styling to keep main styles.css manageable */

/* Form Container Styles */
.custom-form-container {
    width: min(100%, 800px);
    max-width: 100%;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(28, 31, 38, 0.55);
    border-radius: 18px;
    border: 1px solid rgba(0, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(28, 31, 38, 0.45);
}

.form-footer-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    line-height: 1.5;
}

.form-footer-note a {
    color: var(--primary-cyan);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.form-login-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.35rem 0 0;
    line-height: 1.4;
}

.form-login-hint a,
.form-login-hint button {
    color: var(--primary-cyan);
    text-decoration: underline;
    text-decoration-style: dotted;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.form-login-hint button:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

.form-login-hint.is-hidden {
    display: none;
}

.google-login-cta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
}

.google-login-cta.is-hidden {
    display: none;
}

.google-login-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.google-login-button:hover {
    background: rgba(0, 255, 255, 0.18);
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.15);
}

.google-login-button:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

/* Sport Selection Buttons */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.sport-option {
    padding: 0.85rem 1.1rem;
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(28, 31, 38, 0.55);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;
    outline: none;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sport-option .sport-label {
    flex: 1 1 auto;
}

.sport-option .sport-count {
    min-width: 2.4rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.3s ease, color 0.3s ease;
}

.sport-option:hover {
    background: rgba(0, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.15);
    border-color: var(--primary-cyan);
}

.sport-option.selected {
    background: rgba(0, 255, 255, 0.15);
    color: var(--primary-cyan);
    font-weight: 600;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.25);
    border-color: var(--primary-cyan);
}

.sport-option.selected .sport-count {
    background: rgba(0, 255, 255, 0.95);
    color: #08131f;
}

.sport-option.selected:hover {
    background: rgba(0, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* Form Input Styles */
.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(0, 255, 255, 0.45);
    border-radius: 12px;
    background: rgba(28, 31, 38, 0.65);
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
    backdrop-filter: blur(6px);
}

.form-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15);
    background: rgba(28, 31, 38, 0.8);
}

.form-input.highlighted-input {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.3);
    background: rgba(28, 31, 38, 0.8);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-field label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

/* Contact Grid */
/* Textarea Styles */
.form-textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(0, 255, 255, 0.45);
    border-radius: 12px;
    background: rgba(28, 31, 38, 0.65);
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(6px);
}

.form-textarea:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15);
    background: rgba(28, 31, 38, 0.8);
}

.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* Submit Button */
.form-submit {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-cyan), #00b7ff);
    color: #000;
    border: none;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.form-actions .form-submit {
    margin-top: 0;
}

.form-submit-secondary {
    background: transparent;
    color: var(--primary-cyan);
    border: 2px solid var(--primary-cyan);
    box-shadow: none;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(0, 255, 255, 0.2);
}

.form-submit-secondary:hover {
    transform: translateY(-3px);
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 18px 35px rgba(0, 255, 255, 0.3);
}

.form-submit.is-loading {
    cursor: progress;
    opacity: 0.75;
    transform: none;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    transition: opacity 0.3s ease;
}

.form-status.is-hidden {
    display: none;
}

.form-status.is-success {
    color: var(--primary-cyan);
}

.form-status.is-error {
    color: #ff6b6b;
}

.form-heading {
    text-align: center;
    font-size: 1.4rem;
    color: var(--primary-cyan);
    margin-bottom: 0.75rem;
}

.form-subheading {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .custom-form-container {
        width: 100%;
        margin: 0;
        padding: 1.5rem;
        border-radius: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .sport-option {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(28, 31, 38, 0.95);
    border: 2px solid var(--primary-cyan);
    border-radius: 15px;
    padding: 2rem;
    z-index: 10000;
    backdrop-filter: blur(10px);
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 204, 0.3);
    border-top: 4px solid var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: 1rem;
    margin-top: 1rem;
}

/* AI Response Popup */
.ai-response-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(28, 31, 38, 0.95);
    border: 2px solid var(--primary-cyan);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(28, 31, 38, 0.8);
    backdrop-filter: blur(10px);
}

.ai-response-popup h3 {
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    text-align: center;
}

.ai-response-popup p {
    color: white;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ai-response-popup .close-btn {
    background: var(--primary-cyan);
    color: black;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.ai-response-popup .close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 204, 0.4);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 31, 38, 0.7);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-form-container {
        width: 100%;
        margin: 0;
        padding: 1.5rem;
        border-radius: 0;
    }
    
    .sports-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    
    .sport-option {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .ai-response-popup {
        padding: 1.5rem;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .sports-grid {
        grid-template-columns: 1fr;
    }
    
    .sport-option {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .form-submit {
        width: 100%;
        padding: 1rem;
    }
}
