/* ============================================
   Contact Us Page Styles - MD3 / Web3
   Matches the learn-to-play and about page aesthetic
   ============================================ */

.contact-main {
    padding-bottom: 80px;
}

/* Match blog & about page width */
.contact-main .section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.contact-hero-section {
    padding: 60px 24px 48px;
    text-align: center;
}

.contact-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.eyebrow-label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--md-sys-color-primary);
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 12px;
}

.contact-hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: var(--md-sys-color-on-surface);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.contact-hero-section p {
    font-size: 1.2rem;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   Body Layout
   ============================================ */
.contact-body-section {
    padding: 0 24px 40px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* ============================================
   Form Card (Glassmorphism)
   ============================================ */
.contact-form-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 116, 224, 0.15);
}

.contact-card-icon md-icon {
    --md-icon-size: 28px;
    font-size: 28px;
}

.contact-card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--md-sys-color-on-surface);
}

.contact-card-header p {
    font-size: 0.95rem;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
}

/* ============================================
   Form Rows
   ============================================ */
.tfp-contact-form .contact-form-row {
    margin-bottom: 20px;
}

.tfp-contact-form .contact-form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tfp-contact-form md-filled-text-field {
    width: 100%;
}

.tfp-contact-form .recaptcha-row {
    margin: 8px 0 24px;
}

/* GDPR Consent */
.tfp-contact-form .gdpr-row {
    margin-top: 8px;
    margin-bottom: 24px;
}

.gdpr-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.5;
}

.gdpr-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--md-sys-color-primary);
    cursor: pointer;
}

.gdpr-label a {
    color: var(--md-sys-color-primary);
    font-weight: 600;
    text-decoration: none;
}

.gdpr-label a:hover {
    text-decoration: underline;
}

.gdpr-row.gdpr-error .gdpr-label {
    color: #c1373d;
}

.gdpr-row.gdpr-error input[type="checkbox"] {
    outline: 2px solid #c1373d;
    border-radius: 2px;
}

.tfp-contact-form .contact-form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
}

/* ============================================
   Right Sidebar
   ============================================ */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Info Block */
.contact-info-block {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.contact-info-block h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--md-sys-color-on-surface);
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon-chip {
    width: 44px;
    height: 44px;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon-chip.small {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--md-sys-color-on-surface-variant);
}

.info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
}

.info-value a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    font-weight: 600;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Social icons (same networks / order as desktop sidebar promo) */
.contact-social-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-social-section .info-label {
    display: block;
    margin-bottom: 12px;
}

.contact-sidebar-social {
    justify-content: flex-start;
    margin-top: 0;
    flex-wrap: wrap;
}

/* Promise Block */
.contact-promise-block {
    background: var(--md-sys-color-primary-container);
    border-radius: 20px;
    padding: 28px;
}

.promise-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.promise-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--md-sys-color-on-primary-container);
}

.promise-item .info-icon-chip.small {
    background: rgba(255, 255, 255, 0.35);
    color: var(--md-sys-color-on-primary-container);
    flex-shrink: 0;
}

.promise-item strong {
    color: var(--md-sys-color-on-primary-container);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 768px) {
    .contact-hero-section {
        padding: 40px 20px 32px;
    }

    .contact-hero-section h1 {
        font-size: 2.25rem;
    }

    .contact-hero-section p {
        font-size: 1rem;
    }

    .contact-body-section {
        padding: 0 16px 40px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .contact-card-header {
        margin-bottom: 24px;
    }

    .tfp-contact-form .contact-form-row.two-col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tfp-contact-form .contact-form-actions {
        justify-content: stretch;
    }

    .tfp-contact-form .contact-form-actions md-filled-button {
        width: 100%;
    }

    .contact-sidebar {
        flex-direction: column;
    }
}