/* ==========================================================================
   PCM — Bring a Trailer page widgets (Elementor) + [pcm_bat_form]
   Everything is scoped under .pcm-bat to stay clear of theme/Bootstrap styles.
   Fonts are the NHaas faces already declared in styles/style.css.
   ========================================================================== */

.pcm-bat {
    --pcm-ink: #171717;
    --pcm-muted: #656565;
    --pcm-line: #dededb;
    --pcm-focus: #4a6396;
    --pcm-font: 'NHaasGroteskTXW02-55Rg', 'Helvetica Neue', Arial, sans-serif;
    --pcm-font-md: 'NHaasGroteskDSW02-65Md', 'Helvetica Neue', Arial, sans-serif;
    font-family: var(--pcm-font);
    color: var(--pcm-ink);
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}
.pcm-bat *, .pcm-bat *::before, .pcm-bat *::after { box-sizing: border-box; }
.pcm-bat img { display: block; max-width: 100%; height: auto; }
.pcm-bat figure, .pcm-bat p, .pcm-bat .pcm-bat-title, .pcm-bat h3 { margin: 0; }
.pcm-bat a { color: inherit; text-decoration: none; }
.pcm-bat a:focus-visible, .pcm-bat button:focus-visible, .pcm-bat input:focus-visible, .pcm-bat textarea:focus-visible {
    outline: 2px solid var(--pcm-focus);
    outline-offset: 5px;
}

/* Let the widgets sit flush when stacked in one column. */
.elementor-widget[class*="elementor-widget-pcm_"]:not(:last-child) { margin-bottom: 0; }

.pcm-bat .pcm-bat-wrap { max-width: 1240px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }

.pcm-bat .pcm-bat-title {
    font-family: var(--pcm-font);
    font-weight: normal;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -.5px;
    color: var(--pcm-ink);
    text-transform: none;
}
.pcm-bat h1.pcm-bat-title, .pcm-bat .pcm-bat-intro__title { font-size: 38px; line-height: 1.15; letter-spacing: -.7px; }

