/* ============================================================
   Design.css  —  Design Services page (/design)

   Follows the same conventions as About.css: a plain global
   stylesheet with every rule namespaced under .design so it
   cannot collide with bootstrap (.container, .btn) or site.css.

   Link in App.razor <head>:
       <link rel="stylesheet" href="css/Design.css" />
   ============================================================ */

.design {
    --ashley-orange: #eb8e38;
    --ashley-orange-dk: #d47a2e;
    --ashley-gold: #c8a96b;
    --ashley-blue: #000000;
    --ashley-cream: #f8f5ef;
    --ashley-cream-dp: #f4efe5;
    --ashley-border: #d9d2c5;
    --ashley-text: #2f2f2f;
    --ashley-ink: #1a1a1a;
    --ashley-muted: #6b6b6b;
    --radius-sm: 8px;
    --radius: 12px;
    --pill: 999px;
    --shadow: 0 10px 25px rgba(47, 47, 47, .08);
    --shadow-sm: 0 2px 10px rgba(47, 47, 47, .06);
    --max: 1200px;
    --serif: "Publico Headline", Georgia, "Times New Roman", serif;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ashley-text);
    line-height: 1.6;
    background: #fff;
}

.design h1,
.design h2,
.design h3 {
    margin: 0 0 .5rem;
    line-height: 1.2;
    border: none;
}

.design .dsg-container {
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: 24px;
    width: auto;
}

.design [id] {
    scroll-margin-top: 120px; /* clears the fixed site header */
}

/* ---------------------------- Eyebrow ---------------------------- */
.design .dsg-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ashley-gold);
    margin-bottom: 12px;
}

/* ---------------------------- Buttons ---------------------------- */
.design .dsg-btn {
    display: inline-block;
    padding: 13px 30px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .5px;
    text-decoration: none;
    text-align: center;
    border-radius: var(--pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.design .dsg-btn--primary {
    background: var(--ashley-orange);
    color: #fff;
}

    .design .dsg-btn--primary:hover,
    .design .dsg-btn--primary:focus-visible {
        background: var(--ashley-orange-dk);
        color: #fff;
    }

/* Outlined button for light surfaces — same treatment as .btn--ghost on the
   About and Careers pages, so a secondary action reads the same site-wide. */
.design .dsg-btn--ghost {
    background: #fff;
    color: var(--ashley-orange);
    border-color: var(--ashley-orange);
}

    .design .dsg-btn--ghost:hover,
    .design .dsg-btn--ghost:focus-visible {
        background: #fff8f2;
        border-color: var(--ashley-orange-dk);
        color: var(--ashley-orange-dk);
    }

.design .dsg-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ============================== HERO ============================== */

/* Hero height. This is the one number to tune:
     - larger  -> taller band, less of the video's top/bottom cropped
     - smaller -> shorter band, more cropped
   The video is 1920x1082, so an uncropped full-bleed hero would be 56.3vw
   tall (~1080px on a 1920 screen) — taller than the window, which would
   push "Our process" entirely out of view. 50vw/720px is the compromise:
   about 17% comes off the top (ceiling, window tops) and 17% off the
   bottom (rug), leaving the windows and the whole sectional in frame. */
.design .dsg-hero {
    --dsg-hero-h: clamp(440px, 50vw, 720px);
    position: relative;
    height: var(--dsg-hero-h);
    overflow: hidden;
    background: #1a1a1a;
}

/* The media fills that band and crops to it. object-position keeps the
   centre of the frame — where the furniture sits — in view. */
.design .dsg-hero__bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Soft wash on the left so the title stays readable over the photo. */
.design .dsg-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(26,26,26,.55) 0%, rgba(26,26,26,.32) 32%, rgba(26,26,26,0) 62%);
}

/* Overlaid on the media. A column flexbox so the title block can be
   anchored to the top (desktop, per the reference) or the bottom
   (narrow screens) by changing justify-content alone. */
.design .dsg-hero__inner {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding: clamp(32px, 4vw, 56px) 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.design .dsg-hero__content {
    max-width: 560px;
}

.design .dsg-hero__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(34px, 4.4vw, 58px);
    letter-spacing: .5px;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
    margin-bottom: 10px;
}

.design .dsg-hero__sub {
    font-size: clamp(14px, 1.2vw, 17px);
    line-height: 1.6;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
    margin: 0 0 24px;
}

.design .dsg-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================ OUR PROCESS ============================ */

.design .dsg-process {
    background: #fff;
    padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 6vw, 88px);
}

