/* =========================================================================
   Hire / inquiry modal (#hiremodal5, markup in js.php) — sizing + close button.
   Loaded by footer.php right after assets-2026/css/modal-2026.css (wins over it).
   ≥1025px (form + testimonial panel): sizes grow fluidly from 1200px to 1920px (clamp; 1025–1199px
   use the 1200px values). ≤1024px (form only): sizes grow fluidly from 360px to 1024px.
   so it no longer fills almost the whole screen around 1200px.
   ========================================================================= */

/* ---------- close button ---------- */
#hiremodal5 .modal-header .close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: clamp(32px, 25.333px + .5556vw, 36px) !important;
    height: clamp(32px, 25.333px + .5556vw, 36px) !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff;
    background: #0E0E0F !important;
    border: 0 !important;
    border-radius: 50%;
    opacity: 1 !important;
    cursor: pointer !important;
    transition: background-color .2s ease, transform .2s ease;
}

#hiremodal5 .modal-header .close span {
    position: static !important;
    display: block;
    font-size: clamp(22px, 18.667px + .2778vw, 24px) !important;
    font-family: Arial, sans-serif !important;
    line-height: 1 !important;
    color: inherit !important;
    transform: translateY(-1px);
    pointer-events: none;
}

#hiremodal5 .modal-header .close:hover {
    background: #FF9F0A !important;
    transform: rotate(90deg);
}

#hiremodal5 .modal-header .close:focus-visible {
    outline: 2px solid #FF9F0A;
    outline-offset: 3px;
}

/* ---------- ≥1025px: form + testimonial panel ---------- */
@media (min-width: 1025px) {
    #hiremodal5 .modal-dialog,
    #hiremodal5 .modal-dialog-centered {
        max-width: min(clamp(960px, 726.667px + 19.444vw, 1100px), calc(100vw - 48px)) !important;
    }

    /* left: form column */
    #hiremodal5 .testimonials-review-box {
        flex: 0 0 clamp(424px, 317.333px + 8.889vw, 488px) !important;
        width: clamp(424px, 317.333px + 8.889vw, 488px) !important;
        padding: clamp(16px, 9.333px + .5556vw, 20px) clamp(28px, 8px + 1.6667vw, 40px) clamp(16px, 9.333px + .5556vw, 20px) clamp(16px, 9.333px + .5556vw, 20px) !important;
        gap: clamp(12px, 5.333px + .5556vw, 16px) !important;
    }

    #hiremodal5 .inquiry-form-modern {
        --inquiry-single-row-h: clamp(50px, 33.333px + 1.3889vw, 60px);
    }

    #hiremodal5 .inquiry-form-modern .form-group.input-group {
        margin-bottom: clamp(14px, 7.333px + .5556vw, 18px);
    }

    #hiremodal5 .inquiry-form-modern .inquiry-field__control,
    #hiremodal5 .inquiry-form-modern .inquiry-field .input.form-control {
        font-size: clamp(14px, 12.333px + .1389vw, 15px) !important;
    }

    #hiremodal5 .inquiry-form-modern .inquiry-field--textarea textarea.input.form-control {
        min-height: clamp(100px, 66.667px + 2.7778vw, 120px);
    }

    #hiremodal5 .inquiry-form-modern .google-alert.body-2 {
        margin: clamp(14px, 4px + .8333vw, 20px) 0 clamp(16px, 6px + .8333vw, 22px);
        font-size: clamp(13px, 11.333px + .1389vw, 14px);
    }

    #hiremodal5 .inquiry-form-modern .inquiry-submit__btn.btn {
        height: clamp(50px, 41.667px + .6944vw, 55px);
        font-size: clamp(14px, 12.333px + .1389vw, 15px);
    }

    /* right: testimonial panel */
    #hiremodal5 .testimonial-client-info .testimonial-client-inner {
        margin: clamp(28px, 8px + 1.6667vw, 40px) !important;
    }

    #hiremodal5 .client-review-message .h2-headline {
        padding-right: 44px; /* room for the close button in the panel corner */
        font-size: clamp(28px, 8px + 1.6667vw, 40px) !important;
        line-height: 1.2 !important;
    }

    #hiremodal5 .client-review-message .subtitle-2 {
        font-size: clamp(15px, 11.667px + .2778vw, 17px) !important;
        line-height: 1.6 !important;
    }

    /* close button sits inside the purple panel's top-right corner (panel is inset 20px) */
    #hiremodal5 .modal-header .close {
        top: clamp(32px, 25.333px + .5556vw, 36px) !important;
        right: clamp(32px, 25.333px + .5556vw, 36px) !important;
        background: rgba(255, 255, 255, .16) !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
    }

    #hiremodal5 .modal-header .close:hover {
        color: #0E0E0F;
        background: #fff !important;
    }
}

/* ---------- ≤1024px: form only (panel hidden by modal-2026.css), fluid 360px → 1024px ---------- */
@media (max-width: 1024px) {
    #hiremodal5 .modal-dialog,
    #hiremodal5 .modal-dialog-centered {
        max-width: min(600px, calc(100vw - 24px)) !important;
    }

    /* top padding leaves room for the close button so it never sits on the first field */
    #hiremodal5 .testimonials-review-box {
        padding: clamp(50px, 46.747px + .9036vw, 56px) clamp(16px, 7.325px + 2.4096vw, 32px) clamp(16px, 9.831px + 1.2048vw, 24px) !important;
        gap: clamp(12px, 9.831px + .6024vw, 16px) !important;
    }

    #hiremodal5 .inquiry-form-modern {
        --inquiry-single-row-h: clamp(48px, 43.663px + 1.2048vw, 56px);
    }

    #hiremodal5 .inquiry-form-modern .form-group.input-group {
        margin-bottom: clamp(12px, 9.831px + .6024vw, 16px);
    }

    #hiremodal5 .inquiry-form-modern .inquiry-field__control,
    #hiremodal5 .inquiry-form-modern .inquiry-field .input.form-control {
        font-size: clamp(14px, 13.458px + .1506vw, 15px) !important;
    }

    #hiremodal5 .inquiry-form-modern .inquiry-field--textarea textarea.input.form-control {
        min-height: clamp(96px, 82.988px + 3.6145vw, 120px);
    }

    #hiremodal5 .inquiry-form-modern .google-alert.body-2 {
        margin: clamp(12px, 9.831px + .6024vw, 16px) 0 clamp(14px, 10.747px + .9036vw, 20px);
        font-size: clamp(13px, 12.458px + .1506vw, 14px);
    }

    #hiremodal5 .inquiry-form-modern .inquiry-submit__btn.btn {
        height: clamp(50px, 47.289px + .753vw, 55px);
        font-size: clamp(14px, 13.458px + .1506vw, 15px);
    }

    #hiremodal5 .modal-header .close {
        top: clamp(10px, 7.831px + .6024vw, 14px) !important;
        right: clamp(10px, 7.831px + .6024vw, 14px) !important;
    }
}
