/*
 * Healey Packaging – Multi-Step Quote Form CSS
 * File: assets/css/quote-form.css (child theme)
 *
 * Design tokens
 * ─────────────────────────────────────────────
 *  --hpq-brand    #003087   (Healey navy)
 *  --hpq-blue     #2187cc   (Healey blue)
 *  --hpq-accent   #1a56db   (active / CTA)
 *  --hpq-text     #111827
 *  --hpq-muted    #6b7280
 *  --hpq-border   #e5e7eb
 *  --hpq-bg       #f9fafb
 *  --hpq-radius   10px
 */

/* ═══════════════════════════════════════════════════════════════════════════
   TOKENS & RESET
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-wrap *, .hpq-modal * { box-sizing: border-box; }

:root {
    --hpq-brand:  #003087;
    --hpq-blue:   #2187cc;
    --hpq-accent: #1a56db;
    --hpq-text:   #111827;
    --hpq-muted:  #6b7280;
    --hpq-border: #e5e7eb;
    --hpq-bg:     #f9fafb;
    --hpq-radius: 10px;
    --hpq-shadow: 0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
    --hpq-shadow-md: 0 4px 16px rgba(0,0,0,.12);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM RESPONSE (success / error)
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-form-response {
    display: block;
    padding: 16px 20px;
    border-radius: var(--hpq-radius);
    font-size: .95rem;
    font-weight: 500;
    margin-bottom: 20px;
    animation: hpq-fadein .3s ease;
}
.hpq-form-response[hidden] { display: none !important; }
.hpq-form-response--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.hpq-form-response--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.hpq-form-response--notice  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ═══════════════════════════════════════════════════════════════════════════
   OUTER LAYOUT  (3-column: sidebar | form | summary)
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-wrap {
    display: grid;
    grid-template-columns: 220px 1fr 200px;
    gap: 24px;
    align-items: start;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--hpq-text);
    padding: 32px 0;
    max-width: 1100px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COSMETICS FORM LAYOUT OVERRIDE
   Cosmetics form has no sidebar / summary panel children.
   Override the 3-column general-form grid with a single centered column.
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-wrap--cosmetics {
    display: block;
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 0 40px;
}
/* Progress bar: full-width flex row */
.hpq-wrap--cosmetics .hpq-progress {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    overflow-x: auto;
    padding: 0 0 16px;
    gap: 0;
    scrollbar-width: none;
}
.hpq-wrap--cosmetics .hpq-progress::-webkit-scrollbar { display: none; }
/* Form card: full width */
.hpq-wrap--cosmetics .hpq-card {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEFT SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-sidebar {
    position: sticky;
    top: 80px;
}
.hpq-sidebar__heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hpq-brand);
    margin: 0 0 10px;
    line-height: 1.3;
}
.hpq-sidebar__desc {
    font-size: .875rem;
    color: var(--hpq-muted);
    margin: 0 0 16px;
    line-height: 1.55;
}
.hpq-sidebar__checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hpq-sidebar__checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    color: var(--hpq-text);
    margin-bottom: 8px;
}
.hpq-check-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--hpq-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hpq-check-icon::before {
    content: "";
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg) translate(-1px,-1px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM CARD
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-form-card {
    background: #fff;
    border: 1px solid var(--hpq-border);
    border-radius: 14px;
    box-shadow: var(--hpq-shadow-md);
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STEPPER NAV
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-stepper {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: var(--hpq-bg);
    border-bottom: 1px solid var(--hpq-border);
    overflow-x: auto;
    gap: 0;
    scrollbar-width: none;
}
.hpq-stepper::-webkit-scrollbar { display: none; }

.hpq-stepper__item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.hpq-stepper__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
}
.hpq-stepper__btn:focus-visible { outline: 2px solid var(--hpq-accent); outline-offset: 2px; }
.hpq-stepper__circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--hpq-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    color: var(--hpq-muted);
    background: #fff;
    flex-shrink: 0;
    transition: background .2s, border-color .2s, color .2s;
}
.hpq-stepper__label {
    font-size: .7rem;
    color: var(--hpq-muted);
    white-space: nowrap;
    transition: color .2s;
    display: none;
}
.hpq-stepper__line {
    width: 20px;
    height: 2px;
    background: var(--hpq-border);
    flex-shrink: 0;
    margin: 0 2px;
    transition: background .2s;
}

