/* =============================================================================
   lib/styles/pages/contact_page.css — Filtra-Core Contact Page
   ============================================================================= */

.contact-page { display: flex; flex-direction: column; min-height: 100vh; }
.contact-page__main { flex: 1 0 auto; outline: none; }

/* =============================================================================
   HERO HEADER (Fixed Alignment & Grid Background)
   ============================================================================= */

.contact-page__hero-section {
    position: relative;
    background-color: var(--color-primary, #0B172A);
    background-image: 
        linear-gradient(rgba(0, 180, 216, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 216, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow: hidden;
}

.contact-page__hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.contact-page__hero { 
    position: relative;
    z-index: 1;
    padding-top: var(--space-3xl, 48px); 
    padding-bottom: var(--space-3xl, 48px); 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-page__hero .breadcrumb {
    justify-content: center;
    margin-bottom: 24px;
}

.contact-page__hero-badge { 
    margin-top: 16px; 
    margin-bottom: 24px; 
    display: inline-block;
}

.contact-page__hero-title {
    font-family: var(--font-heading, 'Inter', sans-serif);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    color: #E2E8F0;
    margin: 0 0 24px;
    max-width: 680px;
}

.contact-page__hero-subtitle {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.80);
    margin: 0 auto; 
    max-width: 580px;
}

@media (max-width: 639px) { 
    .contact-page__hero-title { font-size: 32px; } 
    .contact-page__hero-subtitle { font-size: 16px; } 
}
@media (min-width: 640px) and (max-width: 1023px) { 
    .contact-page__hero-title { font-size: 40px; } 
}

/* =============================================================================
   FORM PANEL & PROGRESS
   ============================================================================= */

/* The entire left column wrapper */
.contact-page__form-panel { 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    padding: 32px; 
    background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%); 
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(11, 23, 42, 0.05); 
    border: 1px solid #E5E7EB;
    box-sizing: border-box;
}

/* Progress bar wrapper */
.contact-page__progress { 
    background-color: #FFFFFF; 
    border: 1px solid #E5E7EB; 
    border-radius: 8px; 
    padding: 16px 20px; 
    margin-bottom: 24px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.contact-page__progress-track { width: 100%; height: 6px; background-color: #F3F4F6; border-radius: 9999px; overflow: hidden; }
.contact-page__progress-fill { height: 100%; background-color: var(--color-gold, #F59E0B); border-radius: 9999px; transition: width 0.35s ease; }

.contact-page__form { display: flex; flex-direction: column; width: 100%; }

/* =============================================================================
   FORM SECTIONS & FIELD SPACING
   ============================================================================= */
.contact-page__form-section { 
    background-color: #FFFFFF; 
    border: 1px solid #E5E7EB; 
    border-radius: 8px; 
    padding: 28px 28px 24px; 
    margin-bottom: 24px; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.contact-page__form-section:last-child { margin-bottom: 0; }
.contact-page__form-section > div { margin-bottom: 24px; }
.contact-page__form-section > div:last-child { margin-bottom: 0; }

/* GRID LAYOUT FIXES */
.d-grid { display: grid; gap: 24px; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 768px) {
    .grid-cols-2 { grid-template-columns: 1fr; }
}

/* LABEL & INPUT SPACING FIX */
.contact-page__form-section label {
    display: block;
    margin-bottom: 8px !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary, #0A192F);
}

.contact-page__form-section input[type="text"],
.contact-page__form-section input[type="email"],
.contact-page__form-section input[type="tel"],
.contact-page__form-section select,
.contact-page__form-section textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.contact-page__form-section input[type="checkbox"] {
    display: inline-block;
    width: auto;
    margin-right: 8px;
}

.contact-page__form-section .checkbox-group label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0 !important;
    font-weight: 400;
}

/* =============================================================================
   SIDEBAR 
   ============================================================================= */
.contact-page__sidebar { 
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
    position: sticky;
    top: 100px; 
    align-self: flex-start; 
}

.contact-page__sidebar-card {
    background-color: #FFFFFF; 
    border: 1px solid #E5E7EB; 
    border-radius: 8px; 
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* =============================================================================
   WHAT HAPPENS NEXT
   ============================================================================= */
.contact-page__sidebar-card ol {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.contact-page__sidebar-card li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-page__sidebar-card li > div:first-child {
    flex-shrink: 0;
    width: 32px; 
    height: 32px;
    background-color: var(--color-primary, #0B172A); 
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.contact-page__sidebar-card li > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* =============================================================================
   ICONS FIX (Direct Contact & Guarantee)
   ============================================================================= */
.contact-page__sidebar-card a,
.contact-page__sidebar-card .flex-align-center {
    display: flex;
    align-items: center;
    gap: 12px; 
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--color-dark-charcoal, #333333);
}

.contact-page__sidebar-card a:hover {
    color: var(--color-accent, #007BFF);
}

.contact-page__sidebar-card .fa-solid {
    width: 20px; 
    text-align: center;
    color: var(--color-accent, #007BFF);
}

/* =============================================================================
   MOBILE FIXES (Full Width Adjustments)
   ============================================================================= */
@media (max-width: 1023px) { 
    .contact-page__sidebar { position: static; top: auto; width: 100%; box-sizing: border-box; } 
}

@media (max-width: 767px) {
    /* Remove padding from the main container on mobile so the form can stretch */
    .contact-page__main .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Reduce the padding of the form panel to stretch wider */
    .contact-page__form-panel { 
        padding: 0 !important; /* Remove outer panel padding */
        width: 100% !important;
        background: transparent !important; /* Make background transparent so inner sections provide the white background */
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Make the inner sections touch the edge of the mobile screen slightly more */
    .contact-page__form-section { 
        padding: 20px 16px !important; 
        border-radius: 8px !important;
    }

    .contact-page__progress {
        padding: 16px !important;
    }
}