/**
 * RO Service Wala – UI Patches (Placeholder)
 * ============================================================
 * Use this file for small final overrides and quick fixes only.
 * Keep this file under 250 lines.
 *
 * Loaded AFTER ui-base.css, ui-sections.css, and ui-mobile.css.
 * ============================================================
 */

/* ── AMC Plans Page Spacing & Rhythm Overrides ── */

/* Desktop Rhythm (56px–80px spacing between major content structures) */
.amc-plans-page .amc-plans-section,
.amc-plans-page .amc-comparison-section,
.amc-plans-page .amc-terms-section,
.amc-plans-page .amc-tools-section,
.amc-plans-page .amc-faq-section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
}

/* Mobile Spacing Override (< 768px: 36px–56px vertical rhythm) */
@media (max-width: 767px) {
    .amc-plans-page .amc-plans-section,
    .amc-plans-page .amc-comparison-section,
    .amc-plans-page .amc-terms-section,
    .amc-plans-page .amc-tools-section {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
    }
    
    /* FAQ Section bottom padding needs extra clearance for the sticky mobile CTA */
    .amc-plans-page .amc-faq-section {
        padding-top: 44px !important;
        padding-bottom: 80px !important;
    }
}

/* ── Global Form Submit Button Consistency ── */
#bookingForm button[type="submit"],
#contactForm button[type="submit"] {
    background: linear-gradient(135deg, #f97316, #fb923c) !important; /* Robust hex fallbacks */
    color: #ffffff !important;
    border: 1px solid #ea580c !important;
    box-shadow: 0 10px 24px rgba(249,115,22,0.24) !important;
}
#bookingForm button[type="submit"]:hover,
#contactForm button[type="submit"]:hover {
    opacity: 0.95 !important;
}

/* ── Contact Page Spacing & Rhythm Overrides ── */

/* Desktop Rhythm (56px–80px spacing between major content structures) */
.contact-page .contact-hero-section,
.contact-page .contact-info-section,
.contact-page .contact-location-section,
.contact-page .contact-areas-section,
.contact-page .contact-pricing-section,
.contact-page .contact-faq-section,
.contact-page .contact-cta-section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
}

/* Mobile Spacing Override (< 768px: 36px–56px vertical rhythm) */
@media (max-width: 767px) {
    .contact-page .contact-hero-section,
    .contact-page .contact-info-section,
    .contact-page .contact-location-section,
    .contact-page .contact-areas-section,
    .contact-page .contact-pricing-section,
    .contact-page .contact-faq-section {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
    }
    
    /* CTA Box Section bottom padding needs extra clearance for the sticky mobile CTA */
    .contact-page .contact-cta-section {
        padding-top: 44px !important;
        padding-bottom: 80px !important;
    }
}

/* ── Orange CTA Button Contrast Styling ── */
.btn-orange-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ea580c !important;
    background: linear-gradient(135deg, #f97316, #fb923c) !important; /* Robust hex fallbacks */
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(249,115,22,0.2) !important;
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.btn-orange-cta:hover {
    opacity: 0.92 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(249,115,22,0.28) !important;
}
.btn-orange-cta:active {
    transform: scale(0.97) !important;
}

/* ── Contact Page Specific Utility Fallbacks ── */
.contact-page .bg-primary {
    background-color: #08233f !important; /* Robust Navy */
}
.contact-page .text-on-primary {
    color: #ffffff !important; /* White */
}
.contact-page .text-primary {
    color: #08233f !important; /* Navy */
}
.contact-page .bg-secondary {
    background-color: #f97316 !important; /* Orange */
}
.contact-page .text-on-secondary {
    color: #ffffff !important; /* White */
}

/* ── About Us Page Spacing & Rhythm Overrides ── */

/* Desktop Rhythm (56px–80px spacing between major content structures) */
.about-page .about-hero-section,
.about-page .about-story-section,
.about-page .about-founder-section,
.about-page .about-mission-section,
.about-page .about-amc-section,
.about-page .about-team-section,
.about-page .about-services-section,
.about-page .about-stats-section,
.about-page .about-faq-section,
.about-page .about-cta-section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
}

