.scri-wrap,
.scri-wrap * {
    box-sizing: border-box;
}
.scri-wrap {
    --scri-blue: #0967d2;
    --scri-blue-2: #168bff;
    --scri-navy: #102a43;
    --scri-soft: #f3f8ff;
    --scri-line: #d8e8f9;
    --scri-green: #0f9f6e;
    --scri-red: #e5484d;
    --scri-amber: #b7791f;
    width: min(1240px, 100%);
    margin: 28px auto;
    padding: 0 14px;
    color: var(--scri-navy);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}
.scri-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: clamp(22px, 3vw, 36px);
    border-radius: 28px;
    background: radial-gradient(circle at 15% 10%, rgba(104,187,255,.65), transparent 32%), linear-gradient(135deg, #082f63 0%, #0b63b6 45%, #168bff 100%);
    color: #fff;
    box-shadow: 0 22px 55px rgba(9, 103, 210, .24);
    overflow: hidden;
    position: relative;
}
.scri-hero:after {
    content: '';
    position: absolute;
    inset: auto -80px -110px auto;
    width: 340px;
    height: 240px;
    background: rgba(255,255,255,.15);
    border-radius: 999px;
    filter: blur(4px);
}
.scri-kicker {
    display: inline-flex;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-weight: 800;
    letter-spacing: .02em;
    font-size: 12px;
    text-transform: uppercase;
}
.scri-hero h2 {
    color: #fff;
    margin: 13px 0 8px;
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.05;
    font-weight: 900;
}
.scri-hero p {
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: clamp(15px, 1.6vw, 18px);
    max-width: 760px;
}
.scri-hero-badge {
    min-width: 180px;
    display: grid;
    gap: 7px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.24);
    backdrop-filter: blur(12px);
    text-align: center;
    z-index: 2;
}
.scri-hero-badge span {
    font-size: 24px;
    font-weight: 900;
}
.scri-grid {
    display: grid;
    grid-template-columns: minmax(330px, 440px) minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}