.design .dsg-process__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(28px, 3.2vw, 42px);
    color: #000000;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.design .dsg-process__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 2.4vw, 32px);
}

.design .dsg-step {
    min-width: 0;
    text-align: center;
}

.design .dsg-step__media {
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--ashley-cream-dp);
    margin-bottom: 18px;
}

    .design .dsg-step__media img {
        display: block;
        width: 100%;
        height: 100%;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        transition: transform .4s ease;
    }

.design .dsg-step:hover .dsg-step__media img {
    transform: scale(1.03);
}

    .design .dsg-step__title {
        font-size: 15px;
        font-weight: 700;
        color: #000000;
        margin-bottom: 8px;
    }

    .design .dsg-step__copy {
        font-size: 14px;
        line-height: 1.6;
        color: #000000;
        margin: 0;
        padding-inline: 4px;
    }

/* ============================ RESPONSIVE ============================ */

@media (max-width: 992px) {
    .design .dsg-process__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
}

@media (max-width: 768px) {
    /* A landscape video shrinks fast on narrow screens, so hold a taller
       band and drop the title to the bottom of it. */
    .design .dsg-hero {
        --dsg-hero-h: clamp(380px, 52vw, 420px);
    }

    .design .dsg-hero__inner {
        justify-content: flex-end;
    }

    .design .dsg-hero__scrim {
        background: linear-gradient(180deg, rgba(26,26,26,.15) 0%, rgba(26,26,26,.30) 45%, rgba(26,26,26,.68) 100%);
    }

    .design .dsg-hero__content {
        max-width: none;
    }

    .design .dsg-intake__frame {
        height: 860px;
    }
}

@media (max-width: 560px) {
    .design .dsg-process__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .design .dsg-step__media img {
        aspect-ratio: 4 / 3;
    }

    .design .dsg-hero__actions .dsg-btn {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .design .dsg-step__media img {
        transition: none;
    }

    .design .dsg-step:hover .dsg-step__media img {
        transform: none;
    }
}

/* ========================================================================
   QUESTIONNAIRE  (/design/questionnaire)

   A short stepped intake form. Deliberately built out of the same parts
   as the rest of the page so it reads as a continuation of /design and
   not a bolted-on form:

     - the 860px panel width, 18px radius, border and shadow of
       .dsg-intake__panel
     - the gold eyebrow of .dsg-intake__head, over Arial headings — bold
       ink for the questions, orange for a section title, exactly as
       About.css and Careers.css do it. No serif and no blue in here:
       the Publico/blue display type stays on the /design hero.
     - the cream band of .dsg-intake, with its hairline top border
     - site.css form-control conventions for inputs: 1px border, 12px
       radius, gold focus ring, red required marks
     - Careers/About card conventions for the selectable chips: orange
       border and an orange-tinted shadow on hover
   ======================================================================== */

.design .dsq {
    background: linear-gradient(180deg, #fbfaf7 0%, var(--ashley-cream-dp) 100%);
    border-top: 1px solid var(--ashley-border);
    min-height: 70vh;
    padding: clamp(28px, 5vw, 64px) 24px clamp(48px, 6vw, 80px);
}

.design .dsq__shell {
    max-width: 860px;
    margin-inline: auto;
}

/* Ties the form back to its parent page rather than leaving it stranded. */
.design .dsq__parent {
    display: inline-block;
    margin-bottom: clamp(14px, 2vw, 22px);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ashley-gold);
    transition: color .2s ease;
}

    .design .dsq__parent:hover,
    .design .dsq__parent:focus-visible {
        color: var(--ashley-orange-dk);
    }

/* ----------------------------- Progress ----------------------------- */

.design .dsq__progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: clamp(16px, 2.4vw, 26px);
}

.design .dsq__progress-bar {
    flex: 1;
    height: 6px;
    border-radius: var(--pill);
    background: #e8dfd0;
    overflow: hidden;
}

.design .dsq__progress-fill {
    height: 100%;
    border-radius: var(--pill);
    background: var(--ashley-orange);
    transition: width .35s ease;
}

/* Same type treatment as .dsg-eyebrow, so the two pages rhyme. */
.design .dsq__progress-label {
    flex: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ashley-gold);
}

/* ------------------------------- Card ------------------------------- */

