/* ============================================================
   BCS — styles for custom section partials added in Step 2/3:
     - sections/pricing-factors.php   (.pricing__factors__area)
     - sections/related-nyc.php       (.related-nyc-area)
     - sections/related-california.php(.related-california-area)
     - sections/related-nj.php        (.related-nj-area)
     - sections/other-cities.php      (.other-cities-area)
   All blocks share the same visual language for consistency.
   ============================================================ */

/* ---- Shared section frame ---- */
.pricing__factors__area,
.related-nyc-area,
.related-california-area,
.related-nj-area,
.other-cities-area {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid #ebeef2;
}

.pricing__factors__area + .related-nyc-area,
.pricing__factors__area + .related-california-area,
.pricing__factors__area + .related-nj-area,
.pricing__factors__area + .other-cities-area,
.related-nyc-area + .pricing__factors__area,
.related-california-area + .pricing__factors__area,
.related-nj-area + .pricing__factors__area,
.other-cities-area + .pricing__factors__area {
    border-top: 0;
}

.pricing__factors__area .section__title,
.related-nyc-area .section__title,
.related-california-area .section__title,
.related-nj-area .section__title,
.other-cities-area .section__title {
    margin-bottom: 36px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.pricing__factors__area .section__title h2,
.related-nyc-area .section__title h2,
.related-california-area .section__title h2,
.related-nj-area .section__title h2,
.other-cities-area .section__title h2 {
    color: #1a365d;
    font-weight: 700;
    font-size: clamp(22px, 3.2vw, 30px);
    line-height: 1.25;
    margin-bottom: 10px;
}

.pricing__factors__area .section__title p,
.related-nyc-area .section__title p,
.related-california-area .section__title p,
.related-nj-area .section__title p,
.other-cities-area .section__title p {
    color: #5a6470;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* ---- Pricing factors — 6 cards ---- */
.pricing__factors__grid {
    margin-top: 12px;
}

.pricing__factor {
    background: #f4f6f8;
    border: 1px solid #e6eaef;
    border-radius: 12px;
    padding: 22px 22px 18px;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.pricing__factor:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(26, 54, 93, .08);
    border-color: #d4e1c2;
    background: #fbfcfd;
}

.pricing__factor h3 {
    color: #1a365d;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}

.pricing__factor p {
    color: #555f6a;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.pricing__factors__area .common__btn {
    margin-top: 30px;
}

/* ---- Related (NYC / California / NJ / Other cities) — link blocks ---- */
.related-nyc-grid,
.related-california-grid,
.related-nj-grid,
.other-cities-grid {
    margin-top: 12px;
}

.related-nyc-block,
.related-california-block,
.related-nj-block,
.other-cities-block {
    background: #f4f6f8;
    border: 1px solid #e6eaef;
    border-radius: 12px;
    padding: 22px 24px 20px;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.related-nyc-block:hover,
.related-california-block:hover,
.related-nj-block:hover,
.other-cities-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(26, 54, 93, .08);
    border-color: #d4e1c2;
    background: #fbfcfd;
}

/* Dashed separators inside blocks need to stand out a touch more against the grey card */
.related-nyc-block li,
.related-california-block li,
.related-nj-block li,
.other-cities-block li {
    border-bottom-color: #dde2e8;
}

.related-nyc-block h3,
.related-california-block h3,
.related-nj-block h3,
.other-cities-block h3 {
    color: #1a365d;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #87c12a;
    line-height: 1.3;
}

.related-nyc-block h3.mt-30,
.related-california-block h3.mt-30,
.related-nj-block h3.mt-30,
.other-cities-block h3.mt-30 {
    margin-top: 22px;
}

.related-nyc-block ul,
.related-california-block ul,
.related-nj-block ul,
.other-cities-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-nyc-block li,
.related-california-block li,
.related-nj-block li,
.other-cities-block li {
    padding: 7px 0;
    border-bottom: 1px dashed #eef1f5;
    font-size: 14px;
    line-height: 1.45;
    color: #4a5360;
}

.related-nyc-block li:last-child,
.related-california-block li:last-child,
.related-nj-block li:last-child,
.other-cities-block li:last-child {
    border-bottom: 0;
}

.related-nyc-block a,
.related-california-block a,
.related-nj-block a,
.other-cities-block a {
    color: #2f6b13;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease;
}

.related-nyc-block a:hover,
.related-california-block a:hover,
.related-nj-block a:hover,
.other-cities-block a:hover {
    color: #87c12a;
    text-decoration: underline;
}

.related-california-block p,
.related-nj-block p,
.other-cities-block p {
    color: #5a6470;
    font-size: 14px;
    line-height: 1.55;
    margin-top: 14px;
}

/* ---- "Other cities" specifically — denser 4-column grid ---- */
.other-cities-block {
    padding: 20px 20px 16px;
}

.other-cities-block h3 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.other-cities-block li {
    padding: 5px 0;
    font-size: 14px;
}

/* ---- Spacing helpers used inside the partials ---- */
.pricing__factors__area .pt-30 { padding-top: 30px; }
.related-nyc-area .mt-30,
.related-california-area .mt-30,
.related-nj-area .mt-30 { margin-top: 20px; }
.related-california-area .mt-20,
.related-nj-area .mt-20 { margin-top: 14px; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .pricing__factors__area,
    .related-nyc-area,
    .related-california-area,
    .related-nj-area,
    .other-cities-area {
        padding: 44px 0;
    }
    .pricing__factor,
    .related-nyc-block,
    .related-california-block,
    .related-nj-block,
    .other-cities-block {
        padding: 18px 18px 14px;
    }
}

@media (max-width: 575px) {
    .pricing__factors__area .section__title,
    .related-nyc-area .section__title,
    .related-california-area .section__title,
    .related-nj-area .section__title,
    .other-cities-area .section__title {
        margin-bottom: 24px;
    }
    .pricing__factors__area .section__title h2,
    .related-nyc-area .section__title h2,
    .related-california-area .section__title h2,
    .related-nj-area .section__title h2,
    .other-cities-area .section__title h2 {
        font-size: 22px;
    }
}

/* ============================================================
   Header / hero overrides — must beat style-new.css which loads
   before sections-extra.css (so naturally cascades over it).
   ============================================================ */

.header__area {
    box-shadow: none;
}

.hero__area {
    background-size: cover;
}

.hero__area form {
    padding-bottom: 45px;
}

/* --- Mobile breadcrumb fix (force dark current item on light mobile hero) --- */
@media (max-width: 991px) {
    .breadcrumbs-list .breadcrumb-item.current,
    .info-breadcrumbs-list .breadcrumb-item.current {
        color: #1a365d;
        font-weight: 500;
    }
}

/* --- Mobile hamburger position nudge --- */
@media only screen and (min-width: 320px) and (max-width: 767px) {
    .toggle-bar {
        top: 3px;
    }
}

/* --- Desktop-only overrides (≥992px) --- */
/* Mobile uses a different hero composition (.homemobilebanner replaces the dark
   background image), so the white-on-dark choices below would be invisible there. */
@media (min-width: 992px) {
    .header__link {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        font-weight: 500;
    }
    .hero__content h1 span {
        color: #ffffff;
    }
    /* Landing pages (city / state / service / airport) — dark hero behind, white text needed */
    .breadcrumbs-list .breadcrumb-item.current {
        color: #ffffff;
        font-weight: 500;
    }
    /* Info pages (about, contacts, faq, locations, reviews, fleet, privacy, terms, request, careers, thank-you)
       — light header background, must be dark text */
    .info-breadcrumbs-list .breadcrumb-item.current {
        color: #1a365d;
        font-weight: 500;
    }
}

/* ============================================================
   BCS phone input — custom replacement for intlTelInput.
   See /assets/js/bcs-phone.js for the JS that builds this markup.
   ============================================================ */

/* Reserve the same vertical space on the original .input-phone BEFORE the JS
   swaps it for the .bcs-phone wrapper. Eliminates CLS from the late JS replacement. */
input.input-phone {
    display: block;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.2;
    background: #f7f8fa;
    border: 1px solid #d8dde3;
    border-radius: 6px;
}

.bcs-phone {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    background: #f7f8fa;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    overflow: visible;
    transition: border-color .2s ease, background .2s ease;
}

.bcs-phone:focus-within {
    border-color: #87c12a;
    background: #fff;
}

.bcs-phone__code {
    appearance: none;
    border: 0;
    border-right: 1px solid #d8dde3;
    background: transparent;
    color: #1a365d;
    font-weight: 600;
    font-size: 15px;
    padding: 0 12px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    min-height: 44px;
}

.bcs-phone__code:hover,
.bcs-phone__code:focus-visible {
    background: #eef2f6;
    outline: none;
}

.bcs-phone__caret {
    font-size: 11px;
    color: #5a6470;
    line-height: 1;
}

.bcs-phone__num {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 12px 14px;
    font: inherit;
    font-size: 15px;
    color: #212529;
    outline: none;
}

.bcs-phone__num::placeholder {
    color: #8a939d;
}

.bcs-phone__pop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    max-height: 320px;
    display: flex;
    flex-direction: column;
}

.bcs-phone__pop[hidden] {
    display: none;
}

.bcs-phone__search {
    appearance: none;
    border: 0;
    border-bottom: 1px solid #eef1f5;
    padding: 12px 16px;
    font: inherit;
    font-size: 14px;
    outline: none;
    color: #212529;
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.bcs-phone__search::placeholder {
    color: #8a939d;
}

.bcs-phone__list {
    margin: 0;
    padding: 6px 0;
    list-style: none;
    overflow-y: auto;
    flex: 1 1 auto;
}

.bcs-phone__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    font-size: 14px;
    color: #2a3340;
    cursor: pointer;
    transition: background .12s ease;
    border: 0;
    user-select: none;
}

.bcs-phone__item:hover,
.bcs-phone__item:focus {
    background: #f4f6f8;
    outline: none;
}

.bcs-phone__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bcs-phone__dial {
    flex-shrink: 0;
    color: #5a6470;
    font-variant-numeric: tabular-nums;
}

.bcs-phone__empty {
    padding: 14px 16px;
    color: #8a939d;
    font-size: 14px;
    font-style: italic;
    list-style: none;
}

.country__select .bcs-phone,
.submit__btn .bcs-phone {
    width: 100%;
}

@media (max-width: 575px) {
    .bcs-phone__code { padding: 0 10px; font-size: 14px; }
    .bcs-phone__num { padding: 11px 12px; font-size: 14px; }
    .bcs-phone__pop { max-height: 60vh; }
}

/* ============================================================
   BCS modal animation — opts in via `.fade` on the .modal element
   (see sections/modal.php). Scoped strictly to .modal.fade so that
   other modals on the page that are toggled by custom jQuery .show()
   (e.g. fleet gallery #modal, home-tabs #m-home) keep working — those
   don't add a .show class, so a non-scoped rule would leave their
   dialogs invisible and uncloseable.
   ============================================================ */

/* Backdrop fades in/out with the modal */
.modal-backdrop {
    transition: opacity .25s ease-out;
    background-color: rgba(15, 23, 42, .55);
}
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show { opacity: 1; }

/* Modal shell (the whole overlay) — opacity transition */
.modal.fade {
    transition: opacity .22s ease-out;
    opacity: 0;
}
.modal.fade.show {
    opacity: 1;
}

/* Modal dialog (the actual box) — slide up + scale */
.modal.fade .modal-dialog {
    transform: translateY(30px) scale(.96);
    opacity: 0;
    transition:
        transform .32s cubic-bezier(.34, 1.56, .64, 1),
        opacity .25s ease-out;
    will-change: transform, opacity;
}
.modal.fade.show .modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Reverse animation only for our Bootstrap-style modals (.fade), not custom
   jQuery-show modals. Bootstrap removes .show before hiding display, so the
   transition plays as long as .fade is present. */
.modal.fade:not(.show) .modal-dialog {
    transform: translateY(20px) scale(.97);
    opacity: 0;
}

/* Subtle hover lift on the close button — applied to all modals; safe. */
.modal .btn-close {
    transition: transform .18s ease, opacity .18s ease;
}
.modal .btn-close:hover { transform: scale(1.12); opacity: .85; }

@media (prefers-reduced-motion: reduce) {
    .modal.fade,
    .modal.fade .modal-dialog,
    .modal-backdrop {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}