.scri-card {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,252,255,.96));
    border: 1px solid var(--scri-line);
    border-radius: 26px;
    box-shadow: 0 16px 45px rgba(16, 42, 67, .10);
    padding: clamp(16px, 2vw, 22px);
}
.scri-section-title {
    font-size: 17px;
    font-weight: 900;
    color: #123b68;
    margin: 4px 0 12px;
}
.scri-form {
    display: grid;
    gap: 14px;
}
.scri-form label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 800;
    color: #486581;
}
.scri-form input,
.scri-form select,
.scri-form textarea {
    width: 100%;
    border: 1px solid #d5e4f2;
    background: #fff;
    border-radius: 14px;
    padding: 12px 13px;
    color: #102a43;
    outline: none;
    font-size: 15px;
    min-height: 46px;
    box-shadow: inset 0 1px 0 rgba(16, 42, 67, .03);
}
.scri-form textarea {
    min-height: 86px;
    resize: vertical;
}
.scri-form input:focus,
.scri-form select:focus,
.scri-form textarea:focus {
    border-color: var(--scri-blue-2);
    box-shadow: 0 0 0 4px rgba(22, 139, 255, .13);
}
.scri-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.scri-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}
.scri-btn {
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    min-height: 46px;
    font-weight: 900;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.scri-btn:hover {
    transform: translateY(-1px);
}
.scri-btn-primary {
    background: linear-gradient(135deg, #0b63b6, #168bff);
    color: #fff;
    box-shadow: 0 12px 25px rgba(9, 103, 210, .25);
}
.scri-btn-secondary {
    background: #102a43;
    color: #fff;
}
.scri-btn-soft {
    background: #e8f3ff;
    color: #0b63b6;
    border: 1px solid #cde5ff;
}
.scri-btn-ghost {
    background: #fff;
    color: #123b68;
    border: 1px solid #dbeafe;
}
.scri-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}
.scri-map-card {
    position: sticky;
    top: 18px;
}
.scri-map-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.scri-map-head p {
    margin: -4px 0 0;
    color: #627d98;
    line-height: 1.45;
}
.scri-pin-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.scri-map {
    width: 100%;
    min-height: 560px;
    height: min(66vh, 650px);
    border: 1px solid #cfe0f2;
    border-radius: 22px;
    overflow: hidden;
    background: #e6f3fb;
    position: relative;
    z-index: 1;
}
.scri-map .leaflet-tile,
.scri-map .leaflet-marker-icon,
.scri-map .leaflet-marker-shadow,
.scri-map .leaflet-tile-container,
.scri-map .leaflet-pane,
.scri-map .leaflet-map-pane {
    position: absolute;
    left: 0;
    top: 0;
}
.scri-map .leaflet-container {
    font: inherit;
}
.scri-map-status,
.scri-route-info,
.scri-result {
    margin-top: 12px;
    border-radius: 18px;
    border: 1px solid #d8e8f9;
    background: #fbfdff;
    padding: 13px 15px;
    color: #486581;
}
.scri-route-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #f0f8ff;
}
.scri-div-pin {
    background: transparent;
}
.scri-div-pin span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 950;
    border-radius: 50% 50% 50% 8px;
    transform: rotate(-45deg);
    box-shadow: 0 12px 26px rgba(16, 42, 67, .25);
    border: 3px solid #fff;
}
.scri-div-pin span::first-letter {
    transform: rotate(45deg);
}
.scri-div-pin-pickup span {
    background: linear-gradient(135deg, #0b63b6, #168bff);
}
.scri-div-pin-drop span {
    background: linear-gradient(135deg, #bf2600, #ff5630);
}
.scri-div-pin span {
    font-size: 15px;
}
.scri-div-pin span:after {
    content: '';
}
.scri-road-line {
    stroke: #0967d2;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 7px 10px rgba(9, 103, 210, .28));
}
.scri-loading,
.scri-error {
    font-weight: 800;
}
.scri-error {
    color: #b42318;
}
.scri-match-card {
    display: grid;
    gap: 12px;
}
.scri-match-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.scri-match-top span {
    font-weight: 900;
    color: #486581;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 12px;
}
.scri-match-top strong {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0b63b6, #168bff);
    color: #fff;
    box-shadow: 0 10px 25px rgba(9, 103, 210, .22);
}
.scri-match-card h3 {
    margin: 0;
    font-size: 23px;
    color: #102a43;
}
.scri-match-card p {
    margin: 0;
    color: #486581;
}
.scri-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}
.scri-mini-grid div,
.scri-suggested-route,
.scri-saved-box {
    border: 1px solid #dbeafe;
    background: #fff;
    border-radius: 15px;
    padding: 12px;
}
.scri-mini-grid b,
.scri-suggested-route b {
    display: block;
    font-size: 12px;
    color: #627d98;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 5px;
}
.scri-mini-grid span,
.scri-suggested-route span {
    display: block;
    font-weight: 900;
    color: #123b68;
}
.scri-suggested-route small {
    display: block;
    margin-top: 5px;
    color: #486581;
}
.scri-whatsapp {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    border-radius: 14px;
    color: #fff !important;
    background: linear-gradient(135deg, #0f9f6e, #12b886);
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 12px 26px rgba(15, 159, 110, .22);
}
.scri-match-auto_accept .scri-match-top strong { background: linear-gradient(135deg, #0f9f6e, #12b886); }
.scri-match-dispatcher_review .scri-match-top strong { background: linear-gradient(135deg, #b7791f, #f59f00); }
.scri-match-draft_route .scri-match-top strong,
.scri-match-waiting_list .scri-match-top strong { background: linear-gradient(135deg, #e5484d, #ff7b72); }

@media (max-width: 980px) {
    .scri-grid {
        grid-template-columns: 1fr;
    }
    .scri-map-card {
        position: relative;
        top: auto;
    }
    .scri-map {
        min-height: 500px;
        height: 58vh;
    }
}
@media (max-width: 680px) {
    .scri-wrap {
        padding: 0 8px;
        margin: 16px auto;
    }
    .scri-hero,
    .scri-map-head {
        flex-direction: column;
        align-items: stretch;
    }
    .scri-hero-badge {
        width: 100%;
    }
    .scri-two,
    .scri-actions,
    .scri-route-info,
    .scri-mini-grid {
        grid-template-columns: 1fr;
    }
    .scri-search-row {
        grid-template-columns: 1fr;
    }
    .scri-pin-buttons {
        justify-content: stretch;
    }
    .scri-pin-buttons .scri-btn,
    .scri-actions .scri-btn {
        width: 100%;
    }
    .scri-map {
        min-height: 430px;
        height: 55vh;
        border-radius: 18px;
    }
    .scri-card {
        border-radius: 20px;
        padding: 14px;
    }
}
.scri-div-pin span b {
    display: inline-block;
    transform: rotate(45deg);
    line-height: 1;
}

/* v1.1 layout hardening for real WordPress themes */
.scri-wrap {
    max-width: 1240px !important;
    overflow: visible !important;
    isolation: isolate;
}
.scri-wrap .scri-grid,
.scri-wrap .scri-card,
.scri-wrap .scri-form,
.scri-wrap .scri-map-card,
.scri-wrap .scri-map-head,
.scri-wrap .scri-search-row,
.scri-wrap .scri-pin-buttons,
.scri-wrap .scri-two {
    min-width: 0 !important;
}
.scri-wrap .scri-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
}
.scri-wrap .scri-card {
    overflow: hidden !important;
}
.scri-wrap .scri-form label,
.scri-wrap .scri-form input,
.scri-wrap .scri-form select,
.scri-wrap .scri-form textarea {
    max-width: 100% !important;
}
.scri-wrap .scri-form input,
.scri-wrap .scri-form select,
.scri-wrap .scri-form textarea {
    margin: 0 !important;
    line-height: 1.35 !important;
}
.scri-wrap .scri-search-row {
    grid-template-columns: minmax(0, 1fr) 108px !important;
    align-items: stretch !important;
    width: 100% !important;
    overflow: hidden !important;
}
.scri-wrap .scri-search-row .scri-btn {
    width: 108px !important;
    min-width: 0 !important;
    max-width: 108px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    white-space: nowrap !important;
}
.scri-wrap button.scri-btn,
.scri-wrap a.scri-btn,
.scri-wrap .scri-whatsapp {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: static !important;
    float: none !important;
    border-radius: 14px !important;
    border-width: 1px !important;
    border-style: solid !important;
    min-height: 46px !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none;
}
.scri-wrap .scri-btn-primary {
    background: linear-gradient(135deg, #0b63b6, #168bff) !important;
    border-color: #0b63b6 !important;
    color: #fff !important;
    box-shadow: 0 12px 25px rgba(9, 103, 210, .25) !important;
}
.scri-wrap .scri-btn-secondary {
    background: #102a43 !important;
    border-color: #102a43 !important;
    color: #fff !important;
}
.scri-wrap .scri-btn-soft {
    background: #e8f3ff !important;
    border-color: #cde5ff !important;
    color: #0b63b6 !important;
}
.scri-wrap .scri-btn-ghost {
    background: #fff !important;
    border-color: #dbeafe !important;
    color: #123b68 !important;
}
.scri-wrap .scri-map-card {
    z-index: 3 !important;
}
.scri-wrap .scri-map-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 200px !important;
    align-items: start !important;
}
.scri-wrap .scri-pin-buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 200px !important;
    max-width: 100% !important;
    justify-content: stretch !important;
}
.scri-wrap .scri-pin-buttons .scri-btn {
    width: 100% !important;
    min-width: 0 !important;
}
.scri-wrap .scri-map {
    display: block !important;
    max-width: 100% !important;
}
.scri-wrap .leaflet-container img,
.scri-wrap .leaflet-container .leaflet-tile {
    max-width: none !important;
    max-height: none !important;
}
.scri-wrap .leaflet-container a,
.scri-wrap .leaflet-container button {
    box-shadow: none !important;
}
@media (max-width: 1180px) {
    .scri-wrap .scri-grid {
        grid-template-columns: minmax(300px, 420px) minmax(0, 1fr) !important;
    }
    .scri-wrap .scri-map-head {
        grid-template-columns: 1fr !important;
    }
    .scri-wrap .scri-pin-buttons {
        width: 100% !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 980px) {
    .scri-wrap .scri-grid {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 680px) {
    .scri-wrap .scri-search-row,
    .scri-wrap .scri-pin-buttons {
        grid-template-columns: 1fr !important;
    }
    .scri-wrap .scri-search-row .scri-btn {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* v1.2 frontend responsive repair: shortcode-width aware layout
   Fixes hidden buttons/fields when the shortcode is placed inside a narrow WordPress content column. */
.scri-wrap {
    container-type: inline-size !important;
    max-width: min(1240px, 100%) !important;
}
.scri-wrap .scri-grid {
    grid-template-columns: minmax(360px, .82fr) minmax(560px, 1.18fr) !important;
    align-items: start !important;
}
.scri-wrap #scriLeadForm.scri-card {
    overflow: visible !important;
    z-index: 2 !important;
}
.scri-wrap .scri-map-card {
    overflow: hidden !important;
}
.scri-wrap .scri-search-row input,
.scri-wrap .scri-two > label,
.scri-wrap .scri-actions .scri-btn,
.scri-wrap .scri-pin-buttons .scri-btn {
    min-width: 0 !important;
}
.scri-wrap .scri-search-row {
    grid-template-columns: minmax(0, 1fr) 104px !important;
    overflow: visible !important;
}
.scri-wrap .scri-search-row .scri-btn {
    width: 104px !important;
    max-width: 104px !important;
    white-space: nowrap !important;
}
.scri-wrap .scri-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.scri-wrap .scri-actions .scri-btn,
.scri-wrap .scri-pin-buttons .scri-btn {
    white-space: normal !important;
    text-align: center !important;
}

@container (max-width: 1120px) {
    .scri-wrap .scri-grid {
        grid-template-columns: 1fr !important;
    }
    .scri-wrap .scri-map-card {
        position: relative !important;
        top: auto !important;
    }
    .scri-wrap .scri-map-head {
        grid-template-columns: 1fr !important;
    }
    .scri-wrap .scri-pin-buttons {
        width: 100% !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .scri-wrap .scri-map {
        min-height: 430px !important;
        height: min(58vh, 560px) !important;
    }
}

@container (max-width: 760px) {
    .scri-wrap .scri-two,
    .scri-wrap .scri-route-info,
    .scri-wrap .scri-mini-grid {
        grid-template-columns: 1fr !important;
    }
    .scri-wrap .scri-hero {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .scri-wrap .scri-hero-badge {
        width: 100% !important;
    }
}

@container (max-width: 560px) {
    .scri-wrap {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .scri-wrap .scri-search-row,
    .scri-wrap .scri-actions,
    .scri-wrap .scri-pin-buttons {
        grid-template-columns: 1fr !important;
    }
    .scri-wrap .scri-search-row .scri-btn,
    .scri-wrap .scri-actions .scri-btn,
    .scri-wrap .scri-pin-buttons .scri-btn {
        width: 100% !important;
        max-width: 100% !important;
    }
    .scri-wrap .scri-card {
        padding: 14px !important;
        border-radius: 20px !important;
    }
    .scri-wrap .scri-map {
        min-height: 360px !important;
        height: 54vh !important;
    }
}


/* v1.3 one-click action button */
.scri-actions.scri-actions-single {
    display: block !important;
}
.scri-actions-single .scri-btn-main-action {
    width: 100% !important;
    min-height: 54px !important;
    white-space: normal !important;
    text-align: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
}
.scri-btn.scri-is-saving,
.scri-btn:disabled {
    opacity: 0.72 !important;
    cursor: wait !important;
    pointer-events: none !important;
}
