
/* ===== CRO-IBR-025: Service Page Hero Redesign ===== */
/* 3-column layout: Form (left) | Image (center) | How It Works (right) */
/* Targets: section.aboutform on all service pages */

/* Hide redundant stats column (already in trust strip) */
section.aboutform .col-md-3.adv {
    display: none !important;
}

/* Hide original How It Works inside col-md-4 (we clone it to right column) */
section.aboutform .container.request > .row > .col-md-4 > .ibr-hiw {
    display: none !important;
}

/* Hide inline CTA box inside form (present on single posts only) */
section.aboutform .ibr-inline-cta {
    display: none !important;
}

/* ---- LAYOUT: 3-column flex ---- */
section.aboutform .container.request > .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 18px;
    padding: 0 15px;
}

/* Reduce section spacing */
section.aboutform {
    padding: 10px 0 10px 0 !important;
    margin: 0 !important;
}
section.aboutform .container.request {
    padding: 0 !important;
}
section.aboutform .mt20 {
    margin-top: 0 !important;
}

/* H1 at top of hero */
.ibr-hero-h1 {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    padding: 0 15px;
    color: #222;
    letter-spacing: 0.5px;
}

/* ---- LEFT COLUMN: Form ---- */
section.aboutform .container.request > .row > .col-md-4 {
    order: 1 !important;
    flex: 0 0 310px !important;
    max-width: 310px !important;
    width: 310px !important;
    padding: 0 !important;
    float: none !important;
    border: none !important;
    background: transparent !important;
}

/* Compact form styles */
section.aboutform .wpcf7 {
    margin: 0 !important;
    padding: 0 !important;
}
section.aboutform .wpcf7 form {
    padding: 12px 15px !important;
    border-radius: 8px;
}
section.aboutform .wpcf7 form p {
    margin-bottom: 5px !important;
}
section.aboutform .wpcf7 h3,
section.aboutform .wpcf7 .formh {
    font-size: 16px !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}
section.aboutform .wpcf7 label {
    font-size: 12px !important;
    margin-bottom: 1px !important;
    display: block;
}
section.aboutform .wpcf7 input[type="text"],
section.aboutform .wpcf7 input[type="email"],
section.aboutform .wpcf7 input[type="tel"] {
    padding: 5px 8px !important;
    font-size: 13px !important;
    height: auto !important;
}
section.aboutform .wpcf7 textarea {
    height: 44px !important;
    min-height: 44px !important;
    padding: 5px 8px !important;
    font-size: 13px !important;
    resize: vertical;
}
section.aboutform .wpcf7 input[type="submit"],
section.aboutform .wpcf7 .wpcf7-submit {
    padding: 9px 16px !important;
    font-size: 13px !important;
    margin-top: 3px !important;
    width: 100%;
}

/* ---- CENTER COLUMN: Image ---- */
section.aboutform .container.request > .row > .col-md-8 {
    order: 2 !important;
    flex: 1 1 auto !important;
    max-width: none !important;
    width: auto !important;
    padding: 0 !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0 !important;
}
section.aboutform .col-md-8 .col-md-9 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    text-align: center !important;
    float: none !important;
}
section.aboutform .col-md-8 .col-md-9 img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    border-radius: 8px;
}

/* ---- RIGHT COLUMN: How It Works + CTA ---- */
.ibr-hero-right {
    order: 3 !important;
    flex: 0 0 260px !important;
    max-width: 260px !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ibr-hero-right .ibr-hiw-compact {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 14px 16px;
}
.ibr-hero-right .ibr-hiw-compact h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
    color: #222;
}
.ibr-hero-right .ibr-hiw-compact .ibr-rc-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.ibr-hero-right .ibr-hiw-compact .ibr-rc-step:last-of-type {
    margin-bottom: 0;
}
.ibr-hero-right .ibr-rc-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: #c00;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}
.ibr-hero-right .ibr-rc-content h5 {
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 1px 0;
    color: #222;
}
.ibr-hero-right .ibr-rc-content p {
    font-size: 11px;
    color: #666;
    margin: 0;
    line-height: 1.3;
}


/* ===== TABLET: stack vertically ===== */
@media (max-width: 991px) {
    section.aboutform .container.request > .row {
        flex-wrap: wrap !important;
        gap: 12px;
    }
    .ibr-hero-h1 {
        font-size: 20px;
        text-align: center;
    }
    section.aboutform .container.request > .row > .col-md-4 {
        order: 1 !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    section.aboutform .container.request > .row > .col-md-8 {
        order: 2 !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .ibr-hero-right {
        order: 3 !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
@media (max-width: 767px) {
    section.aboutform .col-md-8 .col-md-9 img {
        max-height: 180px !important;
    }
    .ibr-hero-right {
        display: none !important;
    }
}
