/* ============================================================
   1. GLOBAL VARIABLES
   Change these variables first to match your website.
   ============================================================ */

.quote-app {
    --quote-ink: #333333;
    --quote-muted: #737373;
    --quote-accent: #ff00a7;
    --quote-bg: #f9f9f9;
    --quote-card: #fff;
    --quote-border: #e2e2e2;
    --quote-radius: 6px;
    --quote-font: Arial, Helvetica, sans-serif;
}


/* Quoter-only baseline: undo inherited site presentation on the quoter subtree.
   Note: very specific site rules or !important rules may still override this. */

.quote-app,
.quote-app :where(*:not(svg):not(svg *)) {

    all: revert;

    box-sizing: border-box;

}

.quote-app {
    display: block;
    background: var(--quote-bg);
    color: var(--quote-ink);
    font: 16px/1.55 var(--quote-font);
}

/* ============================================================
   2. GLOBAL STYLES
   ============================================================ */

.quote-app, .quote-app * {
    box-sizing: border-box;
}



.quote-app h1,
.quote-app h2,
.quote-app h3,
.quote-app p {
    margin-top: 0;
}

.quote-app .eyebrow {
    font-size: 11px;
    letter-spacing: .18em;
    font-weight: 700;
    color: var(--quote-accent);
}


/* ============================================================
   3. PAGE LAYOUT & INTRODUCTION
   ============================================================ */

.quote-app {
    -max-width: 1120px;
    margin: 0 auto;
    padding: 22px 24px 30px;
}

.quote-app .intro {
    max-width: 750px;
    margin-bottom: 32px;
}

.quote-app .intro h1 {
   font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 500;
    letter-spacing: -.03em;
    margin: 12px 0;
}

.quote-app .intro p,
.quote-app .results-head p {
    color: var(--quote-muted);
}


/* ============================================================
   4. QUOTE FORM
   ============================================================ */

.quote-app .quote-form {
    background: var(--quote-card);
    border: 1px solid var(--quote-border);
    padding: 28px;
    margin-bottom: 48px;
}

/* Form heading */

.quote-app .form-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.quote-app .form-heading h2 {
    font-size: 21px;
    margin: 0;
}

.quote-app .form-heading span {
    font-size: 13px;
    color: var(--quote-muted);
}

/* Form fields */

