/*
 * The droptruck.in website form (A9, owner 23 Oct): the app's tap-to-choose steps in the site's glass look
 * (figma-match.css: dark gold glass, yellow edge, blur). Truck photos (the app's) sit on light tiles so the
 * black cabs read on the glass.
 */
.sb-modal {
    /* Above the site's sticky menu (z-index 999999); a light dim so the glass shows the page behind it. */
    z-index: 1000000;
    background: rgba(20, 18, 10, 0.3);
    padding: 12px;
    box-sizing: border-box;
}

.sb-modal [hidden] {
    display: none !important;
}

/* The page behind stays still while the form is open (owner 23 Oct): scrolling past the form's end no longer moves
   it. The scrollbar's room is kept so the page does not jump sideways. */
html.sb-open,
html.sb-open body {
    overflow: hidden;
}

html.sb-open {
    scrollbar-gutter: stable;
}

/* The site's glass card (figma-match.css): gold tint, blur, the yellow edge and its white inner light. */
.sb-panel {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    display: flex;
    flex-direction: column;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: linear-gradient(160deg, rgba(119, 103, 25, 0.5) 0%, rgba(48, 43, 20, 0.5) 100%);
    border: 1px solid var(--dt-figma-glass-border, rgba(255, 248, 129, 0.81));
    border-radius: 30px;
    box-shadow:
        inset -2.45px -2.36px 6px rgba(255, 255, 255, 0.3),
        inset -3.67px -3.54px 12px rgba(255, 255, 255, 0.2),
        14.7px 14.14px 48px -12px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    overflow: hidden;
    font-family: inherit;
}

.sb-head {
    padding: 16px 22px 10px;
    flex: 0 0 auto;
}

.sb-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sb-head-row--end {
    justify-content: flex-end;
    padding: 12px 14px 0;
}

.sb-step-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fcdf2b;
}

/* Close: a drawn x in the middle of the circle (owner 23 Oct: the text x did not fit). Two classes so the old
   booking-modal.css (.dt-success-close: 40px bold text, absolutely placed) does not win. */
.sb-modal .sb-close {
    position: static;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 248, 129, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}

.sb-modal .sb-close svg {
    display: block;
    width: 18px;
    height: 18px;
}