.design .dsq__card {
    background: #fff;
    border: 1px solid var(--ashley-border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: clamp(24px, 3.6vw, 44px);
    animation: dsq-in .28s ease both;
}

@keyframes dsq-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Plain Arial, like every other heading on About/Careers/Help — the
   Publico serif is reserved for the big display titles on /design. */
.design .dsq__q {
    font-weight: 700;
    font-size: clamp(20px, 2.2vw, 26px);
    color: var(--ashley-ink);
    line-height: 1.3;
    margin-bottom: 10px;
}

/* The step-0 title reads as a section title, so it takes the orange
   .section__title treatment used on the Careers page. */
.design .dsq__q--hero {
    font-size: clamp(24px, 3vw, 34px);
    color: var(--ashley-orange);
    line-height: 1.2;
}

.design .dsq__lede {
    font-size: clamp(16px, 1.4vw, 18px);
    color: var(--ashley-text);
    margin: 0 0 14px;
}

.design .dsq__help {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ashley-muted);
    margin: 0 0 20px;
}

.design .dsq__help--lg {
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.7;
    color: var(--ashley-text);
    margin-bottom: 0;
}

/* Matches the .subhead rule on the Careers page: bold ink over a short
   orange rule, rather than a plain grey divider. */
.design .dsq__subhead {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: var(--ashley-ink);
    margin: 34px 0 6px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ashley-orange);
}

.design .dsq__req {
    color: #d32f2f;
    font-weight: 700;
}
/* ------------------------- Location picker ------------------------- */

.design .dsq__picker {
    position: relative;
}

.design .dsq__picker-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 44px;
    text-align: left;
    cursor: pointer;
}

    /* Chevron */
    .design .dsq__picker-btn::after {
        content: "";
        position: absolute;
        right: 18px;
        top: 50%;
        width: 8px;
        height: 8px;
        border: solid var(--ashley-muted);
        border-width: 0 2px 2px 0;
        transform: translateY(-70%) rotate(45deg);
        transition: transform .2s ease;
    }

.design .dsq__picker.is-open .dsq__picker-btn {
    border-color: var(--ashley-gold);
    box-shadow: 0 0 0 4px rgba(200, 169, 107, .2);
}

    .design .dsq__picker.is-open .dsq__picker-btn::after {
        transform: translateY(-30%) rotate(-135deg);
    }

.design .dsq__picker-placeholder {
    color: var(--ashley-muted);
}

.design .dsq__loc-name {
    font-weight: 700;
    color: var(--ashley-ink);
    line-height: 1.3;
}

.design .dsq__loc-addr {
    font-size: 13px;
    color: var(--ashley-muted);
    line-height: 1.4;
}

.design .dsq__loc-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.design .dsq__loc-dist {
    flex: none;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ashley-orange-dk);
}

/* Zip code field with the "Find closest store" button beside it. */
.design .dsq__zip-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

    .design .dsq__zip-row .dsq__input {
        flex: 1;
        min-width: 0;
    }

.design .dsq__zip-btn {
    flex: none;
    white-space: nowrap;
    padding-inline: 18px;
}

.design .dsq__zip-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--ashley-muted);
}

/* Invisible layer that closes the list on an outside click. */
.design .dsq__picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10;
}

.design .dsq__picker-list {
    position: absolute;
    z-index: 11;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--ashley-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.design .dsq__picker-opt {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 12px 12px;
    text-align: left;
    font-family: inherit;
    background: none;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .15s ease;
}

    .design .dsq__picker-opt:hover,
    .design .dsq__picker-opt:focus-visible {
        background: #fff8f2;
        outline: none;
    }

    .design .dsq__picker-opt.is-on {
        background: #fff8f2;
        box-shadow: inset 3px 0 0 var(--ashley-orange);

    }
.design .dsq__picker-list li + li {
    border-top: 1px solid #efe9de;
}
/* ------------------------------ Fields ------------------------------ */

.design .dsq__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* Email, phone and zip each take the full row. */
.design .dsq__fields .dsq__field:nth-child(n+3) {
    grid-column: 1 / -1;
}

.design .dsq__field {
    min-width: 0;
}

.design .dsq__label {
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ashley-text);
}

/* site.css .form-control, scoped to this page. */
.design .dsq__input {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ashley-text);
    background: #fff;
    border: 1px solid var(--ashley-border);
    border-radius: var(--radius);
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .design .dsq__input:focus {
        outline: none;
        border-color: var(--ashley-gold);
        box-shadow: 0 0 0 4px rgba(200, 169, 107, .2);
    }

.design .dsq__textarea {
    resize: vertical;
    min-height: 170px;
    line-height: 1.6;
    margin-top: 4px;
}

.design .dsq__reveal {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--ashley-border);
}