/* Active step */
.hpq-stepper__item.is-active .hpq-stepper__circle { background: var(--hpq-accent); border-color: var(--hpq-accent); color: #fff; }
.hpq-stepper__item.is-active .hpq-stepper__label  { color: var(--hpq-accent); font-weight: 600; }

/* Complete step */
.hpq-stepper__item.is-complete .hpq-stepper__circle { background: #ecfdf5; border-color: #34d399; color: #065f46; }
.hpq-stepper__item.is-complete + .hpq-stepper__line { background: #34d399; }

/* ═══════════════════════════════════════════════════════════════════════════
   STEP PANELS
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-form {
    padding: 24px;
    min-height: 360px;
}
.hpq-step { border: none; padding: 0; margin: 0; animation: hpq-fadein .25s ease; }
.hpq-step--hidden { display: none; }

@keyframes hpq-fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hpq-step__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hpq-brand);
    margin: 0 0 4px;
    display: block;
}
.hpq-step__desc {
    font-size: .875rem;
    color: var(--hpq-muted);
    margin: 0 0 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STEP 1 – STYLE GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.hpq-style-card {
    position: relative;
    border: 2px solid var(--hpq-border);
    border-radius: var(--hpq-radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
}
.hpq-style-card__radio { position: absolute; opacity: 0; pointer-events: none; }
.hpq-style-card.is-selected { border-color: var(--hpq-accent); box-shadow: 0 0 0 3px rgba(26,86,219,.15); }
.hpq-style-card:hover { border-color: var(--hpq-blue); }
.hpq-style-card__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.hpq-style-card__svg-wrap {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hpq-bg);
}
.hpq-box-svg { width: 60%; height: 60%; color: var(--hpq-blue); }
.hpq-style-card__name {
    padding: 8px;
    font-size: .75rem;
    font-weight: 600;
    text-align: center;
    color: var(--hpq-text);
    width: 100%;
}

/* Browse All Styles button */
.hpq-browse-all-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 2px dashed var(--hpq-border);
    border-radius: var(--hpq-radius);
    background: var(--hpq-bg);
    cursor: pointer;
    text-align: left;
    transition: border-color .2s, background .2s;
    color: var(--hpq-text);
}
.hpq-browse-all-btn:hover { border-color: var(--hpq-blue); background: #eff6ff; }
.hpq-browse-all-btn:focus-visible { outline: 2px solid var(--hpq-accent); outline-offset: 2px; }
.hpq-browse-all-btn__icon { flex-shrink: 0; color: var(--hpq-blue); }
.hpq-browse-all-btn__icon svg { width: 24px; height: 24px; display: block; }
.hpq-browse-all-btn__text { flex: 1; }
.hpq-browse-all-btn__text strong { display: block; font-size: .9rem; font-weight: 700; color: var(--hpq-accent); }
.hpq-browse-all-btn__text span   { display: block; font-size: .8rem; color: var(--hpq-muted); margin-top: 1px; }
.hpq-browse-all-btn__arrow { flex-shrink: 0; width: 18px; height: 18px; color: var(--hpq-muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   STEP 2 – DIMENSIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-dimensions-wrap { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.hpq-box-diagram svg { width: 160px; height: 160px; display: block; }
.hpq-dimensions-fields { display: flex; flex-direction: column; gap: 16px; }

.hpq-field { display: flex; flex-direction: column; gap: 6px; }
.hpq-field--full { grid-column: 1 / -1; }
.hpq-label { font-size: .875rem; font-weight: 600; color: var(--hpq-text); }
.hpq-required { color: #dc2626; margin-left: 2px; }

.hpq-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--hpq-border);
    border-radius: 8px;
    font-size: .9rem;
    color: var(--hpq-text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.hpq-input:focus { outline: none; border-color: var(--hpq-accent); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }

.hpq-input-unit-wrap { position: relative; display: flex; }
.hpq-input-unit-wrap .hpq-input { padding-right: 52px; }
.hpq-unit-badge {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 600;
    color: var(--hpq-muted);
    background: var(--hpq-bg);
    border-left: 1.5px solid var(--hpq-border);
    border-radius: 0 8px 8px 0;
    pointer-events: none;
}
.hpq-textarea { resize: vertical; min-height: 80px; }

/* Unit toggle */
.hpq-unit-toggle { display: flex; gap: 0; border: 1.5px solid var(--hpq-border); border-radius: 8px; overflow: hidden; width: fit-content; }
.hpq-unit-btn {
    padding: 8px 14px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--hpq-muted);
    background: #fff;
    border-right: 1px solid var(--hpq-border);
    transition: background .15s, color .15s;
    line-height: 1;
}
.hpq-unit-btn:last-child { border-right: none; }
.hpq-unit-radio { display: none; }
.hpq-unit-btn.is-active, .hpq-unit-btn:has(.hpq-unit-radio:checked) {
    background: var(--hpq-accent);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STEP 3, 4, 6 – OPTION LIST (radio rows)
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-option-list { display: flex; flex-direction: column; gap: 8px; }
.hpq-option-radio { display: none; }
.hpq-option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--hpq-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
}
.hpq-option-row:hover { border-color: var(--hpq-blue); background: #eff6ff; }
.hpq-option-row.is-selected { border-color: var(--hpq-accent); background: #eff6ff; }
.hpq-option-row__label { flex: 1; font-size: .9rem; font-weight: 500; }
.hpq-option-row__check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--hpq-border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: background .2s, border-color .2s;
}
.hpq-option-row.is-selected .hpq-option-row__check {
    background: var(--hpq-accent);
    border-color: var(--hpq-accent);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8l3 3 5-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Material swatches */
.hpq-swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,.08);
}
.hpq-swatch--sbs        { background: #ffffff; border-color: #d1d5db; }
.hpq-swatch--kraft      { background: #d4a76a; }
.hpq-swatch--corrugated { background: repeating-linear-gradient(90deg, #f5e6c8 0 4px, #e0c89a 4px 8px); }
.hpq-swatch--rigid      { background: linear-gradient(135deg, #1e293b 50%, #334155); }
.hpq-swatch--other      { background: #e5e7eb; }

/* Print icons */
.hpq-print-icon { font-size: 1.2rem; width: 28px; text-align: center; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   STEP 5 – FINISHES GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-finishes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.hpq-finish-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    border: 2px solid var(--hpq-border);
    border-radius: var(--hpq-radius);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
    text-align: center;
}
.hpq-finish-card:hover { border-color: var(--hpq-blue); }
.hpq-finish-card.is-selected { border-color: var(--hpq-accent); box-shadow: 0 0 0 3px rgba(26,86,219,.13); }
.hpq-finish-check { display: none; }
.hpq-finish-swatch {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,.08);
}
.hpq-finish-swatch--dark   { background: #1e293b; }
.hpq-finish-swatch--light  { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); }
.hpq-finish-swatch--gold   { background: linear-gradient(135deg, #f6d365 0%, #c19a3a 100%); }
.hpq-finish-swatch--silver { background: linear-gradient(135deg, #e8e8e8 0%, #adb5bd 100%); }
.hpq-finish-card__label { font-size: .78rem; font-weight: 600; color: var(--hpq-text); line-height: 1.3; }

/* ═══════════════════════════════════════════════════════════════════════════
   STEP 6 – CUSTOM QTY
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-custom-qty-field {
    padding: 12px 14px;
    background: var(--hpq-bg);
    border-radius: 8px;
    border: 1px solid var(--hpq-border);
    margin-top: 4px;
    animation: hpq-fadein .2s ease;
}
.hpq-custom-qty-field[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   STEP 7 – FILE UPLOAD
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-dropzone {
    border: 2px dashed var(--hpq-border);
    border-radius: var(--hpq-radius);
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--hpq-text);
}
.hpq-dropzone:hover, .hpq-dropzone.is-dragover { border-color: var(--hpq-blue); background: #eff6ff; }
.hpq-dropzone:focus-visible { outline: 2px solid var(--hpq-accent); outline-offset: 2px; }
.hpq-dropzone__icon svg { width: 48px; height: 48px; color: var(--hpq-blue); margin-bottom: 4px; }
.hpq-dropzone strong { font-size: .95rem; }
.hpq-dropzone span   { font-size: .875rem; color: var(--hpq-muted); }
.hpq-dropzone small  { font-size: .8rem; color: #9ca3af; }
.hpq-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

.hpq-upload-btns { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.hpq-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid var(--hpq-border);
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--hpq-text);
    cursor: pointer;
    background: #fff;
    transition: border-color .2s, background .2s;
    position: relative;
    overflow: hidden;
}
.hpq-upload-btn:hover { border-color: var(--hpq-blue); background: var(--hpq-bg); }
.hpq-upload-btn svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--hpq-blue); }
.hpq-upload-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.hpq-file-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hpq-file-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--hpq-bg);
    border-radius: 8px;
    border: 1px solid var(--hpq-border);
    font-size: .85rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STEP 8 – CONTACT FIELDS
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }

.hpq-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--hpq-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    letter-spacing: .01em;
}
.hpq-submit-btn:hover { background: #1447c0; }
.hpq-submit-btn:active { transform: scale(.98); }
.hpq-submit-btn:disabled { background: #93c5fd; cursor: not-allowed; }

.hpq-privacy-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 0;
    font-size: .78rem;
    color: var(--hpq-muted);
    justify-content: center;
}
.hpq-privacy-note svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   NAV BAR (Back / indicator / Next)
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--hpq-bg);
    border-top: 1px solid var(--hpq-border);
    margin: 0 -24px -24px;
}
.hpq-nav__back,
.hpq-nav__next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    border: 1.5px solid var(--hpq-border);
    background: #fff;
    color: var(--hpq-text);
}
.hpq-nav__back svg, .hpq-nav__next svg { width: 18px; height: 18px; }
.hpq-nav__back:hover { border-color: var(--hpq-muted); }
.hpq-nav__next { background: var(--hpq-accent); color: #fff; border-color: var(--hpq-accent); }
.hpq-nav__next:hover { background: #1447c0; }
.hpq-nav__indicator { font-size: .8rem; color: var(--hpq-muted); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════════════════
   RIGHT SUMMARY PANEL
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-summary {
    position: sticky;
    top: 80px;
    background: #fff;
    border: 1px solid var(--hpq-border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--hpq-shadow);
}
.hpq-summary__heading {
    font-size: .95rem;
    font-weight: 700;
    color: var(--hpq-brand);
    margin: 0 0 12px;
}
.hpq-summary__subheading {
    font-size: .8rem;
    font-weight: 600;
    color: var(--hpq-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 14px 0 8px;
}
.hpq-summary__preview {
    aspect-ratio: 1;
    background: var(--hpq-bg);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    border: 1px solid var(--hpq-border);
}
.hpq-summary__placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hpq-summary__placeholder span { font-size: .78rem; color: var(--hpq-muted); text-align: center; }
.hpq-summary__img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hpq-summary__style-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: 6px 8px;
    text-align: center;
}
.hpq-summary__style-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--hpq-blue);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.hpq-summary__list { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hpq-summary__row { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--hpq-border); }
.hpq-summary__row:last-child { border-bottom: none; padding-bottom: 0; }
.hpq-summary__row dt { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--hpq-muted); }
.hpq-summary__row dd { font-size: .82rem; font-weight: 600; color: var(--hpq-text); margin: 0; }
.hpq-summary__value--empty { color: var(--hpq-muted); font-weight: 400; }

.hpq-summary__secure {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 0;
    font-size: .72rem;
    color: var(--hpq-muted);
    justify-content: center;
}
.hpq-summary__secure svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   BROWSE ALL MODAL
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; justify-content: center; }
.hpq-modal[hidden] { display: none; }
.hpq-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.hpq-modal__panel {
    position: relative;
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 860px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -8px 40px rgba(0,0,0,.2);
    animation: hpq-slide-up .3s cubic-bezier(.4,0,.2,1);
}
@keyframes hpq-slide-up { from { transform: translateY(100%); } to { transform: none; } }

.hpq-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 14px;
    border-bottom: 1px solid var(--hpq-border);
}
.hpq-modal__header h2 { font-size: 1.1rem; font-weight: 700; color: var(--hpq-brand); margin: 0; }
.hpq-modal__close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--hpq-border);
    border-radius: 8px;
    background: none;
    cursor: pointer;
    color: var(--hpq-muted);
    transition: background .15s;
}
.hpq-modal__close:hover { background: var(--hpq-bg); }
.hpq-modal__close svg { width: 18px; height: 18px; }

.hpq-modal__search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--hpq-border);
}
.hpq-modal__search-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--hpq-muted); }
.hpq-modal__search {
    flex: 1;
    border: none;
    outline: none;
    font-size: .9rem;
    color: var(--hpq-text);
    background: none;
}

.hpq-modal__filters {
    display: flex;
    gap: 6px;
    padding: 12px 24px;
    overflow-x: auto;
    border-bottom: 1px solid var(--hpq-border);
    scrollbar-width: none;
}
.hpq-modal__filters::-webkit-scrollbar { display: none; }
.hpq-modal__filter-btn {
    padding: 6px 14px;
    border: 1.5px solid var(--hpq-border);
    border-radius: 20px;
    font-size: .83rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    background: #fff;
    color: var(--hpq-muted);
    transition: background .15s, color .15s, border-color .15s;
}
.hpq-modal__filter-btn:hover { border-color: var(--hpq-blue); color: var(--hpq-blue); }
.hpq-modal__filter-btn.is-active { background: var(--hpq-accent); border-color: var(--hpq-accent); color: #fff; }

.hpq-modal__grid {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    align-content: start;
}
.hpq-modal__loading, .hpq-modal__empty {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--hpq-muted);
    font-size: .9rem;
    padding: 40px;
}
.hpq-modal__item { display: flex; flex-direction: column; gap: 6px; }
.hpq-modal__item-thumb {
    aspect-ratio: 1;
    background: var(--hpq-bg);
    border-radius: var(--hpq-radius);
    overflow: hidden;
    border: 1.5px solid var(--hpq-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s;
}
.hpq-modal__item-thumb:hover { border-color: var(--hpq-blue); }
.hpq-modal__item-name { font-size: .8rem; font-weight: 600; color: var(--hpq-text); text-align: center; }
.hpq-modal__choose-btn {
    padding: 7px;
    border: 1.5px solid var(--hpq-accent);
    border-radius: 7px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--hpq-accent);
    background: #fff;
    cursor: pointer;
    width: 100%;
    transition: background .15s, color .15s;
}
.hpq-modal__choose-btn:hover { background: var(--hpq-accent); color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════
   SPINNER
   ═══════════════════════════════════════════════════════════════════════════ */
.hpq-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--hpq-border);
    border-top-color: var(--hpq-blue);
    border-radius: 50%;
    animation: hpq-spin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes hpq-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hpq-wrap { grid-template-columns: 1fr; }
    .hpq-sidebar, .hpq-summary { position: static; }
    .hpq-sidebar { display: none; }
    .hpq-summary { display: none; }
}
@media (max-width: 768px) {
    .hpq-style-grid     { grid-template-columns: repeat(2, 1fr); }
    .hpq-finishes-grid  { grid-template-columns: repeat(2, 1fr); }
    .hpq-contact-fields { grid-template-columns: 1fr; }
    .hpq-dimensions-wrap { grid-template-columns: 1fr; }
    .hpq-box-diagram { display: none; }
    .hpq-modal__grid  { grid-template-columns: repeat(2, 1fr); }
    .hpq-upload-btns  { flex-direction: column; }
    .hpq-stepper__label { display: none; }
}
@media (max-width: 480px) {
    .hpq-form { padding: 16px; }
    .hpq-nav  { padding: 12px 16px; }
    .hpq-style-grid { grid-template-columns: 1fr 1fr; }
    .hpq-finishes-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY – reduced motion
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .hpq-step, .hpq-modal__panel, .hpq-custom-qty-field { animation: none; }
}
.hpq-style-card__name {
  display: none;
}

.hpq-style-card__name {
  display: none;
}

.hpq-style-card__name {
  display: none;
}

.hpq-style-card__name {
  display: none;
}
.hpq-style-grid {
  grid-template-columns: repeat(4, 1fr);
  width: auto;
  max-width: 600px;
  gap: 8px;
}

.hpq-style-card.is-selected {
  width: 120px;
  height: 120px;
}

.hpq-style-card {
  width: 120px;
  height: 120px;
}

.hpq-style-card {
  width: 120px;
  height: 120px;
}
/* Field-mapping additions for premium 8-step quote form */
.hpq-subsection{margin-top:18px;padding-top:16px;border-top:1px solid rgba(90,159,224,.18)}
.hpq-subsection__title{margin:0 0 10px;font-size:13px;font-weight:800;color:#010302}
.hpq-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hpq-field--full{grid-column:1/-1}
.hpq-checkbox-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hpq-checkbox-pill{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid rgba(90,159,224,.22);border-radius:12px;background:#fff;font-size:13px;font-weight:600;color:#25364d;cursor:pointer}
.hpq-checkbox-pill input{accent-color:#5a9fe0}
.hpq-checkbox-pill:has(input:checked){border-color:#5a9fe0;background:#f0f7ff;color:#010302}
@media(max-width:640px){.hpq-mini-grid,.hpq-checkbox-grid{grid-template-columns:1fr}.hpq-subsection{margin-top:14px;padding-top:14px}}

/* ═══════════════════════════════════════════════════════════════════════════
   COSMETICS FORM ADDITIONS  (v2.2.0)
   New classes used by [cosmetics_quote_form] 8-step UI.
   All existing general-form styles above are preserved.
   ═══════════════════════════════════════════════════════════════════════════ */

/* -- Screen-reader only utility ------------------------------------------- */
.hpq-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* -- Top progress bar (replaces old .hpq-stepper for cosmetics form) ------- */
.hpq-progress {
    display: flex;
    align-items: center;
    padding: 18px 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
}
.hpq-progress::-webkit-scrollbar { display: none; }

.hpq-progress__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    gap: 4px;
}
.hpq-progress__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--hpq-border);
    background: #fff;
    cursor: pointer;
    font-size: .7rem;
    font-weight: 700;
    color: var(--hpq-muted);
    transition: background .2s, border-color .2s, color .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hpq-progress__dot:focus-visible { outline: 2px solid var(--hpq-accent); outline-offset: 2px; }
.hpq-progress__label {
    font-size: .62rem;
    font-weight: 600;
    color: var(--hpq-muted);
    white-space: nowrap;
    text-align: center;
    transition: color .2s;
}
.hpq-progress__line {
    height: 2px;
    flex: 1;
    min-width: 12px;
    background: var(--hpq-border);
    margin: 0;
    align-self: center;
    margin-bottom: 22px;
    transition: background .2s;
}

/* Active & complete states */
.hpq-progress__item.is-active .hpq-progress__dot   { background: var(--hpq-accent); border-color: var(--hpq-accent); color: #fff; box-shadow: 0 0 0 4px rgba(26,86,219,.12); }
.hpq-progress__item.is-active .hpq-progress__label { color: var(--hpq-accent); font-weight: 700; }
.hpq-progress__item.is-complete .hpq-progress__dot { background: #ecfdf5; border-color: #34d399; color: #065f46; }
.hpq-progress__item.is-complete + .hpq-progress__line { background: #34d399; }

/* -- .hpq-card (form card wrapper) ---------------------------------------- */
.hpq-card {
    background: #fff;
    border: 1px solid var(--hpq-border);
    border-radius: 14px;
    box-shadow: var(--hpq-shadow-md);
    overflow: hidden;
    padding: 28px;
}

/* -- Step legend & hint ---------------------------------------------------- */
.hpq-step__legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hpq-brand);
    margin: 0 0 6px;
    padding: 0;
    border: none;
    width: 100%;
}
.hpq-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--hpq-accent);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    flex-shrink: 0;
}
.hpq-step__hint {
    font-size: .875rem;
    color: var(--hpq-muted);
    margin: 0 0 20px;
    line-height: 1.55;
}

/* -- Section sub-labels (e.g. "Printing Method" / "Lamination") ------------ */
.hpq-section-label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--hpq-muted);
    margin: 0 0 8px;
}

/* -- Optional field label -------------------------------------------------- */
.hpq-label--optional {
    font-size: .78rem;
    font-weight: 400;
    color: var(--hpq-muted);
}

/* -- 2-column row layout --------------------------------------------------- */
.hpq-row { display: flex; flex-direction: column; gap: 14px; }
.hpq-row--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* -- Dimensions 3-column grid --------------------------------------------- */
.hpq-dims-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* -- Unit bar (mm / cm / in pill toggle) ----------------------------------- */
.hpq-unit-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}
.hpq-unit-bar__label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--hpq-muted);
    margin-right: 4px;
}
.hpq-unit-bar .hpq-unit-btn {
    padding: 6px 12px;
    border: 1.5px solid var(--hpq-border);
    border-radius: 20px;
    font-size: .83rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--hpq-muted);
    background: #fff;
    transition: background .15s, color .15s, border-color .15s;
    line-height: 1;
}
.hpq-unit-bar .hpq-unit-btn.is-active,
.hpq-unit-bar .hpq-unit-btn:has(.hpq-unit-radio:checked) {
    background: var(--hpq-accent);
    color: #fff;
    border-color: var(--hpq-accent);
}

/* -- Input with unit badge (L×W×H inputs) ---------------------------------- */
.hpq-input-with-unit {
    position: relative;
    display: flex;
}
.hpq-input-with-unit .hpq-input { padding-right: 46px; }
.hpq-input-with-unit .hpq-unit-badge {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 600;
    color: var(--hpq-muted);
    background: var(--hpq-bg);
    border-left: 1.5px solid var(--hpq-border);
    border-radius: 0 8px 8px 0;
    pointer-events: none;
}

/* -- Select input ---------------------------------------------------------- */
.hpq-select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--hpq-border);
    border-radius: 8px;
    font-size: .9rem;
    color: var(--hpq-text);
    background: #fff;
    appearance: auto;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.hpq-select:focus { outline: none; border-color: var(--hpq-accent); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }

/* -- Textarea -------------------------------------------------------------- */
.hpq-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--hpq-border);
    border-radius: 8px;
    font-size: .9rem;
    color: var(--hpq-text);
    background: #fff;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.hpq-textarea:focus { outline: none; border-color: var(--hpq-accent); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }

/* -- Options list (alias for .hpq-option-list) ----------------------------- */
.hpq-options-list { display: flex; flex-direction: column; gap: 8px; }

/* Extra parts of .hpq-option-row used in cosmetics form */
.hpq-option-row__indicator {
    width: 20px;
    height: 20px;
    border: 2px solid var(--hpq-border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: background .2s, border-color .2s;
}
.hpq-option-row.is-selected .hpq-option-row__indicator {
    background: var(--hpq-accent);
    border-color: var(--hpq-accent);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8l3 3 5-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.hpq-option-row__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hpq-option-row__desc { font-size: .8rem; color: var(--hpq-muted); line-height: 1.4; }

/* -- Style card thumb (image wrapper) ------------------------------------- */
.hpq-style-card__thumb {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hpq-style-card__thumb--icon {
    background: var(--hpq-bg);
}
.hpq-style-card__thumb .hpq-style-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Override the previous display:none for card names in cosmetics form */
.hpq-style-card .hpq-style-card__name {
    display: block;
    padding: 6px 8px;
    font-size: .72rem;
    font-weight: 600;
    text-align: center;
    color: var(--hpq-text);
    width: 100%;
    line-height: 1.3;
}

/* -- Browse button (simpler variant used in cosmetics form) ---------------- */
.hpq-browse-row { margin-top: 12px; }
.hpq-browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid var(--hpq-border);
    border-radius: 8px;
    background: var(--hpq-bg);
    font-size: .875rem;
    font-weight: 600;
    color: var(--hpq-text);
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.hpq-browse-btn:hover { border-color: var(--hpq-blue); background: #eff6ff; color: var(--hpq-blue); }
.hpq-browse-btn:focus-visible { outline: 2px solid var(--hpq-accent); outline-offset: 2px; }
.hpq-browse-btn svg { flex-shrink: 0; color: currentColor; }

/* -- Finish grid (cosmetics extras grid) ----------------------------------- */
.hpq-finish-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
/* Cosmetics finish card sub-elements */
.hpq-finish-card__check { display: none; }
.hpq-finish-card__icon  { font-size: 1.5rem; line-height: 1; }
.hpq-finish-card__name  { font-size: .8rem; font-weight: 700; color: var(--hpq-text); text-align: center; line-height: 1.3; }
.hpq-finish-card__desc  { font-size: .72rem; color: var(--hpq-muted); text-align: center; line-height: 1.35; }
.hpq-finish-card:has(.hpq-finish-card__check:checked) { border-color: var(--hpq-accent); box-shadow: 0 0 0 3px rgba(26,86,219,.13); background: #eff6ff; }

/* -- Summary card in Step 8 ------------------------------------------------ */
.hpq-summary-card {
    background: var(--hpq-bg);
    border: 1px solid var(--hpq-border);
    border-radius: var(--hpq-radius);
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.hpq-summary-card__preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    width: 90px;
}
.hpq-summary-card__img-wrap {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--hpq-border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hpq-summary-card__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.hpq-summary-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hpq-summary-card__meta { text-align: center; }
.hpq-summary-card__name { font-size: .75rem; font-weight: 600; color: var(--hpq-text); margin: 0; }
.hpq-summary-card__badge {
    display: inline-block;
    background: var(--hpq-blue);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}
.hpq-summary-card__rows { flex: 1; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hpq-summary-card__row { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--hpq-border); }
.hpq-summary-card__row:last-child { border-bottom: none; padding-bottom: 0; }
.hpq-summary-card__row dt { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--hpq-muted); }
.hpq-summary-card__row dd { font-size: .82rem; font-weight: 600; color: var(--hpq-text); margin: 0; }

/* -- Dropzone sub-elements ------------------------------------------------- */
.hpq-dropzone__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.hpq-dropzone__icon svg { width: 48px; height: 48px; color: var(--hpq-blue); }
.hpq-dropzone__text { margin: 0; font-size: .9rem; color: var(--hpq-text); text-align: center; line-height: 1.5; }
.hpq-dropzone__link { color: var(--hpq-accent); cursor: pointer; text-decoration: underline; }
.hpq-dropzone__formats { font-size: .78rem; color: #9ca3af; margin: 0; text-align: center; }

/* -- Modal search row (alias) ---------------------------------------------- */
.hpq-modal__search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--hpq-border);
}
.hpq-modal__search {
    flex: 1;
    border: 1.5px solid var(--hpq-border);
    border-radius: 8px;
    padding: 8px 12px;
    outline: none;
    font-size: .9rem;
    color: var(--hpq-text);
    background: var(--hpq-bg);
    width: 100%;
}
.hpq-modal__search:focus { border-color: var(--hpq-accent); }
.hpq-modal__title { font-size: 1.1rem; font-weight: 700; color: var(--hpq-brand); margin: 0; }

/* -- Submit button flex layout (icon + text) -------------------------------- */
.hpq-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.hpq-submit-btn svg { flex-shrink: 0; }

/* -- Nav bar overrides for .hpq-card padding  ------------------------------ */
.hpq-card .hpq-nav {
    margin: 0 -28px -28px;
    padding: 14px 28px;
}

/* -- Responsive additions -------------------------------------------------- */
@media (max-width: 768px) {
    .hpq-row--2col   { grid-template-columns: 1fr; }
    .hpq-dims-grid   { grid-template-columns: 1fr 1fr 1fr; }
    .hpq-finish-grid { grid-template-columns: repeat(2, 1fr); }
    .hpq-summary-card { flex-direction: column; }
    .hpq-summary-card__preview { width: 100%; flex-direction: row; justify-content: flex-start; align-items: center; }
    .hpq-summary-card__img-wrap { width: 60px; height: 60px; }
}
@media (max-width: 480px) {
    .hpq-dims-grid   { grid-template-columns: 1fr; }
    .hpq-finish-grid { grid-template-columns: repeat(2, 1fr); }
    .hpq-card { padding: 16px; }
    .hpq-card .hpq-nav { margin: 0 -16px -16px; padding: 12px 16px; }
    .hpq-progress { padding: 12px 0 8px; }
    .hpq-progress__label { display: none; }
}

/* ==========================================================================
   COSMETICS QUOTE FORM ONLY — approved 3-column layout fix
   Keeps other quote forms/product layout untouched.
   ========================================================================== */
.hpq-wrap.hpq-wrap--cosmetics {
    display: block !important;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 18px 44px;
    overflow-x: hidden;
}

.hpq-wrap--cosmetics .hpq-progress {
    width: 100%;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 0 0 14px;
    overflow-x: auto;
}

.hpq-cosmetics-layout {
    display: grid;
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr) minmax(220px, 270px);
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

.hpq-cosmetics-main {
    min-width: 0;
    width: 100%;
}

.hpq-wrap--cosmetics .hpq-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 28px;
}

.hpq-wrap--cosmetics .hpq-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
}

.hpq-cosmetics-panel {
    position: sticky;
    top: 90px;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--hpq-border);
    border-radius: 14px;
    box-shadow: var(--hpq-shadow);
    padding: 18px;
}

.hpq-cosmetics-panel__title {
    margin: 0 0 10px;
    color: var(--hpq-brand);
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 800;
}

.hpq-cosmetics-panel__text {
    margin: 0 0 14px;
    color: var(--hpq-muted);
    font-size: .88rem;
    line-height: 1.55;
}

.hpq-cosmetics-panel__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.hpq-cosmetics-panel__list li {
    position: relative;
    padding-left: 22px;
    font-size: .86rem;
    line-height: 1.4;
    color: var(--hpq-text);
}

.hpq-cosmetics-panel__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35em;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--hpq-blue);
}

.hpq-cosmetics-panel--right .hpq-summary-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
}

.hpq-cosmetics-panel--right .hpq-summary-card__preview {
    width: 100%;
    flex-direction: column;
}

.hpq-cosmetics-panel--right .hpq-summary-card__img-wrap {
    width: 100%;
    height: 150px;
}

.hpq-cosmetics-panel--right .hpq-summary-card__rows {
    width: 100%;
}

.hpq-wrap--cosmetics .hpq-row--2col,
.hpq-wrap--cosmetics .hpq-style-grid,
.hpq-wrap--cosmetics .hpq-finishes-grid,
.hpq-wrap--cosmetics .hpq-dimensions-wrap {
    min-width: 0;
}

@media (max-width: 1180px) {
    .hpq-cosmetics-layout {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    }
    .hpq-cosmetics-panel--left { display: none; }
}

@media (max-width: 900px) {
    .hpq-wrap.hpq-wrap--cosmetics {
        padding: 20px 14px 34px;
    }
    .hpq-cosmetics-layout {
        grid-template-columns: 1fr;
    }
    .hpq-cosmetics-panel {
        position: static;
    }
    .hpq-cosmetics-panel--right {
        order: -1;
    }
    .hpq-cosmetics-panel--right .hpq-summary-card__img-wrap {
        height: 110px;
    }
}

@media (max-width: 600px) {
    .hpq-wrap--cosmetics .hpq-card {
        padding: 18px;
    }
    .hpq-cosmetics-panel--right {
        display: none;
    }
}

/* Cosmetics quote form premium UI - scoped */
.hpq-cosmetics-wrap{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr) minmax(220px,280px);gap:24px;align-items:start}.hpq-cosmetics-sidebar,.hpq-cosmetics-main,.hpq-cosmetics-summary{background:#fff;border:1px solid #e5edf7;border-radius:18px;box-shadow:0 14px 40px rgba(1,3,2,.06);padding:24px}.hpq-cosmetics-sidebar h2{font-size:30px;line-height:1.05;margin:0 0 16px;color:#010302}.hpq-cosmetics-sidebar ul{list-style:none;margin:18px 0 0;padding:0}.hpq-cosmetics-sidebar li{margin:10px 0}.hpq-cosmetics-sidebar li:before{content:'✓';display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#5A9FE0;color:#fff;margin-right:8px}.hp-cos-style-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hp-cos-style-card.is-selected{outline:3px solid #5A9FE0;box-shadow:0 0 0 5px rgba(90,159,224,.18)}.hp-cos-style-placeholder{display:grid;place-items:center;height:95px;background:#edf5ff;border-radius:10px;color:#5A9FE0;font-weight:700}.hpq-field-grid{display:grid;gap:16px;margin-bottom:16px}.hpq-field-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}.hpq-field-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}.hpq-field label{display:block;font-weight:700;margin-bottom:7px;color:#010302}.hpq-field input,.hpq-field select,.hpq-field textarea{width:100%;border:1px solid #d8e1ec;border-radius:10px;padding:12px 13px;background:#fff}.hpq-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hpq-submit-btn{background:#5A9FE0;color:#fff;border:0;border-radius:12px;padding:14px 20px;font-weight:800;cursor:pointer}.hp-inline-error,.hp-field-error{color:#b42318;font-size:13px;margin-top:6px}.hp-field-invalid{border-color:#b42318!important;box-shadow:0 0 0 3px rgba(180,35,24,.10)!important}.hpq-form-response--error{background:#fff1f0;border:1px solid #ffccc7;color:#a8071a}.hp-cos-template-item{background:#fff;border:1px solid #e5edf7;border-radius:14px;padding:12px;text-align:left;cursor:pointer}.hp-cos-template-item img{width:100%;height:110px;object-fit:cover;border-radius:10px;margin-bottom:8px}@media(max-width:900px){.hpq-cosmetics-wrap{grid-template-columns:1fr}.hp-cos-style-grid,.hpq-field-grid--2,.hpq-field-grid--3,.hpq-check-grid{grid-template-columns:1fr}.hpq-cosmetics-summary{order:3}}

/* URGENT cosmetics form fixes: centre shortcode only, no duplicate side panels */
.hpq-wrap.hpq-wrap--cosmetics.hpq-cosmetics-wrap {
    display: block !important;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
}
.hpq-wrap--cosmetics .hpq-cosmetics-main {
    width: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(90,159,224,.28);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(1,3,2,.08);
    overflow: hidden;
}
.hpq-wrap--cosmetics .hpq-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #edf2f7;
    background: #fbfdff;
    overflow-x: auto;
}
.hpq-wrap--cosmetics .hpq-progress__step {
    appearance: none;
    border: 2px solid #e4ebf5;
    background: #fff;
    color: #64748b;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}
.hpq-wrap--cosmetics .hpq-progress__step.is-active {
    background: #5A9FE0;
    border-color: #5A9FE0;
    color: #fff;
}
.hpq-wrap--cosmetics .hpq-form {
    padding: 26px 28px 22px;
    min-height: 360px;
}
.hpq-wrap--cosmetics .hpq-step__title {
    font-size: 26px;
    line-height: 1.12;
    font-weight: 800;
    color: #010302;
    margin: 0 0 8px;
}
.hpq-wrap--cosmetics .hpq-step__desc {
    color: #475569;
    margin: 0 0 18px;
}
.hpq-wrap--cosmetics .hpq-style-grid,
.hpq-wrap--cosmetics .hpq-modal__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.hpq-wrap--cosmetics .hpq-style-card,
.hpq-wrap--cosmetics .hpq-modal__item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    border: 2px solid #d9e8f8;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    min-height: 118px;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
}
.hpq-wrap--cosmetics .hpq-style-card.is-selected {
    border-color: #5A9FE0;
    box-shadow: 0 0 0 3px rgba(90,159,224,.16);
}
.hpq-wrap--cosmetics .hpq-style-card__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.hpq-wrap--cosmetics .hpq-style-card__img,
.hpq-wrap--cosmetics .hpq-modal__item img {
    width: 100%;
    height: 76px;
    object-fit: contain;
    display: block;
}
.hpq-wrap--cosmetics .hpq-style-card__name,
.hpq-wrap--cosmetics .hpq-modal__item span {
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    color: #0f172a;
}
.hpq-wrap--cosmetics .hp-cos-style-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    border-radius: 8px;
    background: #f1f7fd;
    color: #5A9FE0;
    font-weight: 800;
}
.hpq-wrap--cosmetics .hpq-browse-all-btn {
    width: 100%;
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px dashed #b8d3ef;
    border-radius: 12px;
    background: #f8fbff;
    color: #145ea8;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}
.hpq-wrap--cosmetics .hpq-browse-all-btn span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    font-weight: 700;
    text-transform: uppercase;
}
.hpq-wrap--cosmetics .hpq-field-grid {
    display: grid;
    gap: 16px;
}
.hpq-wrap--cosmetics .hpq-field-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hpq-wrap--cosmetics .hpq-field-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hpq-wrap--cosmetics .hpq-field { margin-bottom: 16px; }
.hpq-wrap--cosmetics .hpq-field label {
    display: block;
    font-weight: 800;
    color: #010302;
    margin-bottom: 7px;
}
.hpq-wrap--cosmetics input[type="text"],
.hpq-wrap--cosmetics input[type="email"],
.hpq-wrap--cosmetics input[type="date"],
.hpq-wrap--cosmetics input[type="file"],
.hpq-wrap--cosmetics select,
.hpq-wrap--cosmetics textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d6deea;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    color: #010302;
}
.hpq-wrap--cosmetics textarea { min-height: 105px; resize: vertical; }
.hpq-wrap--cosmetics .hpq-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.hpq-wrap--cosmetics .hpq-check-grid label {
    border: 1px solid #e5edf7;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fbfdff;
}
.hpq-wrap--cosmetics .hpq-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #edf2f7;
}
.hpq-wrap--cosmetics .hpq-nav__back,
.hpq-wrap--cosmetics .hpq-nav__next {
    border: 0;
    border-radius: 10px;
    min-height: 44px;
    padding: 0 22px;
    font-weight: 800;
    cursor: pointer;
}
.hpq-wrap--cosmetics .hpq-nav__back { background: #eef5fc; color: #145ea8; }
.hpq-wrap--cosmetics .hpq-nav__next { background: #5A9FE0; color: #fff; }
.hpq-wrap--cosmetics .hpq-nav__next:disabled { opacity: .65; cursor: not-allowed; }
.hpq-wrap--cosmetics .hpq-nav__indicator { color: #64748b; font-weight: 700; }
.hpq-wrap--cosmetics .hp-inline-error { color: #b91c1c; font-size: 12px; font-weight: 700; margin-top: 6px; }
.hpq-wrap--cosmetics .hp-field-invalid,
.hpq-wrap--cosmetics .hp-field-invalid input,
.hpq-wrap--cosmetics .hp-field-invalid select,
.hpq-wrap--cosmetics .hp-field-invalid textarea {
    border-color: #ef4444 !important;
}
.hpq-wrap--cosmetics .hpq-file-name {
    display: block;
    margin-top: 7px;
    color: #475569;
    font-weight: 700;
    word-break: break-word;
}
.hpq-modal[hidden] { display: none !important; }
.hpq-wrap--cosmetics .hpq-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}
.hpq-wrap--cosmetics .hpq-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(1,3,2,.55);
}
.hpq-wrap--cosmetics .hpq-modal__panel {
    position: relative;
    max-width: 920px;
    max-height: 84vh;
    overflow: auto;
    margin: 6vh auto;
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 24px 80px rgba(1,3,2,.25);
}
.hpq-wrap--cosmetics .hpq-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.hpq-wrap--cosmetics .hpq-modal__header h2 { margin: 0; color: #010302; }
.hpq-wrap--cosmetics .hpq-modal__close {
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #eef5fc;
    font-size: 24px;
    cursor: pointer;
}
.hpq-wrap--cosmetics .hpq-form-response { margin: 16px 28px 24px; }
@media (max-width: 767px) {
    .hpq-wrap.hpq-wrap--cosmetics.hpq-cosmetics-wrap { max-width: 100%; }
    .hpq-wrap--cosmetics .hpq-cosmetics-main { border-radius: 14px; }
    .hpq-wrap--cosmetics .hpq-form { padding: 20px 16px; }
    .hpq-wrap--cosmetics .hpq-style-grid,
    .hpq-wrap--cosmetics .hpq-modal__grid,
    .hpq-wrap--cosmetics .hpq-field-grid--2,
    .hpq-wrap--cosmetics .hpq-field-grid--3,
    .hpq-wrap--cosmetics .hpq-check-grid { grid-template-columns: 1fr; }
    .hpq-wrap--cosmetics .hpq-nav { flex-wrap: wrap; }
    .hpq-wrap--cosmetics .hpq-nav__back,
    .hpq-wrap--cosmetics .hpq-nav__next { flex: 1 1 140px; }
    .hpq-wrap--cosmetics .hpq-nav__indicator { order: -1; width: 100%; text-align: center; }
    .hpq-wrap--cosmetics .hpq-modal__panel { margin: 3vh 12px; max-height: 90vh; }
}

/* Cosmetics quote form premium layout v2.4 - scoped only to [cosmetics_quote_form] */
.hp-cos-premium-shell.hpq-wrap--cosmetics {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 250px;
    gap: 18px;
    align-items: stretch;
}
.hp-cos-premium-shell .hp-cos-intro-card,
.hp-cos-premium-shell .hp-cos-summary-card,
.hp-cos-premium-shell .hpq-cosmetics-main {
    background: #fff;
    border: 1px solid #d8e9fb;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(1, 3, 2, .06);
}
.hp-cos-premium-shell .hp-cos-intro-card,
.hp-cos-premium-shell .hp-cos-summary-card { padding: 24px 22px; }
.hp-cos-premium-shell .hp-cos-eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .08em;
    color: #4d6c91;
    text-transform: uppercase;
}
.hp-cos-premium-shell .hp-cos-intro-card h2 {
    margin: 0 0 14px;
    font-size: 27px;
    line-height: 1.05;
    color: #010302;
    font-weight: 900;
}
.hp-cos-premium-shell .hp-cos-intro-card p { color: #4b5f77; line-height: 1.55; margin: 0 0 18px; }
.hp-cos-premium-shell .hp-cos-intro-card ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.hp-cos-premium-shell .hp-cos-intro-card li { position: relative; padding-left: 28px; font-weight: 800; color: #16324f; }
.hp-cos-premium-shell .hp-cos-intro-card li:before {
    content: '✓'; position: absolute; left: 0; top: -1px; width: 18px; height: 18px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; background: #5A9FE0; font-size: 12px;
}
.hp-cos-premium-shell .hpq-cosmetics-main { overflow: hidden; min-width: 0; }
.hp-cos-premium-shell .hp-cos-progress {
    padding: 20px 24px;
    border-bottom: 1px solid #edf4fb;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}
.hp-cos-premium-shell .hpq-progress__step {
    border: 0;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #8090a3;
    font-weight: 800;
}
.hp-cos-premium-shell .hp-cos-step-icon {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: #fff; border: 2px solid #dbe6f2;
    box-shadow: 0 4px 12px rgba(1,3,2,.04);
}
.hp-cos-premium-shell .hp-cos-step-icon svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.hp-cos-premium-shell .hpq-progress__step.is-active { color: #1b7fd0; }
.hp-cos-premium-shell .hpq-progress__step.is-active .hp-cos-step-icon { background: #1f8edb; color: #fff; border-color: #1f8edb; box-shadow: 0 8px 18px rgba(31,142,219,.28); }
.hp-cos-premium-shell .hpq-progress__step small { font-size: 11px; white-space: nowrap; }
.hp-cos-premium-shell .hpq-form { padding: 26px 28px 22px; }
.hp-cos-premium-shell .hpq-style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-cos-premium-shell .hpq-style-card { min-height: 150px; padding: 10px; border-radius: 14px; }
.hp-cos-premium-shell .hpq-style-card__img { height: 100px; object-fit: contain; }
.hp-cos-premium-shell .hpq-style-card__name { min-height: 32px; display: flex; align-items: center; justify-content: center; }
.hp-cos-premium-shell .hpq-style-card.is-selected { border-color: #1f8edb; box-shadow: 0 0 0 4px rgba(90,159,224,.18), 0 12px 26px rgba(1,3,2,.08); }
.hp-cos-premium-shell .hpq-field input,
.hp-cos-premium-shell .hpq-field select,
.hp-cos-premium-shell .hpq-field textarea { border-radius: 12px; min-height: 48px; }
.hp-cos-premium-shell .hpq-check-grid label { transition: .18s ease; }
.hp-cos-premium-shell .hpq-check-grid label:has(input:checked) { border-color: #5A9FE0; background: #f3f9ff; box-shadow: inset 0 0 0 1px rgba(90,159,224,.22); }
.hp-cos-premium-shell .hpq-nav__next { background: #1f8edb; border-radius: 12px; min-width: 172px; }
.hp-cos-premium-shell .hpq-nav__next.is-sending:before {
    content: ''; width: 14px; height: 14px; display: inline-block; margin-right: 8px; vertical-align: -2px;
    border: 2px solid rgba(255,255,255,.55); border-top-color: #fff; border-radius: 50%; animation: hpCosSpin .8s linear infinite;
}
@keyframes hpCosSpin { to { transform: rotate(360deg); } }
.hp-cos-premium-shell .hp-cos-summary-card h3 { margin: 0 0 14px; font-size: 20px; line-height: 1.15; color: #010302; font-weight: 900; }
.hp-cos-premium-shell .hp-cos-summary-preview {
    display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 12px; align-items: center;
    padding: 10px; border: 1px solid #d8e9fb; border-radius: 14px; background: #f8fbff; margin-bottom: 14px;
}
.hp-cos-premium-shell .hp-cos-summary-preview img { width: 78px; height: 64px; object-fit: contain; background: #fff; border-radius: 10px; }
.hp-cos-premium-shell .hp-cos-summary-preview strong { display: block; color: #010302; font-size: 13px; line-height: 1.3; word-break: break-word; }
.hp-cos-premium-shell .hp-cos-summary-preview small { display: block; color: #5A9FE0; font-weight: 800; margin-top: 4px; }
.hp-cos-premium-shell .hp-cos-summary-row { border-top: 1px solid #e5edf7; padding: 12px 0; }
.hp-cos-premium-shell .hp-cos-summary-row span { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #64748b; font-weight: 900; margin-bottom: 4px; }
.hp-cos-premium-shell .hp-cos-summary-row strong { display: block; color: #010302; font-size: 13px; line-height: 1.35; word-break: break-word; }
.hp-cos-premium-shell #hp-cos-summary-url { font-size: 11px; color: #35526f; max-height: 48px; overflow: hidden; }
.hp-cos-premium-shell .hp-cos-secure { margin-top: 14px; padding: 13px; border-radius: 12px; background: #f7fbff; border: 1px solid #d8e9fb; text-align: center; font-weight: 900; color: #35526f; }
.hp-cos-premium-shell .hpq-form-response--notice { background: #eef7ff; border: 1px solid #bfdefa; color: #145ea8; }
@media (max-width: 1024px) {
    .hp-cos-premium-shell.hpq-wrap--cosmetics { grid-template-columns: 1fr; }
    .hp-cos-premium-shell .hp-cos-intro-card { display: none; }
    .hp-cos-premium-shell .hp-cos-summary-card { order: 3; }
}
@media (max-width: 767px) {
    .hp-cos-premium-shell.hpq-wrap--cosmetics { gap: 14px; padding: 0; }
    .hp-cos-premium-shell .hp-cos-progress { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 16px; }
    .hp-cos-premium-shell .hpq-progress__step small { display: none; }
    .hp-cos-premium-shell .hpq-form { padding: 18px 14px; }
    .hp-cos-premium-shell .hpq-style-grid { grid-template-columns: 1fr; }
    .hp-cos-premium-shell .hpq-nav__back,
    .hp-cos-premium-shell .hpq-nav__next { width: 100%; flex: 1 1 100%; }
    .hp-cos-premium-shell .hp-cos-summary-card { padding: 18px 16px; }
}

/* Product quote wrapper fix: cosmetics form owns its full three-column layout. */
.hp-form-shortcode-only-wrap.hp-form-shortcode-only-wrap--cosmetics {
    width: min(100% - 32px, 1240px);
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}
.hp-form-shortcode-only-wrap--cosmetics > .hpq-wrap--cosmetics,
.hp-form-shortcode-only-wrap--cosmetics > .hp-cos-premium-shell {
    width: 100%;
    max-width: 100%;
}
.hp-form-shortcode-only-wrap--cosmetics .hp-cos-premium-shell.hpq-wrap--cosmetics {
    max-width: 100%;
}
@media (max-width: 767px) {
    .hp-form-shortcode-only-wrap.hp-form-shortcode-only-wrap--cosmetics {
        width: min(100% - 24px, 520px);
    }
}
.hp-rev-form-wrap {
  display: block;
  width: 100%;
  max-width: 1260px;
  margin: 0px auto;
}

.hpq-wrap {
  width: 100%;
  max-width: 1252px;
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: 20px;
}

.hpq-form-card {
  width: 100%;
  min-width: 500px;
}
/* --- SIRF YE CODE PASTE KAREIN (Mobile ke liye) --- */
@media screen and (max-width: 768px) {
    
    /* Container fix */
    div#hpq-quote-form-wrap {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        grid-template-columns: none !important;
        padding: 10px !important;
    }

    /* Sidebar top par lane ke liye */
    aside.hpq-sidebar {
        order: -1 !important;
        display: block !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    /* Main form card responsive */
    main.hpq-form-card {
        order: 1 !important;
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
    }

    /* Summary end par */
    aside.hpq-summary {
        order: 2 !important;
        display: block !important;
        width: 100% !important;
    }

    /* Steps wrap fix */
    .hpq-stepper {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    
    .hpq-stepper .hpq-step-line {
        display: none !important;
    }

    /* Image grid (2 columns) */
    .hpq-style-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .hpq-style-grid img {
        width: 100% !important;
        height: auto !important;
    }
}
/* ========================================================================== 
   Mobile responsive fix v3 — scoped to the actual main quote form wrapper only
   Actual structure inspected: #hpq-quote-form-wrap[data-hpq] > aside.hpq-sidebar + main.hpq-form-card + aside.hpq-summary
   ========================================================================== */
#hpq-quote-form-wrap[data-hpq],
#hpq-quote-form-wrap[data-hpq] * { box-sizing: border-box; }

#hpq-quote-form-wrap[data-hpq] {
    width: 100%;
    max-width: 1252px;
    grid-template-columns: minmax(190px,250px) minmax(0,1fr) minmax(190px,250px);
    overflow: visible;
}
#hpq-quote-form-wrap[data-hpq] .hpq-form-card { min-width: 0; }
#hpq-quote-form-wrap[data-hpq] #hpq-form { min-width: 0; }
#hpq-quote-form-wrap[data-hpq] .hpq-input,
#hpq-quote-form-wrap[data-hpq] select,
#hpq-quote-form-wrap[data-hpq] textarea { max-width: 100%; }

/* Compact cards and exact step grids */
#hpq-quote-form-wrap[data-hpq] fieldset[data-step="1"] .hpq-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    gap: 10px;
}
#hpq-quote-form-wrap[data-hpq] fieldset[data-step="1"] .hpq-style-card {
    width: auto;
    height: auto;
    min-height: 118px;
}
#hpq-quote-form-wrap[data-hpq] fieldset[data-step="1"] .hpq-style-card__img,
#hpq-quote-form-wrap[data-hpq] fieldset[data-step="1"] .hpq-style-card__svg-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / .78;
    object-fit: contain;
    background: #f8fbff;
}
#hpq-quote-form-wrap[data-hpq] fieldset[data-step="1"] .hpq-style-card__name {
    display: block;
    font-size: 12px;
    line-height: 1.25;
    padding: 7px 6px;
    overflow-wrap: anywhere;
}

#hpq-quote-form-wrap[data-hpq] fieldset[data-step="3"] > .hpq-option-list,
#hpq-quote-form-wrap[data-hpq] fieldset[data-step="4"] > .hpq-option-list,
#hpq-quote-form-wrap[data-hpq] fieldset[data-step="6"] > .hpq-option-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
#hpq-quote-form-wrap[data-hpq] fieldset[data-step="4"] .hpq-checkbox-grid,
#hpq-quote-form-wrap[data-hpq] fieldset[data-step="5"] .hpq-finishes-grid,
#hpq-quote-form-wrap[data-hpq] fieldset[data-step="7"] .hpq-checkbox-grid--radio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
#hpq-quote-form-wrap[data-hpq] fieldset[data-step="3"] .hpq-checkbox-grid,
#hpq-quote-form-wrap[data-hpq] fieldset[data-step="6"] .hpq-checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
#hpq-quote-form-wrap[data-hpq] .hpq-option-row,
#hpq-quote-form-wrap[data-hpq] .hpq-checkbox-pill,
#hpq-quote-form-wrap[data-hpq] .hpq-finish-card {
    min-width: 0;
    min-height: 46px;
    padding: 10px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
#hpq-quote-form-wrap[data-hpq] .hpq-option-row__label,
#hpq-quote-form-wrap[data-hpq] .hpq-checkbox-pill span,
#hpq-quote-form-wrap[data-hpq] .hpq-finish-card__label { font-size: 12px; }
#hpq-quote-form-wrap[data-hpq] input[type="radio"],
#hpq-quote-form-wrap[data-hpq] input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    margin: 0;
    accent-color: #5a9fe0;
}
#hpq-quote-form-wrap[data-hpq] .hpq-style-card__radio { width: 1px; height: 1px; }

/* Submit state */
#hpq-quote-form-wrap[data-hpq] #hpq-submit-btn { min-height: 50px; }
#hpq-quote-form-wrap[data-hpq] #hpq-submit-btn.is-sending::after {
    content: "";
    width: 15px;
    height: 15px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,.55);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    vertical-align: -2px;
    animation: hpq-spin .8s linear infinite;
}
@keyframes hpq-spin { to { transform: rotate(360deg); } }
#hpq-quote-form-wrap[data-hpq] .hp-field-invalid {
    border-color: #b42318 !important;
    box-shadow: 0 0 0 3px rgba(180,35,24,.12) !important;
}

@media (max-width: 1024px) {
    #hpq-quote-form-wrap[data-hpq] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding-left: 12px;
        padding-right: 12px;
        overflow-x: clip;
    }
    #hpq-quote-form-wrap[data-hpq] .hpq-sidebar {
        display: block;
        position: static;
        order: 1;
    }
    #hpq-quote-form-wrap[data-hpq] .hpq-form-card {
        order: 2;
        width: 100%;
        max-width: 100%;
    }
    #hpq-quote-form-wrap[data-hpq] .hpq-summary {
        display: block;
        position: static;
        order: 3;
        width: 100%;
    }
    #hpq-quote-form-wrap[data-hpq] .hpq-summary__preview {
        aspect-ratio: auto;
        min-height: 92px;
    }
}

@media (max-width: 768px) {
    #hpq-quote-form-wrap[data-hpq] { padding: 10px; }
    #hpq-quote-form-wrap[data-hpq] .hpq-form { padding: 16px; }
    #hpq-quote-form-wrap[data-hpq] .hpq-stepper {
        padding: 12px 14px;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    #hpq-quote-form-wrap[data-hpq] .hpq-stepper__line { width: 14px; }
    #hpq-quote-form-wrap[data-hpq] .hpq-stepper__circle { width: 26px; height: 26px; font-size: 11px; }
    #hpq-quote-form-wrap[data-hpq] .hpq-contact-fields,
    #hpq-quote-form-wrap[data-hpq] .hpq-mini-grid,
    #hpq-quote-form-wrap[data-hpq] .hpq-dimensions-wrap { grid-template-columns: 1fr; }
    #hpq-quote-form-wrap[data-hpq] fieldset[data-step="3"] > .hpq-option-list,
    #hpq-quote-form-wrap[data-hpq] fieldset[data-step="4"] > .hpq-option-list,
    #hpq-quote-form-wrap[data-hpq] fieldset[data-step="6"] > .hpq-option-list,
    #hpq-quote-form-wrap[data-hpq] fieldset[data-step="4"] .hpq-checkbox-grid,
    #hpq-quote-form-wrap[data-hpq] fieldset[data-step="5"] .hpq-finishes-grid,
    #hpq-quote-form-wrap[data-hpq] fieldset[data-step="7"] .hpq-checkbox-grid--radio {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #hpq-quote-form-wrap[data-hpq] .hpq-nav {
        gap: 10px;
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    #hpq-quote-form-wrap[data-hpq] .hpq-nav__indicator {
        order: -1;
        width: 100%;
        text-align: center;
    }
    #hpq-quote-form-wrap[data-hpq] .hpq-nav__back,
    #hpq-quote-form-wrap[data-hpq] .hpq-nav__next,
    #hpq-quote-form-wrap[data-hpq] #hpq-submit-btn,
    #hpq-quote-form-wrap[data-hpq] .hpq-upload-btn,
    #hpq-quote-form-wrap[data-hpq] .hpq-browse-all-btn {
        width: 100%;
        justify-content: center;
        min-height: 46px;
    }
}

@media (max-width: 520px) {
    #hpq-quote-form-wrap[data-hpq] fieldset[data-step="1"] .hpq-style-grid,
    #hpq-quote-form-wrap[data-hpq] fieldset[data-step="3"] > .hpq-option-list,
    #hpq-quote-form-wrap[data-hpq] fieldset[data-step="4"] > .hpq-option-list,
    #hpq-quote-form-wrap[data-hpq] fieldset[data-step="6"] > .hpq-option-list,
    #hpq-quote-form-wrap[data-hpq] fieldset[data-step="3"] .hpq-checkbox-grid,
    #hpq-quote-form-wrap[data-hpq] fieldset[data-step="6"] .hpq-checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #hpq-quote-form-wrap[data-hpq] fieldset[data-step="4"] .hpq-checkbox-grid,
    #hpq-quote-form-wrap[data-hpq] fieldset[data-step="5"] .hpq-finishes-grid,
    #hpq-quote-form-wrap[data-hpq] fieldset[data-step="7"] .hpq-checkbox-grid--radio {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #hpq-quote-form-wrap[data-hpq] .hpq-option-row,
    #hpq-quote-form-wrap[data-hpq] .hpq-checkbox-pill,
    #hpq-quote-form-wrap[data-hpq] .hpq-finish-card {
        padding: 8px 7px;
        min-height: 42px;
        gap: 6px;
    }
    #hpq-quote-form-wrap[data-hpq] .hpq-option-row__label,
    #hpq-quote-form-wrap[data-hpq] .hpq-checkbox-pill span,
    #hpq-quote-form-wrap[data-hpq] .hpq-finish-card__label { font-size: 11px; }
    #hpq-quote-form-wrap[data-hpq] .hpq-input,
    #hpq-quote-form-wrap[data-hpq] textarea,
    #hpq-quote-form-wrap[data-hpq] select { width: 100%; font-size: 16px; }
}