.quote-app .fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.quote-app .fields label {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.quote-app .fields input {
    display: block;
    margin-top: 6px;
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d1d1;
    background: #fff;
    border-radius: 2px;
    font: inherit;
    font-size: 16px;
    color: var(--quote-ink);
}

.quote-app .fields input:focus {
    outline: 2px solid var(--quote-accent);
    outline-offset: 1px;
}


/* ============================================================
   5. SUBMIT BUTTON
   ============================================================ */

.quote-app .submit-btn {
    margin-top: 24px;
    background: var(--quote-ink);
    color: white;
    border: 0;
    padding: 15px 23px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.quote-app .submit-btn:hover {
    background: var(--quote-accent);
}

.quote-app .submit-btn span {
    margin-left: 14px;
}

.quote-app .submit-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}


/* ============================================================
   6. FURNITURE SELECTOR
   ============================================================ */

/* Instructions */

.quote-app .selector-help {
    font-size: 14px;
    color: var(--quote-muted);
    margin: 0 0 22px;
}

/* Furniture card grid */

.quote-app .furniture-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

/* Individual furniture cards */

.quote-app .furniture-card {
    border: 2px solid var(--quote-border);
    background: #fff;
    border-radius: var(--quote-radius);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color .15s, background-color .15s;
    min-width: 0;
}

/* Selected furniture card */

.quote-app .furniture-card.is-selected {
    border-color: var(--quote-accent);
    background: #fcf7fb;
}

/* Furniture illustrations */

.quote-app .furniture-art {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.quote-app .furniture-art img {
    max-width: 100%;
    width: 180px;
    height: 100px;
    object-fit: contain;
    color: var(--quote-ink);
}

/* Furniture names and dimensions */

.quote-app .furniture-card h3 {
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 4px;
    font-weight: 600;
}

.quote-app .furniture-size {
    font-size: 12px;
    color: var(--quote-muted);
    margin: 0 0 14px;
    flex: 1;
}


/* ============================================================
   7. QUANTITY CONTROLS
   ============================================================ */

.quote-app .quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid var(--quote-border);
    border-radius: 5px;
    overflow: hidden;
}

/* Plus and minus buttons */

.quote-app .quantity-control button {
    border: 0;
    background: #f0f0f0;
    color: var(--quote-ink);
    width: 42px;
    height: 42px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.quote-app .quantity-control button:disabled {
    opacity: .35;
    cursor: default;
}

/* Quantity input */

.quote-app .quantity-control input {
    width: 44px;
    height: 42px;
    border: 0;
    text-align: center;
    background: #fff;
    font: 600 16px var(--quote-font);
    color: var(--quote-ink);
    -moz-appearance: textfield;
}

/* Hide native number input arrows */

.quote-app .quantity-control input::-webkit-inner-spin-button,
.quote-app .quantity-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* ============================================================
   8. SHIPMENT DETAILS
   ============================================================ */

.quote-app .shipment-bottom {
    display: flex;
    align-items: end;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* Destination ZIP code */

.quote-app .destination-field {
    display: block;
    font-size: 13px;
    font-weight: 600;
    min-width: 200px;
}

.quote-app .destination-field input {
    display: block;
    margin-top: 6px;
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d1d1;
    background: #fff;
    border-radius: 2px;
    font: inherit;
    font-size: 16px;
}

/* Shipment summary */

.quote-app .shipment-summary {
    font-size: 16px;
}

.quote-app .shipment-summary small {
    display: block;
    font-size: 12px;
    color: var(--quote-muted);
}


/* ============================================================
   9. QUOTE RESULTS
   ============================================================ */

.quote-app .results-head {
    margin-bottom: 23px;
}

.quote-app .results-head h2 {
    font-size: 34px;
    font-weight: 500;
    margin: 7px 0;
    font-family: 'Playfair Display', serif;
}


/* ============================================================
   10. SHIPPING SERVICE CARDS
   ============================================================ */

/* Service grid */

.quote-app .service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

/* Individual service card */

.quote-app .service-card {
    background: var(--quote-card);
    border: 1px solid var(--quote-border);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    min-height: 310px;
}

/* Card heading */

.quote-app .service-card-top {
    min-height: 83px;
}

.quote-app .service-code {
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--quote-accent);
    font-weight: 700;
}

.quote-app .service-card h3 {
    font-size: 21px;
    line-height: 1.2;
    font-weight: 600;
    margin: 9px 0 0;
}

/* Service description */

.quote-app .service-description {
    font-size: 14px;
    color: var(--quote-muted);
    line-height: 1.6;
    flex: 1;
}

/* Pricing */

.quote-app .service-price {
    font-size: 43px;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin-top: 15px;
}

.quote-app .service-price-caption {
    font-size: 12px;
    color: var(--quote-muted);
    margin-top: 7px;
}


/* ============================================================
   11. TRANSIT TIME INFORMATION
   ============================================================ */

.quote-app .transit-note {
    background: #ecf1f5;
    padding: 23px 26px;
    margin-top: 22px;
}

.quote-app .transit-note p {
    font-size: 14px;
    margin: 9px 0 0;
}


/* ============================================================
   12. SHIPPING ROUTE MAP
   ============================================================ */

/* Map container */

.quote-app .route-panel {
    margin-top: 24px;
    background: white;
    border: 1px solid var(--quote-border);
    padding: 22px;
}

.quote-app .route-panel h3 {
    margin: 0;
    font-size: 21px;
}

.quote-app .route-panel p {
    font-size: 13px;
    color: var(--quote-muted);
    margin: 3px 0 10px;
}

/* Map SVG */

.quote-app .route-map {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    background: #f5f8fa;
}

/* US outline */

.quote-app .us-outline {
    fill: #f5f8fa;
    stroke: #a1bacf;
    stroke-width: 2;
    stroke-linejoin: round;
}

/* Geographic boundaries */

.quote-app .state-boundaries {
    stroke: #d0dde7;
    stroke-width: .8;
}

.quote-app .coast-boundaries {
    stroke: #a1bacf;
    stroke-width: 1.35;
}

.quote-app .country-boundaries {
    stroke: #a1bacf;
    stroke-width: 1.25;
}

/* Route line */

.quote-app .route-line {
    fill: none;
    stroke: #ff00a7;
    stroke-width: 4;
    stroke-linecap: round;
}

/* Origin and destination points */

.quote-app .route-point {
    fill: #ff00a7;
    stroke: white;
    stroke-width: 2;
}

/* Map labels */

.quote-app .route-label {
    font: 700 18px Arial, sans-serif;
    fill: #303d37;
    paint-order: stroke;
    stroke: white;
    stroke-width: 4;
}

/* Map unavailable message */

.quote-app .map-unavailable {
    font-style: italic;
}


/* ============================================================
   13. CUSTOM QUOTE NOTICES
   Non-standard destinations and partially available services
   ============================================================ */

.quote-app .custom-quote-notice {
    margin: 24px 0;
    padding: 24px;
    border: 1px solid #ff00a7;
    background: #fcf7fb;
    border-radius: 8px;
    color: #333333;
}

.quote-app .custom-quote-notice h2,
.quote-app .custom-quote-notice h3 {
    margin: 0 0 10px;
    color: inherit;
}

.quote-app .custom-quote-notice p {
    margin: 0 0 10px;
    line-height: 1.55;
}

.quote-app .custom-quote-notice p:last-child {
    margin-bottom: 0;
}

/* Partial service availability */

.quote-app .service-availability-note {
    margin: 18px 0;
    padding: 14px 18px;
    border-left: 3px solid #ff00a7;
    background: #fcf7fb;
    line-height: 1.5;
}


/* ============================================================
   14. DISCLAIMERS & FOOTNOTES
   ============================================================ */

.quote-app .disclaimer {
    margin-top: 24px;
    border-top: 1px solid var(--quote-border);
    border-bottom: 1px solid var(--quote-border);
    padding: 16px 0;
}

.quote-app .disclaimer summary,
.quote-app .diagnostics summary {
    cursor: pointer;
    font-weight: 600;
}

.quote-app .disclaimer-text {
    white-space: normal;
    font-size: 13px;
    color: var(--quote-muted);
    padding: 16px 0;
}

.quote-app .estimate-footnote {
    font-size: 12px;
    color: var(--quote-muted);
    margin-top: 20px;
}


/* ============================================================
   15. DIAGNOSTICS & DEBUGGING
   ============================================================ */

.quote-app .diagnostics {
    margin-top: 32px;
    border-top: 1px solid var(--quote-border);
    padding-top: 20px;
}

.quote-app .diagnostics pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #edf0ec;
    padding: 18px;
    font-size: 12px;
    max-height: 400px;
    overflow: auto;
}


/* ============================================================
   16. ERROR MESSAGES
   ============================================================ */

.quote-app .error {
    padding: 16px;
    background: #ffe5e1;
    border: 1px solid #dd9990;
    margin: 20px 0;
}


/* ============================================================
   17. RESPONSIVE STYLES
   ============================================================ */


/* ------------------------------------------------------------
   TABLET / SMALL DESKTOP
   Maximum width: 850px
   ------------------------------------------------------------ */

@media (max-width: 850px) {

    /* Shipping services: 2 columns */

    .quote-app .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Form fields: 2 columns */

    .quote-app .fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Furniture selector: 2 columns */

    .quote-app .furniture-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ------------------------------------------------------------
   MOBILE
   Maximum width: 520px
   ------------------------------------------------------------ */

@media (max-width: 520px) {

    .quote-app {
        padding: 28px 14px 60px;
    }

    /* Single-column shipping services */

    .quote-app .service-grid {
        grid-template-columns: 1fr;
    }

    /* Single-column form fields */

    .quote-app .fields {
        grid-template-columns: 1fr;
    }

    .quote-app .quote-form {
        padding: 18px;
    }

    /* Remove fixed card heights */

    .quote-app .service-card {
        min-height: 0;
    }

    .quote-app .service-card-top {
        min-height: 0;
    }

    .quote-app .service-description {
        margin: 15px 0;
    }

    /* Map labels */

    .quote-app .route-label {
        font-size: 22px;
    }

}


/* ------------------------------------------------------------
   SMALL MOBILE
   Maximum width: 380px
   ------------------------------------------------------------ */

@media (max-width: 380px) {

    /* Furniture selector */

    .quote-app .furniture-grid {
        gap: 8px;
    }

    .quote-app .furniture-card {
        padding: 12px 6px;
    }

    .quote-app .furniture-art {
        height: 85px;
    }

    .quote-app .furniture-art img {
        height: 80px;
    }

    .quote-app .furniture-card h3 {
        font-size: 14px;
    }

    /* Quantity controls */

    .quote-app .quantity-control button {
        width: 36px;
        height: 40px;
    }

    .quote-app .quantity-control input {
        width: 34px;
        height: 40px;
    }

}

/* ============================================================
   DELIVERY GUIDANCE (outside .quote-app)
   Scoped to avoid changing the site's navigation and footer.
   ============================================================ */

.shipping-delivery-guidance {
    margin: 28px 0 34px;
    padding: 24px 28px;
    border: 1px solid #dfe4dd;
    border-radius: 10px;
    background: #fff;
    color: #27312e;
    font: 16px/1.55 Arial, Helvetica, sans-serif;
}

.shipping-delivery-guidance,
.shipping-delivery-guidance * {
    box-sizing: border-box;
}

.shipping-delivery-guidance h2 {
    margin: 0 0 6px;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 600;
}

.shipping-delivery-guidance .shipping-guidance-intro {
    margin: 0 0 18px;
    color: #68736d;
}

.shipping-delivery-guidance details {
    border-top: 1px solid #dfe4dd;
}

.shipping-delivery-guidance details:last-of-type {
    border-bottom: 1px solid #dfe4dd;
}

.shipping-delivery-guidance summary {
    display: list-item;
    padding: 16px 4px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.shipping-delivery-guidance .shipping-guidance-content {
    padding: 0 6px 16px;
    font-size: 15px;
}

.shipping-delivery-guidance .shipping-guidance-content p {
    margin: 0 0 12px;
}

.shipping-delivery-guidance .shipping-guidance-content ul {
    margin: 0 0 12px;
    padding-left: 24px;
    list-style: disc outside;
}

.shipping-delivery-guidance .shipping-guidance-content li {
    margin: 0 0 8px;
    padding: 0;
}

.shipping-delivery-guidance .shipping-guidance-estimate {
    margin: 20px 0 0;
    font-size: 13px;
    color: #68736d;
}

@media (max-width: 520px) {
    .shipping-delivery-guidance {
        padding: 18px;
    }
}

/* Quote sharing */
.quote-app .quote-share{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0 12px}
.quote-app .share-link-btn{border:1px solid #333;border-radius:6px;background:#fff;color:#222;padding:12px 18px;font:inherit;font-weight:600;cursor:pointer}
.quote-app .share-link-btn:hover{background:#f1f1f1}
.quote-app #share-link-status{overflow-wrap:anywhere;font-size:13px}