/* ----------------------------- Options ----------------------------- */

.design .dsq__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.design .dsq__opt {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 13px 16px;
    text-align: left;
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.4;
    color: var(--ashley-text);
    background: #fff;
    border: 1px solid var(--ashley-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

    .design .dsq__opt:hover {
        border-color: var(--ashley-orange);
        box-shadow: 0 4px 16px rgba(232, 124, 30, .12);
    }

    .design .dsq__opt:focus-visible {
        outline: 2px solid var(--ashley-orange);
        outline-offset: 2px;
    }

    .design .dsq__opt.is-on {
        border-color: var(--ashley-orange);
        background: #fff8f2;
        box-shadow: inset 0 0 0 1px var(--ashley-orange);
    }

.design .dsq__opt-mark {
    flex: none;
    width: 19px;
    height: 19px;
    border: 2px solid #c9c2b4;
    border-radius: 5px;
    position: relative;
    transition: border-color .18s ease, background .18s ease;
}

.design .dsq__opt.is-on .dsq__opt-mark {
    border-color: var(--ashley-orange);
    background: var(--ashley-orange);
}

    .design .dsq__opt.is-on .dsq__opt-mark::after {
        content: "";
        position: absolute;
        left: 5px;
        top: 1px;
        width: 4px;
        height: 9px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.design .dsq__opt-text {
    min-width: 0;
}

/* Single-choice pair sitting inside a field (Preferred contact). */
.design .dsq__options--inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
}

.design .dsq__options--consent {
    margin-top: 22px;
}

/* Round mark + dot for single-choice options. */
.design .dsq__opt--radio .dsq__opt-mark {
    border-radius: 50%;
}

    .design .dsq__opt--radio.is-on .dsq__opt-mark::after {
        left: 3px;
        top: 3px;
        width: 7px;
        height: 7px;
        background: #fff;
        border: 0;
        border-radius: 50%;
        transform: none;
    }

.design .dsq__field .dsq__error {
    margin-top: 8px;
}

.design .dsq__file-x:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* -------------------------- Room dimensions -------------------------- */

.design .dsq__dimensions .dsq__subhead {
    margin-top: 0;
}

.design .dsq__dimensions .dsq__help {
    margin-bottom: 14px;
}
.design .dsq__dimension-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.design .dsq__dimension-row {
    width: 100%;
}

    .design .dsq__dimension-row .dsq__label {
        margin-bottom: 8px;
        font-size: 13.5px;
    }

    .design .dsq__dimension-row .dsq__input {
        padding-block: 10px;
    }

.design .dsq__dimension-row--empty {
    opacity: .65;
}

    .design .dsq__dimension-row--empty .dsq__input {
        background: var(--ashley-cream);
        cursor: default;
    }

/* ------------------------- Measurement tips ------------------------- */

.design .dsq__tips {
    margin: 0 0 22px;
    padding: 20px 22px;
    background: var(--ashley-cream);
    border: 1px solid var(--ashley-border);
    border-left: 4px solid var(--ashley-gold);
    border-radius: var(--radius-sm);
}

.design .dsq__tips-title {
    margin: 0 0 10px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ashley-ink);
}

.design .dsq__tips-list {
    margin: 0;
    padding-left: 20px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ashley-text);
}

.design .dsq__tips-link {
    color: var(--ashley-orange-dk);
    font-weight: 700;
}

/* ------------------------------ Upload ------------------------------ */

.design .dsq__upload-drop {
    display: block;
    position: relative;
    padding: 28px 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--ashley-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

    .design .dsq__upload-drop:hover {
        border-color: var(--ashley-orange);
        background: #fff8f2;
    }

    /* The real input covers the label so the whole box is the drop target. */
    .design .dsq__upload-drop input[type="file"] {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

.design .dsq__upload-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--ashley-orange-dk);
    margin-bottom: 4px;
}

.design .dsq__upload-hint {
    display: block;
    font-size: 13px;
    color: var(--ashley-muted);
}

/* Photo tiles: a small preview with the file name under it. */
.design .dsq__files {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

    .design .dsq__files li {
        position: relative;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: #fff;
        border: 1px solid var(--ashley-border);
        border-radius: var(--radius-sm);
        font-size: 13px;
    }

.design .dsq__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--ashley-cream);
}

.design .dsq__thumb--blank {
    border-bottom: 1px solid var(--ashley-border);
}

