/* Skip Booking — inline quote calculator */

.sbs-calc {
    --sbs-calc-radius: 10px;
    --sbs-calc-height: 50px;
    --sbs-calc-accent: #e11d23;
    --sbs-calc-accent-hover: #b91419;
    --sbs-calc-cta: #0d1840;
    --sbs-calc-text: #1f2330;
    --sbs-calc-muted: #6b7280;
    --sbs-calc-border: #e2e6ec;
    --sbs-calc-bg: #ffffff;
    --sbs-calc-soft: #f7f8fa;

    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    /*padding: 28px 28px 24px;*/
    background: var(--sbs-calc-bg);
    /*border-radius: 14px;*/
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);*/
    font-family: inherit;
    color: var(--sbs-calc-text);
    box-sizing: border-box;
}

.sbs-calc *,
.sbs-calc *::before,
.sbs-calc *::after {
    box-sizing: border-box;
}

.sbs-calc-heading {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    color: var(--sbs-calc-text);
}

.sbs-calc-error {
    margin: 0 0 14px;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: var(--sbs-calc-radius);
    font-size: 14px;
}

/* ---------- Form ---------- */
.sbs-calc-form {
    display: block;
}

.sbs-calc-row {
    margin: 0 0 14px;
}

.sbs-calc-row[hidden] {
    display: none;
}

.sbs-calc-field-label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--sbs-calc-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sbs-calc-input {
    width: 100%;
    height: var(--sbs-calc-height);
    background: #fff;
    border: 1px solid var(--sbs-calc-border);
    border-radius: var(--sbs-calc-radius);
    padding: 0 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--sbs-calc-text);
    appearance: auto;
    -webkit-appearance: auto;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sbs-calc-input:hover {
    border-color: #c8ced8;
}

.sbs-calc-input:focus {
    border-color: var(--sbs-calc-cta);
    box-shadow: 0 0 0 3px rgba(13, 24, 64, 0.10);
}

/* ---------- On-road question ---------- */
.sbs-calc-row--onroad {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    background: var(--sbs-calc-soft);
    padding: 14px 16px;
    border-radius: var(--sbs-calc-radius);
}

.sbs-calc-row--onroad[hidden] {
    display: none;
}

.sbs-calc-label {
    font-weight: 700;
    font-size: 14px;
    flex: 1 1 100%;
}

@media (min-width: 480px) {
    .sbs-calc-label {
        flex: 1 1 auto;
    }
}

.sbs-calc-radios {
    display: flex;
    gap: 14px;
}

.sbs-calc-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}

.sbs-calc-radio input {
    accent-color: var(--sbs-calc-accent);
    width: 16px;
    height: 16px;
}

/* ---------- Calculate button ---------- */
.sbs-calc-row--submit {
    margin-top: 18px;
    margin-bottom: 4px;
}

.sbs-calc-submit {
    display: block;
    width: 100%;
    height: 52px;
    background: var(--sbs-calc-accent);
    color: #fff;
    border: 0;
    border-radius: var(--sbs-calc-radius);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, transform 0.05s ease;
}

.sbs-calc-submit:hover:not(:disabled) {
    background: var(--sbs-calc-accent-hover);
}

.sbs-calc-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.sbs-calc-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Loading spinner ---------- */
.sbs-calc-loading {
    display: flex;
    justify-content: center;
    padding: 16px 0 4px;
}

.sbs-calc-loading[hidden] {
    display: none;
}

.sbs-calc-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--sbs-calc-accent);
    border-radius: 50%;
    animation: sbs-calc-spin 0.7s linear infinite;
}

@keyframes sbs-calc-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Result block ---------- */
.sbs-calc-result {
    margin-top: 22px;
    padding: 22px 20px 18px;
    background: var(--sbs-calc-soft);
    border-radius: 12px;
    border: 1px solid var(--sbs-calc-border);
}

.sbs-calc-result[hidden] {
    display: none;
}

.sbs-calc-result-header {
    margin-bottom: 16px;
    text-align: center;
}

.sbs-calc-result-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--sbs-calc-text);
    margin-bottom: 10px;
}

.sbs-calc-result-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.sbs-calc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    background: #fff;
    border: 1px solid var(--sbs-calc-border);
    border-radius: 999px;
    font-size: 12px;
    color: var(--sbs-calc-text);
}

.sbs-calc-pill-label {
    color: var(--sbs-calc-muted);
    font-weight: 500;
}

/* ---------- Breakdown table ---------- */
.sbs-calc-breakdown {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sbs-calc-breakdown li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed #e2e6ec;
    font-size: 14px;
}

.sbs-calc-breakdown li.is-muted {
    color: var(--sbs-calc-muted);
}

.sbs-calc-breakdown li:last-child {
    border-bottom: 0;
}

.sbs-calc-line-label {
    font-weight: 600;
}

.sbs-calc-line-label small {
    font-weight: 400;
    color: var(--sbs-calc-muted);
    margin-left: 4px;
    font-size: 12px;
}

.sbs-calc-line-value {
    font-weight: 600;
    white-space: nowrap;
}

.sbs-calc-breakdown li.is-muted .sbs-calc-line-value,
.sbs-calc-breakdown li.is-muted .sbs-calc-line-label {
    font-weight: 500;
}

/* ---------- Total ---------- */
.sbs-calc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding: 14px 16px;
    background: var(--sbs-calc-text);
    color: #fff;
    border-radius: var(--sbs-calc-radius);
    flex-wrap: wrap;
}

.sbs-calc-total-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    opacity: 0.85;
}

.sbs-calc-total-price {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

/* ---------- Tonnage note ---------- */
.sbs-calc-tonnage {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--sbs-calc-radius);
    font-size: 13px;
    color: #78350f;
}

.sbs-calc-tonnage[hidden] {
    display: none;
}

/* ---------- CTA ---------- */
.sbs-calc-cta {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--sbs-calc-border);
    text-align: center;
}

.sbs-calc-cta-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--sbs-calc-text);
    margin-bottom: 4px;
}

.sbs-calc-phone {
    display: inline-block;
    color: var(--sbs-calc-accent);
    font-weight: 800;
    font-size: 22px;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.sbs-calc-phone:hover {
    text-decoration: underline;
}

/* ---------- Disclaimer ---------- */
.sbs-calc-disclaimer {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    color: var(--sbs-calc-muted);
    font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
    .sbs-calc {
        /*padding: 20px 18px 18px;*/
    }

    .sbs-calc-result {
        padding: 18px 14px 14px;
    }

    .sbs-calc-total-price {
        font-size: 24px;
    }
}