/* Mobile Spacing Override (< 768px: 36px–56px vertical rhythm) */
@media (max-width: 767px) {
    .about-page .about-hero-section,
    .about-page .about-story-section,
    .about-page .about-founder-section,
    .about-page .about-mission-section,
    .about-page .about-amc-section,
    .about-page .about-team-section,
    .about-page .about-services-section,
    .about-page .about-stats-section,
    .about-page .about-faq-section {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
    }
    
    /* FAQ Section bottom padding needs extra clearance for the sticky mobile CTA */
    .about-page .about-cta-section {
        padding-top: 44px !important;
        padding-bottom: 80px !important;
    }
}

/* ── About Page Specific Utility Fallbacks ── */
.about-page .bg-primary,
.about-page .navy-block {
    background-color: #00288e !important; /* Robust Navy from Tailwind Config */
}
.about-page .text-primary {
    color: #00288e !important;
}
.about-page .text-on-primary {
    color: #ffffff !important;
}
.about-page .bg-secondary,
.about-page .bg-secondary-container {
    background-color: #fd761a !important; /* Orange from Tailwind Config */
}
.about-page .text-secondary {
    color: #fd761a !important;
}
.about-page .text-on-secondary {
    color: #ffffff !important;
}

/* ── Homepage Before/After Section Custom Grid Overrides ── */
.before-after-section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
}
.before-after-section .ba-slider-wrap {
    aspect-ratio: 4 / 3 !important;
    max-width: 100% !important;
}
@media (max-width: 767px) {
    .before-after-section {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
    }
}

/* ── RO Service Page Spacing & Rhythm Overrides ── */

/* Desktop Rhythm (56px–80px spacing between major content structures) */
.ro-service-page .ro-service-hero-section,
.ro-service-page .ro-service-inclusions-section,
.ro-service-page .ro-service-checklist-section,
.ro-service-page .ro-service-signs-section,
.ro-service-page .ro-service-pricing-section,
.ro-service-page .ro-service-proof-section,
.ro-service-page .ro-service-brands-section,
.ro-service-page .ro-service-how-section,
.ro-service-page .ro-service-comparison-section,
.ro-service-page .ro-service-testimonials-section,
.ro-service-page .ro-service-areas-section,
.ro-service-page .ro-service-faq-section,
.ro-service-page .ro-service-cta-section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
}

/* Mobile Spacing Override (< 768px: 36px–56px vertical rhythm) */
@media (max-width: 767px) {
    .ro-service-page .ro-service-hero-section,
    .ro-service-page .ro-service-inclusions-section,
    .ro-service-page .ro-service-checklist-section,
    .ro-service-page .ro-service-signs-section,
    .ro-service-page .ro-service-pricing-section,
    .ro-service-page .ro-service-proof-section,
    .ro-service-page .ro-service-brands-section,
    .ro-service-page .ro-service-how-section,
    .ro-service-page .ro-service-comparison-section,
    .ro-service-page .ro-service-testimonials-section,
    .ro-service-page .ro-service-areas-section,
    .ro-service-page .ro-service-faq-section {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
    }
    
    /* CTA Box Section bottom padding needs extra clearance for the sticky mobile CTA */
    .ro-service-page .ro-service-cta-section {
        padding-top: 44px !important;
        padding-bottom: 80px !important;
    }
}

/* ── RO Service Page Specific Utility Fallbacks ── */
.ro-service-page .bg-primary {
    background-color: #00288e !important; /* Robust Navy */
}
.ro-service-page .text-primary {
    color: #00288e !important;
}
.ro-service-page .text-on-primary {
    color: #ffffff !important;
}
.ro-service-page .bg-secondary {
    background-color: #fd761a !important; /* Robust Orange */
}
.ro-service-page .text-secondary {
    color: #fd761a !important;
}
.ro-service-page .text-on-secondary {
    color: #ffffff !important;
}
.ro-service-page .bg-secondary-container {
    background-color: #ffdbca !important;
}
.ro-service-page .text-on-secondary-container {
    color: #5c2400 !important;
}
.ro-service-page .border-primary {
    border-color: #00288e !important;
}
.ro-service-page .border-secondary {
    border-color: #fd761a !important;
}

/* ── RO Repair Page Spacing & Rhythm Overrides ── */