.design .dsq__file-name {
    min-width: 0;
    padding: 8px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Floats over the corner of the tile; 32px is the smallest comfortable tap target here. */
.design .dsq__file-x {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 1;
    color: var(--ashley-ink);
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--ashley-border);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

    .design .dsq__file-x:hover {
        background: #fff;
        color: #d32f2f;
    }

/* --------------------------- Working / sending --------------------------- */

.design .dsq__spinner {
    flex: none;
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid #f3d9bf;
    border-top-color: var(--ashley-orange);
    border-radius: 50%;
    animation: dsq-spin .8s linear infinite;
}

.design .dsq__spinner--btn {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: -3px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, .4);
    border-top-color: #fff;
}

@keyframes dsq-spin {
    to {
        transform: rotate(360deg);
    }
}

.design .dsq__working {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0;
    font-size: 13.5px;
    color: var(--ashley-muted);
}

.design .dsq__sending {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 16px 18px;
    background: #fff8f2;
    border: 1px solid var(--ashley-orange);
    border-radius: var(--radius);
}

    .design .dsq__sending strong {
        display: block;
        font-size: 15px;
        color: var(--ashley-ink);
    }

    .design .dsq__sending span:not(.dsq__spinner) {
        display: block;
        font-size: 13.5px;
        line-height: 1.5;
        color: var(--ashley-text);
    }

.design .dsq__card.is-busy .dsq__fields,
.design .dsq__card.is-busy .dsq__options,
.design .dsq__card.is-busy .dsq__reveal,
.design .dsq__card.is-busy .dsq__upload-drop,
.design .dsq__card.is-busy .dsq__files {
    opacity: .55;
    pointer-events: none;
}

/* site.css uses #d32f2f for validation copy. */
.design .dsq__error {
    margin: 16px 0 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #d32f2f;
}

/* ---------------------------- Navigation ---------------------------- */

.design .dsq__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

/* Mirrors .dsg-intake__note under the form on /design. */
.design .dsq__note {
    margin: 26px auto 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--ashley-muted);
}

    .design .dsq__note a {
        color: var(--ashley-orange-dk);
        font-weight: 700;
    }

/* ------------------------------- Done ------------------------------- */

.design .dsq__done {
    background: #fff;
    border: 1px solid var(--ashley-border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: clamp(36px, 5vw, 64px) clamp(22px, 4vw, 48px);
    text-align: center;
}

.design .dsq__done-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    font-size: 27px;
    color: #fff;
    background: var(--ashley-orange);
    border-radius: 50%;
}

.design .dsq__done-title {
    font-weight: 700;
    font-size: clamp(24px, 3vw, 34px);
    color: var(--ashley-orange);
    margin-bottom: 12px;
}

.design .dsq__done-copy {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ashley-text);
    margin: 0 auto 26px;
    max-width: 480px;
}

/* ---------------------------- Responsive ---------------------------- */

/* Tablet, phone and any touch screen (iPads in portrait are wider than 768px):
   16px text keeps iOS Safari from zooming into a focused field, and the touch
   targets reach roughly 44px. */
