/* ==========================================================================
   HIGH-PERFORMANCE CONTACT PAGE STYLING (contact.css)
   ========================================================================== */

/* Core Layout Wrapper & Root Settings */
.contact-page-wrapper {
    background-color: #F8FAFC;
    color: #1E293B;
    font-family: inherit;
    width: 100%;
    overflow-x: hidden;
}

/* Wide Container with Minimal Side Whitespace for Ultra-Wide / Desktop */
.compact-container {
    max-width: 1280px;
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Accent Lines */
.small-accent-indicator {
    height: 3px;
    width: 36px;
    background-color: #BA1C23;
    margin-bottom: 16px;
    border-radius: 2px;
}

.small-accent-indicator-gold {
    height: 3px;
    width: 36px;
    background-color: #F2A900;
    margin-bottom: 16px;
    border-radius: 2px;
}

/* --------------------------------------------------
   SECTION 1: HERO BANNER SECTION (60px Vertical Padding)
-------------------------------------------------- */
.contact-hero {
    position: relative;
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 76, 42, 0.92) 0%, rgba(17, 24, 39, 0.88) 100%),
                url('../images/hero-banner.jpg') center/cover no-repeat;
    color: #FFFFFF;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero .hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

.contact-hero .hero-content {
    position: relative;
    z-index: 2;
}

.contact-hero .micro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #F2A900;
    border: 1px solid rgba(242, 169, 0, 0.4);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 14px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.contact-hero p {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    font-weight: 400;
}

/* --------------------------------------------------
   SECTION 2: MAIN CONTACT SECTION (60px Vertical Padding)
-------------------------------------------------- */
.contact-main-section {
    padding: 60px 0;
}

/* Contact Info Top Cards Grid */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.contact-info-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 76, 42, 0.08);
    border-color: rgba(15, 76, 42, 0.3);
}

.contact-info-card .card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(15, 76, 42, 0.08);
    color: #0F4C2A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-info-card:hover .card-icon {
    background-color: #0F4C2A;
    color: #FFFFFF;
}

.contact-info-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px 0;
}

.contact-info-card p {
    font-size: 0.9rem;
    color: #4B5563;
    line-height: 1.5;
    margin: 0 0 18px 0;
    flex-grow: 1;
}

.contact-link {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F4C2A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #BA1C23;
    text-decoration: underline;
}

.contact-text-highlight {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

/* --------------------------------------------------
   MAIN CONTENT SPLIT (Form & Sidebar Grid)
-------------------------------------------------- */
.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

@media (min-width: 992px) {
    .contact-content-grid {
        grid-template-columns: 1.6fr 1fr;
        align-items: start;
    }
}

/* Form Styles */
.contact-form-container {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.form-header {
    margin-bottom: 24px;
}

.section-subtitle {
    display: inline-block;
    color: #BA1C23;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.form-header h2 {
    color: #111827;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.form-header p {
    font-size: 0.95rem;
    color: #4B5563;
    margin: 0;
    line-height: 1.55;
}

.main-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .form-row-2col {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
}

.form-group label .required {
    color: #BA1C23;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #111827;
    background-color: #F8FAFC;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #0F4C2A;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(15, 76, 42, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #0F4C2A;
    color: #FFFFFF;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    align-self: flex-start;
    margin-top: 8px;
}

.btn-submit-contact:hover {
    background-color: #BA1C23;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(186, 28, 35, 0.25);
}

.btn-submit-contact i {
    transition: transform 0.2s ease;
}

.btn-submit-contact:hover i {
    transform: translateX(4px);
}

/* Sidebar Box Styles */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.sidebar-box h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-box h3 i {
    color: #0F4C2A;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding-bottom: 10px;
    border-bottom: 1px dashed #E5E7EB;
}

.hours-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hours-list li span {
    color: #4B5563;
    font-weight: 500;
}

.hours-list li strong {
    color: #111827;
    font-weight: 700;
}

.emergency-note {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.emergency-note i {
    font-size: 1rem;
    flex-shrink: 0;
}

.trust-check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trust-check-list li {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.trust-check-list li i {
    color: #0F4C2A;
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.sidebar-quote-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F8FAFC;
    border: 1px solid #E5E7EB;
    color: #0F4C2A;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sidebar-quote-cta:hover {
    background-color: #0F4C2A;
    border-color: #0F4C2A;
    color: #FFFFFF;
}

.sidebar-quote-cta i {
    transition: transform 0.2s ease;
}

.sidebar-quote-cta:hover i {
    transform: translateX(4px);
}

/* --------------------------------------------------
   RESPONSIVE BREAKPOINTS & MOBILE OPTIMIZATIONS
-------------------------------------------------- */
@media (max-width: 768px) {
    .contact-hero,
    .contact-main-section {
        padding: 60px 0;
    }

    .compact-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .contact-form-container,
    .sidebar-box {
        padding: 24px;
    }

    .btn-submit-contact {
        width: 100%;
    }
}