/* Desktop Rhythm (56px–80px spacing between major content structures) */
.ro-repair-page .ro-repair-hero-section,
.ro-repair-page .ro-repair-form-section,
.ro-repair-page .ro-repair-problems-section,
.ro-repair-page .ro-repair-estimator-section,
.ro-repair-page .ro-repair-tds-section,
.ro-repair-page .ro-repair-process-section,
.ro-repair-page .ro-repair-comparison-section,
.ro-repair-page .ro-repair-faq-section,
.ro-repair-page .ro-repair-cta-section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
}

/* Mobile Spacing Override (< 768px: 36px–56px vertical rhythm) */
@media (max-width: 767px) {
    .ro-repair-page .ro-repair-hero-section,
    .ro-repair-page .ro-repair-form-section,
    .ro-repair-page .ro-repair-problems-section,
    .ro-repair-page .ro-repair-estimator-section,
    .ro-repair-page .ro-repair-tds-section,
    .ro-repair-page .ro-repair-process-section,
    .ro-repair-page .ro-repair-comparison-section,
    .ro-repair-page .ro-repair-faq-section {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
    }
    
    /* FAQ Section bottom padding needs extra clearance for the sticky mobile CTA */
    .ro-repair-page .ro-repair-cta-section {
        padding-top: 44px !important;
        padding-bottom: 80px !important;
    }
}

/* ── RO Repair Page Specific Utility Fallbacks ── */
.ro-repair-page .bg-primary {
    background-color: #00288e !important; /* Robust Navy */
}
.ro-repair-page .text-primary {
    color: #00288e !important;
}
.ro-repair-page .text-on-primary {
    color: #ffffff !important;
}
.ro-repair-page .bg-secondary {
    background-color: #fd761a !important; /* Robust Orange */
}
.ro-repair-page .text-secondary {
    color: #fd761a !important;
}
.ro-repair-page .text-on-secondary {
    color: #ffffff !important;
}
.ro-repair-page .bg-secondary-container {
    background-color: #ffdbca !important;
}
.ro-repair-page .text-on-secondary-container {
    color: #5c2400 !important;
}
.ro-repair-page .bg-tertiary {
    background-color: #003272 !important; /* Dark Navy for strip */
}
.ro-repair-page .text-on-tertiary {
    color: #ffffff !important;
}
.ro-repair-page .border-primary {
    border-color: #00288e !important;
}
.ro-repair-page .border-secondary {
    border-color: #fd761a !important;
}

/* ── RO Repair Page Cost Estimator Tweaks ── */
.ro-repair-page .est-result-box {
    transition: all 0.3s ease-in-out;
}
.ro-repair-page .est-reason-item {
    border-left: 3px solid #fd761a !important;
}


/* ── RO Installation Page Spacing & Rhythm Overrides ── */

/* Desktop Rhythm (56px–80px spacing between major content structures) */
.ro-installation-page .ro-installation-hero-section,
.ro-installation-page .ro-installation-trust-section,
.ro-installation-page .ro-installation-form-section,
.ro-installation-page .ro-installation-pricing-section,
.ro-installation-page .ro-installation-suite-section,
.ro-installation-page .ro-installation-tds-section,
.ro-installation-page .ro-installation-process-section,
.ro-installation-page .ro-installation-promise-section,
.ro-installation-page .ro-installation-areas-section,
.ro-installation-page .ro-installation-faq-section,
.ro-installation-page .ro-installation-cta-section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
}

/* Mobile Spacing Override (< 768px: 36px–56px vertical rhythm) */
@media (max-width: 767px) {
    .ro-installation-page .ro-installation-hero-section,
    .ro-installation-page .ro-installation-trust-section,
    .ro-installation-page .ro-installation-form-section,
    .ro-installation-page .ro-installation-pricing-section,
    .ro-installation-page .ro-installation-suite-section,
    .ro-installation-page .ro-installation-tds-section,
    .ro-installation-page .ro-installation-process-section,
    .ro-installation-page .ro-installation-promise-section,
    .ro-installation-page .ro-installation-areas-section,
    .ro-installation-page .ro-installation-faq-section {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
    }
    
    /* CTA Box Section bottom padding needs extra clearance for the sticky mobile CTA */
    .ro-installation-page .ro-installation-cta-section {
        padding-top: 44px !important;
        padding-bottom: 80px !important;
    }
}