@media (max-width: 768px), (pointer: coarse) {
    .design .dsq__input {
        font-size: 16px;
        min-height: 48px;
    }

    .design .dsq__textarea {
        min-height: 140px;
    }

    .design .dsq__opt {
        min-height: 48px;
    }

    .design .dsq__nav .dsg-btn {
        min-height: 48px;
    }

    .design .dsq__file-x {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 560px) {
    .design .dsq {
        padding-inline: 14px;
    }

    .design .dsq__card {
        padding: 22px 18px;
    }

    .design .dsq__fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .design .dsq__options {
        grid-template-columns: minmax(0, 1fr);
    }

    .design .dsq__zip-row {
        flex-direction: column;
    }

    .design .dsq__zip-row .dsq__input {
        flex: none;
    }

    .design .dsq__zip-btn {
        width: 100%;
    }

    /* Phone / Email are short enough to stay side by side. */
    .design .dsq__options--inline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .design .dsq__tips {
        padding: 16px;
    }

    .design .dsq__files {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .design .dsq__nav .dsg-btn {
        flex: 1 1 0;
        padding-inline: 18px;
    }

    .design .dsq__sending {
        align-items: flex-start;
        padding: 14px;
    }

    .design .dsq__progress {
        gap: 12px;
    }

    .design .dsq__progress-label {
        letter-spacing: 1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .design .dsq__card {
        animation: none;
    }

    .design .dsq__progress-fill {
        transition: none;
    }

    /* Still shows activity, just slower. */
    .design .dsq__spinner {
        animation-duration: 2.4s;
    }
}

/* ---------------------- Questionnaire additions ----------------------
   Styles for: 3 preferred-contact choices (Phone Call / Text Message / Email),
   the "referred by someone" toggle + reveal, and the longer room list.
   Appended as overrides; nothing above was changed. */

/* Three contact choices on one row (was a fixed 2-up pair). */
.design .dsq__options--inline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

    .design .dsq__options--inline .dsq__opt {
        padding-inline: 14px;
    }

/* "Were you referred by someone?" toggle and its reveal. */
.design .dsq__field > .dsq__opt:not(.dsq__opt--radio) {
    margin-top: 2px;
}

.design .dsq__field > .dsq__opt + .dsq__reveal {
    margin-top: 12px;
    padding: 16px 18px 18px;
    background: #fff8f2;
    border: 1px solid var(--ashley-border);
    border-left: 3px solid var(--ashley-orange);
    border-radius: var(--radius);
    animation: dsq-reveal-in .2s ease both;
}

    .design .dsq__field > .dsq__opt + .dsq__reveal .dsq__input {
        background: #fff;
    }

@keyframes dsq-reveal-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Ten room choices: slightly tighter tiles so the grid stays even. */
.design .dsq__options--multi {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

/* Stack the three contact choices on small phones. */
@media (max-width: 560px) {
    .design .dsq__options--inline {
        grid-template-columns: minmax(0, 1fr);
    }

    .design .dsq__options--multi {
        grid-template-columns: minmax(0, 1fr);
    }

    .design .dsq__field > .dsq__opt + .dsq__reveal {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .design .dsq__field > .dsq__opt + .dsq__reveal {
        animation: none;
    }
}

/* ------------------- Questionnaire + mobile cleanup -------------------
   Layout polish for the longer "About you" step and the phone view of /design
   and /design/questionnaire. Appended as overrides; nothing above was changed,
   no class names were removed or renamed. */

/* ---- About you ---- */
.design .dsq__fields {
    gap: 18px 16px;
}

/* Email + phone share a row instead of each taking a full line. */
.design .dsq__fields .dsq__field.dsq__field--half {
    grid-column: auto;
}

/* A hairline sets off the "find your store" group and the referral toggle. */
.design .dsq__fields .dsq__field.dsq__field--section {
    margin-top: 6px;
    padding-top: 22px;
    border-top: 1px solid #ece5d8;
}

.design .dsq__q + .dsq__subhead {
    margin-top: 22px;
}

/* Long store names wrap instead of squeezing the distance. */
.design .dsq__loc-top {
    flex-wrap: wrap;
    gap: 2px 12px;
}

.design .dsq__opt-text {
    overflow-wrap: anywhere;
}

/* Keeps the distance clear of the dropdown chevron. */
.design .dsq__picker-btn {
    padding-right: 52px;
}

/* ---- Phones ---- */
@media (max-width: 560px) {
    .design .dsq {
        padding: 20px 14px 44px;
    }

    /* First / last name stay paired; everything else is full width. */
    .design .dsq__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

        .design .dsq__fields .dsq__field.dsq__field--half {
            grid-column: 1 / -1;
        }

        .design .dsq__fields .dsq__field.dsq__field--section {
            margin-top: 2px;
            padding-top: 18px;
        }

    .design .dsq__subhead {
        font-size: 16px;
        text-wrap: balance;
        margin-top: 26px;
    }

    .design .dsq__q + .dsq__subhead {
        margin-top: 18px;
    }

    .design .dsq__help {
        font-size: 14px;
        margin-bottom: 16px;
    }

    /* Room choices read better two across than as eleven tall rows. */
    .design .dsq__options--multi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 14px;
    }

        .design .dsq__options--multi .dsq__opt {
            padding: 11px 12px;
            gap: 9px;
            font-size: 14px;
        }

    .design .dsq__picker-list {
        max-height: 55vh;
    }

    .design .dsq__upload-drop {
        padding: 22px 16px;
    }

    .design .dsq__note {
        font-size: 13px;
        padding-inline: 6px;
    }

    /* ---- /design landing ---- */
    .design .dsg-container {
        padding-inline: 18px;
    }

    .design .dsg-hero__inner {
        padding-inline: 18px;
    }

    /* Near-portrait frame: the 4:3 crop was cutting people out of the photos. */
    .design .dsg-step__media img {
        aspect-ratio: 4 / 5;
    }

    .design .dsg-step__title {
        font-size: 16px;
    }
}