/* Buttons */
.pcm-bat .pcm-bat-btn {
    min-height: 48px;
    border: 1px solid var(--pcm-ink);
    border-radius: 0;
    padding: 15px 25px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-family: var(--pcm-font);
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: .2px;
    text-transform: none;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .2s, color .2s, opacity .2s;
}
.pcm-bat .pcm-bat-btn--dark { background: var(--pcm-ink); color: #fff; }
.pcm-bat .pcm-bat-btn--dark:hover { background: #444; color: #fff; }
.pcm-bat .pcm-bat-btn--outline { background: #fff; color: var(--pcm-ink); }
.pcm-bat .pcm-bat-btn--outline:hover { background: #f1f1ee; color: var(--pcm-ink); }

/* Photos (shared) */
.pcm-bat .pcm-bat-photo {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #eee;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    line-height: 0;
}
.pcm-bat .pcm-bat-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pcm-bat a.pcm-bat-photo { cursor: zoom-in; }
.pcm-bat a.pcm-bat-photo:hover img { transform: scale(1.025); }

/* ---------- 1. Panorama ---------- */
.pcm-bat-panorama {
    min-height: 330px;
    padding: 90px 0 16px;
    background: #f5f5f5;
    display: flex;
    align-items: flex-end;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #bcbcbc #f5f5f5;
}
.pcm-bat-panorama:focus-visible { outline: 2px solid var(--pcm-focus); outline-offset: -3px; }
.pcm-bat-panorama__lineup {
    width: 100%;
    flex: none;
    display: grid;
    grid-template-columns: repeat(var(--pcm-cols, 5), minmax(0, 1fr));
    padding: 0 12px;
}
.pcm-bat .pcm-bat-panorama__photo { display: block; min-width: 0; width: 100%; line-height: 0; }
.pcm-bat a.pcm-bat-panorama__photo { cursor: zoom-in; }
.pcm-bat .pcm-bat-panorama__photo img {
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent), linear-gradient(180deg, transparent, #000 16%, #000 86%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent), linear-gradient(180deg, transparent, #000 16%, #000 86%, transparent);
    mask-composite: intersect;
}
.pcm-bat .pcm-bat-panorama__hint { display: none; }

/* ---------- 2. Partner intro ---------- */
.pcm-bat-intro { padding-top: 44px; text-align: center; }
.pcm-bat .pcm-bat-intro__logo { width: 138px; margin: 0 auto 22px; }
.pcm-bat .pcm-bat-intro__title { margin-bottom: 20px; }
.pcm-bat .pcm-bat-intro__text { max-width: 850px; margin: 0 auto; color: #535353; font-size: 17px; line-height: 1.65; }
.pcm-bat .pcm-bat-intro__text p { margin: 0 0 1em; }
.pcm-bat .pcm-bat-intro__text p:last-child { margin-bottom: 0; }
.pcm-bat-intro__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 38px; }
.pcm-bat .pcm-bat-intro__item figcaption { font-size: 15px; margin-top: 15px; line-height: 1.4; }

/* ---------- 3. Services ---------- */
.pcm-bat-services { padding-top: 60px; padding-bottom: 48px; text-align: center; }
.pcm-bat .pcm-bat-services__title { font-size: 27px; }
.pcm-bat-services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 42px; margin-top: 34px; }
.pcm-bat .pcm-bat-services__photo { margin-bottom: 20px; background: #f3f3f3; }
.pcm-bat a.pcm-bat-services__photo:hover img { transform: none; }
.pcm-bat .pcm-bat-services__name {
    font-family: var(--pcm-font-md);
    font-weight: normal;
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--pcm-ink);
    text-transform: none;
    letter-spacing: 0;
}
.pcm-bat .pcm-bat-services__name button {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
    line-height: inherit;
    cursor: pointer;
}
.pcm-bat .pcm-bat-services__name button:hover { text-decoration: underline; text-underline-offset: 5px; }
.pcm-bat .pcm-bat-services__text { max-width: 310px; margin: 0 auto; font-size: 15px; line-height: 1.6; color: var(--pcm-muted); }
.pcm-bat-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.pcm-bat .pcm-bat-services__note { font-size: 12px; line-height: 1.6; color: #707070; margin-top: 20px; }

/* ---------- 4. Contact CTA ---------- */
.pcm-bat-cta { background: #f4f4f1; padding: 37px 0; }
.pcm-bat-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.pcm-bat .pcm-bat-cta__text { margin-top: 10px; color: var(--pcm-muted); font-size: 14px; line-height: 1.6; }
.pcm-bat .pcm-bat-cta__text p { margin: 0 0 10px; }
.pcm-bat .pcm-bat-cta__text p:last-child { margin-bottom: 0; }
.pcm-bat-cta__options { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; flex-shrink: 0; }
.pcm-bat .pcm-bat-cta__number { font-size: 24px; white-space: nowrap; }
.pcm-bat-cta__buttons { display: flex; gap: 10px; }
.pcm-bat .pcm-bat-cta__buttons .pcm-bat-btn { min-width: 112px; padding: 12px 20px; min-height: 44px; }

/* ---------- Popup ---------- */
html.pcm-bat-modal-open, html.pcm-bat-modal-open body { overflow: hidden; }
.pcm-bat-modal[hidden] { display: none !important; }
.pcm-bat-modal {
    position: fixed;
    inset: 0;
    z-index: 99990; /* below the reCAPTCHA challenge (z-index 2e9) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.pcm-bat-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.pcm-bat-modal__panel {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    padding: 35px;
    text-align: left;
}
.pcm-bat-modal__panel:focus { outline: none; }
.pcm-bat .pcm-bat-modal__close {
    position: absolute;
    right: 12px;
    top: 8px;
    width: 40px;
    height: 40px;
    font-size: 28px;
    line-height: 1;
    border: 0;
    background: #fff;
    color: var(--pcm-ink);
    cursor: pointer;
    padding: 0;
}
.pcm-bat .pcm-bat-modal__title { padding-right: 40px; }
.pcm-bat .pcm-bat-modal__intro { color: var(--pcm-muted); font-size: 15px; line-height: 1.5; margin: 12px 0 28px; }

/* ---------- [pcm_bat_form] ---------- */
.pcm-bat-form { font-family: 'NHaasGroteskTXW02-55Rg', 'Helvetica Neue', Arial, sans-serif; color: #171717; text-align: left; }
.pcm-bat-form--placeholder { padding: 24px; border: 1px dashed #b5b5b0; color: #656565; font-size: 14px; text-align: center; }
.pcm-bat-form__loading { color: #656565; font-size: 14px; margin: 0; }
.pcm-bat-form .display_name { display: none; }

.pcm-bat-form .form_body,
.pcm-bat-form .form_body.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    margin: 0;
}
.pcm-bat-form .form_body::before, .pcm-bat-form .form_body::after { display: none; }
.pcm-bat-form .form_body > * {
    grid-column: 1 / -1;
    float: none;
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0 0 23px;
    flex: none;
}
.pcm-bat-form .form_body > .pcm-f-half { grid-column: auto; }

.pcm-bat-form .pcm-bat-form__label {
    display: block;
    font-family: 'NHaasGroteskDSW02-65Md', 'Helvetica Neue', Arial, sans-serif;
    font-weight: normal;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    color: #171717;
    text-transform: none;
    letter-spacing: 0;
}
.pcm-bat-form .pcm-bat-form__req { color: #656565; }

.pcm-bat-form .form-control,
.pcm-bat-form input[type=text],
.pcm-bat-form input[type=email],
.pcm-bat-form input[type=tel],
.pcm-bat-form textarea,
.pcm-bat-form select {
    display: block;
    width: 100%;
    height: auto;
    min-width: 0;
    border: 0;
    border-bottom: 1px solid #b5b5b0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    padding: 11px 0;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    color: #171717;
    cursor: text;
    opacity: 1;
}
.pcm-bat-form textarea { resize: vertical; min-height: 80px; }
.pcm-bat-form .form-control:focus { border-bottom-color: #171717; box-shadow: none; }
.pcm-bat-form .form-control::placeholder { color: #7a7a76; opacity: 1; }
.pcm-bat-form .form-control[readonly] { background: #f6f6f4; }

/* validateForm() writes inline outlines — turn them into an underline colour. */
.pcm-bat-form .form-control[style*="solid red"] { outline: none !important; border-bottom-color: #b3261e; }
.pcm-bat-form .form-control[style*="solid green"] { outline: none !important; border-bottom-color: #2e7d32; }
.pcm-bat-form .form-control[style*="solid red"]:focus-visible,
.pcm-bat-form .form-control[style*="solid green"]:focus-visible { outline: 2px solid #4a6396 !important; outline-offset: 3px; }

/* Services checkbox group */
.pcm-bat-form .pcm-bat-form__services { border: 0; padding: 0; margin: 0; min-width: 0; }
.pcm-bat-form .pcm-bat-form__services legend { margin-bottom: 14px; border: 0; width: auto; }
.pcm-bat-form .pcm-bat-form__service-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pcm-bat-form .pcm-bat-form__service {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-weight: normal;
    font-size: 13px;
    line-height: 1.4;
    color: #51514c;
    cursor: pointer;
}
.pcm-bat-form .pcm-bat-form__service input,
.pcm-bat-form .pcm-f-check input[type=checkbox] {
    margin: 0;
    width: 17px !important;
    height: 17px !important;
    accent-color: #171717;
    flex-shrink: 0;
}

/* Consent checkboxes from config ("checkbox" type) */
.pcm-bat-form .pcm-f-check { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; }
.pcm-bat-form .pcm-f-check input[type=checkbox] { margin-top: 2px !important; }
.pcm-bat-form .pcm-f-check label { font-weight: normal; font-size: 12px; line-height: 1.5; color: #51514c; margin: 0; cursor: pointer; }
.pcm-bat-form .pcm-f-note,
.pcm-bat-form .pcm-f-note p { font-size: 12px; line-height: 1.5; color: #70706b; margin: 0; }
.pcm-bat-form .pcm-f-note a { text-decoration: underline; text-underline-offset: 2px; }

.pcm-bat-form .captcha { margin-bottom: 20px; }
.pcm-bat-form .captcha [id^="re-captcha_"] { display: inline-block; }

/* Submit */
.pcm-bat-form .btnBox { padding: 0; margin: 0; }
.pcm-bat-form .pcm-bat-form__submit {
    width: 100%;
    min-height: 48px;
    border: 1px solid #171717;
    border-radius: 0;
    background: #171717;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    letter-spacing: .2px;
    text-transform: none;
    padding: 15px 25px;
    cursor: pointer;
    transition: background-color .2s, opacity .2s;
}
.pcm-bat-form .pcm-bat-form__submit:hover { background: #444; }
.pcm-bat-form .pcm-bat-form__submit[disabled] { opacity: .45; cursor: not-allowed; background: #171717; }
.pcm-bat-form .pcm-bat-form__submit .bg { display: none; }

.pcm-bat-form__thanks { padding: 10px 0 4px; }
.pcm-bat-form__thanks:focus { outline: none; }
.pcm-bat-form__thanks h3 { font-size: 24px; font-weight: normal; line-height: 1.25; margin: 0 0 10px; color: #171717; }
.pcm-bat-form__thanks p { font-size: 15px; line-height: 1.6; color: #656565; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .pcm-bat .pcm-bat-wrap { padding-left: 28px; padding-right: 28px; }
    .pcm-bat-services__grid { gap: 30px 24px; }
    .pcm-bat .pcm-bat-cta__title { font-size: 27px; }
    .pcm-bat .pcm-bat-cta__number { font-size: 21px; }
}
@media (max-width: 800px) {
    .pcm-bat-panorama { padding-bottom: 10px; }
    .pcm-bat-panorama__lineup { width: var(--pcm-lineup-mobile, 1800px); padding: 0 8px; }
    .pcm-bat .pcm-bat-panorama__hint {
        display: block;
        text-align: center;
        background: #f5f5f5;
        padding: 10px 16px;
        color: #606060;
        font-size: 12px;
        line-height: 1.4;
        margin: 0;
    }
    .pcm-bat .pcm-bat-panorama__hint span { margin-left: 8px; }
    .pcm-bat-cta__inner { align-items: flex-start; flex-direction: column; gap: 20px; }
    .pcm-bat-cta__options { align-items: flex-start; }
}
@media (max-width: 560px) {
    .pcm-bat .pcm-bat-wrap { padding-left: 22px; padding-right: 22px; }
    .pcm-bat-intro { padding-top: 30px; }
    .pcm-bat .pcm-bat-intro__logo { margin-bottom: 20px; }
    .pcm-bat h1.pcm-bat-title, .pcm-bat .pcm-bat-intro__title { font-size: 32px; }
    .pcm-bat .pcm-bat-intro__text { font-size: 16px; }
    .pcm-bat-intro__grid { gap: 26px; margin-top: 28px; }
    .pcm-bat .pcm-bat-intro__item figcaption { margin-top: 12px; }
    .pcm-bat-services { padding-top: 44px; padding-bottom: 35px; }
    .pcm-bat-services__grid { gap: 32px; margin-top: 28px; }
    .pcm-bat .pcm-bat-services__photo { margin-bottom: 17px; }
    .pcm-bat .pcm-bat-services__name { margin-bottom: 7px; }
    .pcm-bat .pcm-bat-services__text { max-width: 315px; }
    .pcm-bat-actions { flex-direction: column; gap: 12px; margin-top: 32px; }
    .pcm-bat .pcm-bat-btn { min-height: 49px; font-size: 14px; }
    .pcm-bat-cta { padding: 30px 0; }
    .pcm-bat .pcm-bat-cta__title { font-size: 26px; }
    .pcm-bat .pcm-bat-cta__number { font-size: 24px; }

    .pcm-bat-modal { padding: 0; align-items: stretch; }
    .pcm-bat-modal__panel { max-height: none; height: 100%; padding: 30px 22px; }
    .pcm-bat .pcm-bat-modal__title { font-size: 26px; }
    .pcm-bat-form .form_body, .pcm-bat-form .form_body.row { grid-template-columns: 1fr; }
    .pcm-bat-form .form_body > .pcm-f-half { grid-column: 1 / -1; }
    .pcm-bat-form .pcm-bat-form__service-options { grid-template-columns: 1fr; }
    .pcm-bat-form .pcm-bat-form__service { font-size: 14px; min-height: 25px; }
    .pcm-bat-form .pcm-bat-form__services legend { font-size: 14px; }
    .pcm-bat-form .captcha [id^="re-captcha_"] { transform: scale(.92); transform-origin: left top; }
}
@media (prefers-reduced-motion: reduce) {
    .pcm-bat *, .pcm-bat *::before, .pcm-bat *::after { transition: none !important; }
}