/* ── RO Installation Page Specific Utility Fallbacks ── */
.ro-installation-page .bg-primary {
    background-color: #00288e !important;
}
.ro-installation-page .text-primary {
    color: #00288e !important;
}
.ro-installation-page .text-on-primary {
    color: #ffffff !important;
}
.ro-installation-page .bg-secondary {
    background-color: #fd761a !important;
}
.ro-installation-page .text-secondary {
    color: #fd761a !important;
}
.ro-installation-page .text-on-secondary {
    color: #ffffff !important;
}
.ro-installation-page .border-primary {
    border-color: #00288e !important;
}
.ro-installation-page .border-secondary {
    border-color: #fd761a !important;
}

/* ── RO Installation Page Trust Strip Contrast Fix ── */
.ro-installation-page .ro-installation-trust-section {
    background: linear-gradient(90deg, #eaf7f5, #f2fbfc) !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}
.ro-installation-page .ro-installation-trust-section span.font-bold {
    color: #08233f !important;
}
.ro-installation-page .ro-installation-trust-section .opacity-85 {
    color: #64748b !important;
    opacity: 1 !important;
}
.ro-installation-page .ro-installation-trust-section .material-symbols-outlined {
    color: #fd761a !important;
}

.ro-installation-page .bg-secondary-container {
    background-color: #ffdbca !important;
}
.ro-installation-page .text-on-secondary-container {
    color: #5c2400 !important;
}

@media (max-width: 767px) {
    .ro-installation-page .ro-installation-hero-section {
        padding-bottom: 120px !important;
    }
}

/* ── Location / Area Page Spacing & Rhythm Overrides ── */

/* Desktop Rhythm */
.location-page .location-hero-section,
.location-page .location-trust-section,
.location-page .location-services-section,
.location-page .location-pricing-section,
.location-page .location-amc-section,
.location-page .location-tds-section,
.location-page .location-local-section,
.location-page .location-brands-section,
.location-page .location-faq-section,
.location-page .location-cta-section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
}

/* Mobile Spacing Override */
@media (max-width: 767px) {
    .location-page .location-hero-section,
    .location-page .location-trust-section,
    .location-page .location-services-section,
    .location-page .location-pricing-section,
    .location-page .location-amc-section,
    .location-page .location-tds-section,
    .location-page .location-local-section,
    .location-page .location-brands-section,
    .location-page .location-faq-section {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
    }
    /* CTA Section bottom clearance for sticky mobile CTA */
    .location-page .location-cta-section {
        padding-top: 44px !important;
        padding-bottom: 80px !important;
    }
    /* Hero section bottom clearance for sticky mobile CTA under form */
    .location-page .location-hero-section {
        padding-bottom: 120px !important;
    }
}

/* ── Location Page Specific Utility Fallbacks ── */
.location-page .bg-primary {
    background-color: #00288e !important;
}
.location-page .text-primary {
    color: #00288e !important;
}
.location-page .text-on-primary {
    color: #ffffff !important;
}
.location-page .bg-secondary {
    background-color: #fd761a !important;
}
.location-page .text-secondary {
    color: #fd761a !important;
}
.location-page .text-on-secondary {
    color: #ffffff !important;
}
.location-page .bg-secondary-container {
    background-color: #ffdbca !important;
}
.location-page .text-on-secondary-container {
    color: #5c2400 !important;
}
.location-page .border-primary {
    border-color: #00288e !important;
}

/* Location hero conversion balance */
.location-page .location-hero-conversion-column {
    display: grid;
    gap: 24px;
}
.location-page .location-hero-visual {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #dbe5ee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(8, 35, 63, 0.12);
}
.location-page .location-hero-visual img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center 38%;
}
.location-page .location-hero-visual figcaption {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}
.location-page .location-hero-visual figcaption .material-symbols-outlined {
    color: #fd761a;
    font-size: 18px;
}
.location-page .location-estimator-section {
    padding: 22px;
    border: 1px solid #dbe5ee;
    border-radius: 22px;
    background: linear-gradient(145deg, #f7fbff, #eef8fb);
    box-shadow: 0 16px 36px rgba(8, 35, 63, 0.09);
}
.location-page .location-estimator-heading {
    margin-bottom: 16px;
}
.location-page .location-estimator-heading p {
    margin-top: 5px;
    line-height: 1.55;
}
.location-page .location-estimator-stack {
    display: grid;
    gap: 16px;
}
.location-page .location-estimator-fields,
.location-page .location-estimator-result {
    min-width: 0;
}
.location-page .location-estimator-analyzing,
.ro-repair-page .location-estimator-analyzing {
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px dashed #b8d4df;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}
.location-estimator-analyzing:not(.hidden) {
    display: flex;
}
.location-estimator-spinner,
.location-estimator-button-spinner {
    flex: 0 0 auto;
    border-radius: 999px;
    animation: location-estimator-spin 0.8s linear infinite;
}
.location-estimator-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #dbe5ee;
    border-top-color: #fd761a;
}
.location-estimator-button-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
}
.location-page .location-estimate-summary {
    padding: 14px;
    border: 1px solid rgba(8, 35, 63, 0.1);
    border-radius: 14px;
    background: rgba(8, 35, 63, 0.05);
}
.location-page .location-estimator-result {
    border-color: rgba(8, 35, 63, 0.12);
    box-shadow: 0 14px 30px rgba(8, 35, 63, 0.08);
}
@keyframes location-estimator-spin {
    to { transform: rotate(360deg); }
}
.form-consent-note,
.estimator-privacy-note {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}
.estimator-privacy-note {
    font-weight: 600;
}