.sb-modal .sb-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.sb-title {
    margin: 6px 0 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.sb-progress {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.sb-progress span {
    display: block;
    width: 14%;
    height: 100%;
    border-radius: 999px;
    background: #fcdf2b;
    transition: width 0.3s ease;
}

.sb-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 22px 12px;
    -webkit-overflow-scrolling: touch;
}

.sb-step {
    animation: sb-in 0.22s ease;
}

@keyframes sb-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.sb-lead {
    margin: 4px 0 14px;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}

.sb-label {
    display: block;
    margin: 12px 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.sb-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 16px;
    color: #fff8c9;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 248, 129, 0.45);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sb-input::placeholder {
    color: rgba(240, 230, 140, 0.5);
}

.sb-input:focus {
    border-color: #fcdf2b;
    box-shadow: 0 0 0 3px rgba(252, 223, 43, 0.2);
}

.sb-input option {
    color: #1d1b14;
}

.sb-textarea {
    min-height: 84px;
    resize: vertical;
}

.sb-phone {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.sb-phone-code {
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 248, 129, 0.45);
    background: rgba(255, 255, 255, 0.06);
    color: #fff8c9;
    font-weight: 600;
}

/* Pickup / drop with map pins inside the fields (green pickup, red drop), a dashed line and swap between. */
.sb-place {
    position: relative;
}

.sb-pin {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.sb-pin--pickup { color: #22c55e; }
.sb-pin--drop { color: #ef4444; }

.sb-input--pin {
    padding-left: 44px;
}

.sb-places-mid {
    position: relative;
    height: 26px;
}

/* From the pickup field down to the drop field, left of the "Drop" label. */
.sb-places-line {
    position: absolute;
    left: 23px;
    top: 0;
    bottom: -22px;
    border-left: 2px dashed rgba(255, 248, 129, 0.55);
}

/* The labels line up with the text in the fields (after the pins). */
.sb-places .sb-label {
    padding-left: 44px;
}

.sb-swap {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 248, 129, 0.6);
    background: rgba(60, 54, 26, 0.75);
    color: #fcdf2b;
    cursor: pointer;
}

.sb-swap:hover {
    background: rgba(252, 223, 43, 0.25);
}

.sb-label--tight {
    margin-top: 0;
}

.sb-note {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
}

.sb-error {
    margin: 10px 0 0;
    padding: 10px 12px;
    font-size: 14px;
    color: #ffe2e2;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 12px;
}

.sb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 6px;
}

.sb-chip {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 248, 129, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.sb-chip:hover {
    background: rgba(255, 255, 255, 0.16);
}

.sb-chip:active {
    transform: scale(0.97);
}

.sb-chip.is-on {
    background: #fcdf2b;
    border-color: #fcdf2b;
    color: #1d1b14;
}

.sb-chips--filter {
    position: sticky;
    top: -8px;
    z-index: 1;
    padding: 8px;
    border-radius: 16px;
    background: rgba(60, 54, 26, 0.55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.sb-chips--filter .sb-chip {
    padding: 8px 12px;
    font-size: 13px;
}

.sb-other {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 8px;
    margin-top: 10px;
}

.sb-goods-other {
    margin-top: 10px;
}

.sb-group-title {
    margin: 14px 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fcdf2b;
}

.sb-trucks .sb-truck {
    margin-bottom: 10px;
}

.sb-truck {
    border: 1px solid rgba(255, 248, 129, 0.3);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.sb-truck.is-on {
    border: 2px solid #fcdf2b;
    background: rgba(252, 223, 43, 0.12);
}

.sb-truck-pick {
    width: 100%;
    display: grid;
    grid-template-columns: 112px 1fr 26px;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: none;
    border: 0;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.sb-truck-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
}

.sb-truck-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sb-truck-text strong {
    display: block;
    font-size: 16px;
    color: #fff;
}

.sb-truck-text small {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.sb-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.sb-pill {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff8c9;
    background: rgba(255, 255, 255, 0.1);
}

.sb-pill--fit {
    color: #1d1b14;
    background: #fcdf2b;
}

.sb-truck-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 248, 129, 0.5);
}

.sb-truck.is-on .sb-truck-check {
    border-color: #fcdf2b;
    background: #fcdf2b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231d1b14' d='M9.6 16.2 5.4 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.sb-seg {
    display: flex;
    gap: 8px;
    padding: 0 10px 12px;
}

.sb-seg .sb-chip {
    flex: 1;
    text-align: center;
}

.sb-days {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.sb-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 4px;
    border-radius: 16px;
    border: 1px solid rgba(255, 248, 129, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

.sb-day span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.sb-day strong {
    font-size: 20px;
    line-height: 1.1;
}

.sb-day small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.sb-day.is-on {
    background: #fcdf2b;
    border-color: #fcdf2b;
    color: #1d1b14;
}

.sb-day.is-on span,
.sb-day.is-on small {
    color: #1d1b14;
}

.sb-review {
    display: grid;
    gap: 8px;
}

.sb-review-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 248, 129, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.sb-review-row small {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.sb-review-row strong {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    color: #fff;
}

.sb-change {
    padding: 6px 10px;
    border: 0;
    background: none;
    color: #fcdf2b;
    font-weight: 700;
    cursor: pointer;
}

.sb-foot {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    padding: 12px 22px 8px;
    border-top: 1px solid rgba(255, 248, 129, 0.15);
}

.sb-back,
.sb-next {
    height: 50px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.sb-back {
    flex: 0 0 auto;
    padding: 0 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 248, 129, 0.35);
}

.sb-next {
    flex: 1 1 auto;
    color: #1d1b14;
    background: #fcdf2b;
    border: 0;
    box-shadow: 0 8px 20px rgba(252, 223, 43, 0.25);
}

.sb-next:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* The sales support landline and WhatsApp (owner 23 Oct): dark chips with their icons, readable on the glass. */
.sb-help {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 2px 16px 14px;
}

.sb-call {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 248, 129, 0.45);
    background: rgba(17, 17, 17, 0.62);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    text-shadow: none;
}

.sb-call b {
    font-weight: 700;
    color: #fcdf2b;
}

.sb-call svg {
    flex: none;
    width: 16px;
    height: 16px;
    color: #fcdf2b;
}

.sb-call:hover {
    color: #fff;
    border-color: #fcdf2b;
}

.sb-wa svg {
    color: #25d366;
}

.sb-wa b {
    color: #86efac;
}

.sb-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Enquiry received */
.sb-panel--done {
    padding: 0 22px 22px;
    text-align: center;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sb-done-check {
    width: 72px;
    height: 72px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 36px;
    font-weight: 700;
    color: #1d1b14;
    background: #fcdf2b;
    box-shadow: 0 0 0 8px rgba(252, 223, 43, 0.18);
}

.sb-done-route {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff8c9;
}

/* The estimate with its star (owner 23 Oct): on Check and send, before sending, and on Enquiry received. */
.sb-estimate {
    display: grid;
    gap: 2px;
    margin: 4px 0 12px;
    padding: 14px;
    text-align: center;
    border-radius: 18px;
    border: 1px solid rgba(255, 248, 129, 0.6);
    background: rgba(252, 223, 43, 0.14);
}

.sb-done-estimate {
    margin: 0 auto 12px;
}

.sb-estimate span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.sb-estimate strong {
    font-size: 30px;
    line-height: 1.15;
    color: #fcdf2b;
}

.sb-estimate small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* "Verified drivers · Live tracking · Instant ePOD", as on the app's Home. */
.sb-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin: 16px 0 2px;
    padding: 12px 0 0;
    list-style: none;
    border-top: 1px solid rgba(255, 248, 129, 0.2);
}

.sb-trust li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.sb-trust svg {
    width: 18px;
    height: 18px;
    color: #fcdf2b;
}

/* Route: "Use my location" and "Choose on map" under each field until its place is chosen (as in the app's place
   search), the road distance and the map beside the fields. */
.sb-place-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 8px 0 4px 44px;
}

.sb-place-actions--drop {
    padding-bottom: 0;
}

.sb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 5px 11px 5px 9px;
    border: 1px solid rgba(255, 248, 129, 0.45);
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.55);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: none;
    cursor: pointer;
}

.sb-link svg {
    flex: none;
    width: 15px;
    height: 15px;
    color: #fcdf2b;
}

.sb-link:hover {
    border-color: #fcdf2b;
}

.sb-link:disabled {
    opacity: 0.6;
    cursor: wait;
}

.sb-distance {
    margin: 12px 0 0;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff8c9;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.sb-route-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.sb-map {
    height: 230px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 248, 129, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.sb-map-wrap {
    position: relative;
}

/* On the map itself, readable on any part of it (owner 23 Oct); clear of Google's full-screen button. */
.sb-map-tip {
    position: absolute;
    left: 10px;
    top: 10px;
    max-width: calc(100% - 64px);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 12px 6px 9px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.82);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: none;
    pointer-events: none;
}

.sb-map-tip svg {
    flex: none;
    width: 15px;
    height: 15px;
    color: #fcdf2b;
}

/* Choose on map: the pin stays in the middle (its tip on the spot) and the map moves under it. */
.sb-map-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -91.7%);
    color: #22c55e;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.sb-map-center svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sb-map-center--drop {
    color: #ef4444;
}

.sb-map-pick {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.sb-map-cancel,
.sb-map-use {
    flex: 1;
    height: 42px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.sb-map-cancel {
    border: 1px solid rgba(255, 248, 129, 0.6);
    background: rgba(17, 17, 17, 0.55);
    color: #fff;
}

.sb-map-use {
    flex: 2;
    border: 0;
    background: #fcdf2b;
    color: #1b1b1b;
}

.sb-map-use:disabled {
    opacity: 0.6;
    cursor: wait;
}

.sb-panel {
    transition: width 0.25s ease;
}

/* A wide screen: the map on the right of the fields while the route step is open. */
@media (min-width: 960px) {
    .sb-modal--map .sb-panel {
        width: min(960px, 100%);
    }

    .sb-modal--map .sb-route-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        align-items: start;
    }

    .sb-modal--map .sb-map {
        height: 340px;
    }
}

.sb-app {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 14px;
    text-align: left;
    text-decoration: none;
    color: #fff;
    border-radius: 18px;
    border: 1px solid #fcdf2b;
    background: rgba(252, 223, 43, 0.12);
}

.sb-app:hover {
    background: rgba(252, 223, 43, 0.2);
}

.sb-app-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #1d1b14;
    background: #fcdf2b;
    font-size: 18px;
}

.sb-app strong {
    display: block;
    font-size: 16px;
}

.sb-app small {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 576px) {
    .sb-modal {
        padding: 8px;
        align-items: flex-end;
    }

    .sb-panel {
        border-radius: 22px 22px 18px 18px;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
    }

    .sb-head,
    .sb-body,
    .sb-foot {
        padding-left: 16px;
        padding-right: 16px;
    }

    .sb-title {
        font-size: 21px;
    }

    .sb-truck-pick {
        grid-template-columns: 92px 1fr 24px;
        gap: 10px;
    }

    .sb-truck-photo {
        height: 64px;
    }
}

/* Google's place suggestions above the glass pop-up. */
.pac-container {
    z-index: 1000010 !important;
}