/* Homepage booking form layout guard */
.booking-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
}
.booking-support-panel,
.booking-form-panel {
    width: auto !important;
    min-width: 0;
}
.booking-form {
    display: flex;
    flex-direction: column;
}
.booking-form > .grid,
.booking-payment-options > .grid {
    grid-template-columns: minmax(0, 1fr) !important;
}
.booking-submit-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.booking-submit-area .form-consent-note,
.booking-submit-area .booking-note {
    margin: 0;
}

@media (min-width: 1024px) {
    .booking-card {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }
}

@media (min-width: 1280px) {
    .booking-payment-options > .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.location-page #hero-intro {
    padding: 14px 16px;
    border-left: 3px solid #fd761a;
    border-radius: 0 14px 14px 0;
    background: rgba(255, 255, 255, 0.72);
}

@media (min-width: 1024px) {
    .location-page .location-hero-section > div {
        grid-template-rows: auto 1fr;
    }
    .location-page .location-hero-section > div > div:first-child {
        grid-column: 1 / span 7;
        grid-row: 1;
    }
    .location-page .location-hero-conversion-column {
        grid-column: 8 / span 5;
        grid-row: 1 / span 2;
    }
    .location-page .location-hero-visual {
        grid-column: 1 / span 7;
        grid-row: 2;
        justify-self: start;
    }
}

@media (max-width: 767px) {
    .ro-service-page #bookingForm [class~="grid-cols-2"],
    .ro-repair-page #bookingForm [class~="grid-cols-2"],
    .amc-plans-page #bookingForm [class~="grid-cols-2"],
    .contact-page #contactForm [class~="grid-cols-2"] {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .ro-service-page #bookingForm .space-y-2.pt-2,
    .ro-repair-page #bookingForm .space-y-2.pt-2 {
        margin-top: 8px;
    }
    .booking-payment-options {
        margin-top: 8px;
        padding-top: 8px;
    }
    .booking-submit-area {
        gap: 10px;
        margin-top: 18px;
    }
    .booking-note {
        font-size: 11.5px;
        line-height: 1.4;
    }
    .location-page .location-booking-card form {
        gap: 10px;
    }
    .location-page .location-booking-consent {
        margin: 0;
        font-size: 11.5px;
        line-height: 1.4;
    }
    .location-page .location-booking-note {
        margin-top: 12px;
        padding-top: 12px;
        font-size: 11.5px;
        line-height: 1.4;
        font-weight: 500;
    }
    .location-page .location-hero-conversion-column {
        gap: 20px;
    }
    .location-page .location-hero-visual img {
        height: 210px;
    }
    .location-page .location-estimator-section {
        padding: 18px;
    }
    .location-page .location-hero-section {
        padding-bottom: 44px !important;
    }
    .location-page .location-estimate-summary {
        align-items: flex-start;
        flex-direction: column;
    }
    .location-page .location-estimate-value {
        text-align: left;
    }
}

/* ── Shared Header Wordmark Style ── */
.header-wordmark {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.025em;
    line-height: 1;
    color: var(--rsw-navy) !important;
    white-space: nowrap;
    display: inline-block;
}

@media (max-width: 767px) {
    .header-wordmark {
        font-weight: 700;
        font-size: 16.5px;
        letter-spacing: -0.02em;
    }
}

