:root {
    --black:   #0A0A0A;
    --cg11:    #4D4D4F;
    --cg9:     #6D6E71;
    --cg7:     #929497;
    --cg5:     #B1B3B3;
    --cg3:     #D0D0CE;
    --cg1:     #E6E7E8;
    --offwhite:#F5F5F4;
    --white:   #FFFFFF;
    --serif:   'Cormorant Garamond', Georgia, serif;
    --sans:    'Jost', sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--offwhite);
    color: var(--black);
    font-family: var(--sans);
    font-weight: 300;
    min-height: 100vh;
  }

  /* ── HEADER ── */
  header { background: var(--black); padding: 0; position: relative; overflow: hidden; }
  .header-grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
  }
  .header-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cg7); }
  .header-inner {
    position: relative; z-index: 1;
    max-width: 800px; margin: 0 auto;
    padding: 48px 40px 40px;
    display: flex; align-items: center; gap: 28px;
  }
  .logo-lockup { flex-shrink: 0; display: flex; align-items: center; }
  .afs-logo { height: 80px; width: auto; display: block; }

  /* Co-branded lockup - Lewis Floor & Home, JP Flooring Design Center.
     The hairline rule reads as a partnership; a gap alone reads as a mistake. */
  .header-divider {
    width: 1px; height: 60px; margin: 0 20px; flex-shrink: 0;
    background: rgba(255,255,255,0.2);
  }
  .partner-logo-wrap { flex-shrink: 0; display: flex; align-items: center; }
  .partner-logo { width: auto; display: block; }
  /* The two marks differ enough in aspect ratio that a shared height flatters
     neither: the wordmark goes wide, the stacked mark goes tall. */
  .partner-logo.partner-wide { height: 56px; }
  .partner-logo.partner-tall { height: 84px; }
  .header-text { padding-top: 4px; }
  .header-eyebrow {
    font-family: var(--sans); font-size: 10px; font-weight: 500;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--cg5); margin-bottom: 8px;
  }
  .header-title {
    font-family: var(--serif); font-size: 52px; font-weight: 300;
    color: var(--white); line-height: 1.0; margin-bottom: 10px; letter-spacing: -1px;
  }
  .header-subtitle {
    font-family: var(--sans); font-size: 12px; font-weight: 300;
    color: var(--cg7); letter-spacing: 0.5px; line-height: 1.6;
  }
  .header-subtitle-appt {
    font-family: var(--sans); font-size: 12px; font-weight: 300;
    color: var(--cg7); letter-spacing: 0.5px; line-height: 1.6; white-space: nowrap;
  }
  .check-cols-3 { display: flex; gap: 12px; }
  .check-col { display: flex; flex-direction: column; gap: 8px; flex: 1; }
  .header-rule { max-width: 800px; margin: 0 auto; height: 1px; background: var(--cg11); position: relative; z-index: 1; }
  .header-info-bar { background: #111; position: relative; z-index: 1; padding: 22px 40px; max-width: 100%; }
  .header-contact-row { display: flex; gap: 20px; flex-wrap: nowrap; margin-top: 10px; align-items: center; }
  .header-contact-row a { color: var(--cg5); text-decoration: none; }
  .header-contact-row a:hover { text-decoration: underline; }
  .header-contact-icon { display: inline-block; vertical-align: middle; margin-right: 5px; }
  .header-info-inner { max-width: 800px; margin: 0 auto; font-size: 11px; font-weight: 400; color: var(--cg7); letter-spacing: 0.3px; }
  .header-info-inner strong { color: var(--cg5); font-weight: 500; }

  /* ── CUSTOMER STRIP ── */
  .customer-strip { background: var(--white); border-bottom: 1px solid var(--cg1); padding: 24px 40px; }
  .customer-strip-inner {
    max-width: 800px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
  }

  /* ── MAIN ── */
  main { max-width: 800px; margin: 0 auto; padding: 0 40px 80px; }

  /* ── SECTIONS ── */
  .section {
    margin-top: 32px; background: var(--white);
    border: 1px solid var(--cg1); border-radius: 2px; overflow: hidden;
    opacity: 1; transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .section.animate-ready { opacity: 0; transform: translateY(16px); }
  .section.visible { opacity: 1; transform: translateY(0); }
  .section-header { background: var(--black); padding: 12px 20px; display: flex; align-items: center; gap: 10px; }
  .section-number {
    width: 22px; height: 22px; border-radius: 50%;
    border: 1px solid var(--cg7);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 500; color: var(--cg5); flex-shrink: 0;
  }
  .section-title { font-size: 11px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--white); }
  .section-body { padding: 24px 20px; }

  /* ── QUESTIONS ── */
  .question { margin-bottom: 22px; }
  .question:last-child { margin-bottom: 0; }
  .question-label { font-size: 12px; font-weight: 500; color: var(--cg11); letter-spacing: 0.2px; margin-bottom: 10px; display: block; }

  /* ── CHECKBOXES ── */
  .check-grid { display: grid; gap: 8px 12px; }
  .check-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .check-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .check-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  @media (max-width: 560px) {
    .check-grid.cols-3, .check-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  }
  .check-item { display: flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
  .check-item input[type="checkbox"] { display: none; }
  .check-box {
    width: 16px; height: 16px; flex-shrink: 0;
    border: 1.5px solid var(--cg3); background: var(--white); border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.15s, background 0.15s; position: relative;
  }
  .check-box::after {
    content: ''; width: 9px; height: 5px;
    border-left: 2px solid var(--white); border-bottom: 2px solid var(--white);
    transform: rotate(-45deg) translateY(-1px); opacity: 0; transition: opacity 0.1s;
  }
  .check-item input:checked ~ .check-box { background: var(--black); border-color: var(--black); }
  .check-item input:checked ~ .check-box::after { opacity: 1; }
  .check-item:hover .check-box { border-color: var(--cg9); }
  .check-label { font-size: 12px; font-weight: 300; color: var(--cg11); line-height: 1.3; transition: color 0.15s; }
  .check-item input:checked ~ .check-label { color: var(--black); font-weight: 400; }
  .check-item.max-reached .check-box { border-color: var(--cg1); background: var(--offwhite); cursor: not-allowed; }
  .check-item.max-reached .check-label { color: var(--cg5); cursor: not-allowed; }
  .check-item.max-reached { cursor: not-allowed; }

  /* ── TEXT INPUTS ── */
  .text-input, .textarea-input {
    width: 100%; background: var(--offwhite); border: 1px solid var(--cg1);
    border-radius: 2px; padding: 10px 12px; font-family: var(--sans);
    font-size: 13px; font-weight: 300; color: var(--black); outline: none;
    transition: border-color 0.2s, background 0.2s; -webkit-appearance: none;
  }
  .text-input:focus, .textarea-input:focus { border-color: var(--cg9); background: var(--white); }
  .text-input::placeholder, .textarea-input::placeholder { color: var(--cg5); font-style: italic; }
  input[type="date"].text-input { -webkit-appearance: none; appearance: none; cursor: pointer; }
  input[type="date"].text-input::-webkit-calendar-picker-indicator { opacity: 0.4; cursor: pointer; }
  .text-input[readonly] { background: var(--cg1); color: var(--cg9); cursor: default; border-color: var(--cg1); }
  .text-input[readonly]:focus { border-color: var(--cg3); background: var(--cg1); }
  .prepopulated-note { font-size: 10px; color: var(--cg7); margin-top: 4px; font-style: italic; letter-spacing: 0.3px; }
  .textarea-input { resize: vertical; min-height: 64px; line-height: 1.5; }
  .field-group { display: flex; gap: 12px; }
  .field-group .field-wrap { flex: 1; }
  .field-label { display: block; font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cg9); margin-bottom: 6px; }

  /* ── INLINE EXTRAS ── */
  .inline-extras { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
  .inline-extra { display: flex; align-items: center; gap: 8px; }
  .inline-extra label { font-size: 11px; color: var(--cg9); font-weight: 400; white-space: nowrap; }
  .inline-extra input {
    width: 140px; background: var(--offwhite);
    border: 0; border-bottom: 1px solid var(--cg3);
    padding: 4px 6px; font-family: var(--sans); font-size: 12px; font-weight: 300;
    color: var(--black); outline: none; transition: border-color 0.2s;
  }
  .inline-extra input:focus { border-color: var(--cg9); }

  /* ── OTHER INPUT (specialty concerns) ── */
  .other-input-wrap { margin-top: 10px; display: none; }
  .other-input-wrap.visible { display: block; }
  .other-input {
    width: 100%; background: var(--offwhite); border: 1px solid var(--cg1);
    border-radius: 2px; padding: 8px 12px; font-family: var(--sans);
    font-size: 12px; font-weight: 300; color: var(--black); outline: none;
    transition: border-color 0.2s, background 0.2s;
  }
  .other-input:focus { border-color: var(--cg9); background: var(--white); }
  .other-input::placeholder { color: var(--cg5); font-style: italic; }

  /* ── COMBINED STYLE + PALETTE CARDS ── */
  .combined-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  @media (max-width: 580px) { .combined-card-grid { grid-template-columns: repeat(2, 1fr); } }

  .combined-card {
    border: 1.5px solid var(--cg1); border-radius: 3px;
    overflow: hidden; cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative; user-select: none; background: var(--white);
  }
  .combined-card:hover { border-color: var(--cg7); box-shadow: 0 2px 12px rgba(0,0,0,0.08); transform: translateY(-1px); }
  .combined-card.selected { border-color: var(--black); box-shadow: 0 2px 16px rgba(0,0,0,0.14); }
  .combined-card.disabled { opacity: 0.38; pointer-events: none; }
  .combined-card input[type="checkbox"] { display: none; }

  .card-check {
    position: absolute; top: 8px; right: 8px;
    width: 20px; height: 20px; background: var(--black); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.15s, transform 0.15s; transform: scale(0.7); z-index: 2;
  }
  .card-check::after {
    content: ''; width: 10px; height: 6px;
    border-left: 2px solid white; border-bottom: 2px solid white;
    transform: rotate(-45deg) translateY(-1px);
  }
  .combined-card.selected .card-check { opacity: 1; transform: scale(1); }

  /* Mood board thumbnails */
  .mood-thumb { height: 160px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--cg2); overflow: hidden; }
  .mood-photo { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }

  /* Palette swatch strip */
  .card-swatches { display: flex; height: 18px; }
  .card-swatches .sw { flex: 1; }

  /* Swatch colors per style — Sherwin Williams */

  .sw-modern-1 { background: #E6DFD3; } /* Shoji White */
  .sw-modern-2 { background: #CFC7B8; } /* Mushroom */
  .sw-modern-3 { background: #A0988F; } /* Pavestone */
  .sw-modern-4 { background: #424240; } /* Iron Ore */

  .sw-trad-1 { background: #B8C3C5; } /* Niebla Azul */
  .sw-trad-2 { background: #ECE4D8; } /* Ivory Lace */
  .sw-trad-3 { background: #616E73; } /* Slate Tile */
  .sw-trad-4 { background: #A8A194; } /* Western Reserve */

  .sw-trans-1 { background: #E2DED4; } /* Mortar */
  .sw-trans-2 { background: #4F4742; } /* Black Fox */
  .sw-trans-3 { background: #ECECE7; } /* Pure White */
  .sw-trans-4 { background: #AFA79B; } /* Illusion */

  .sw-farm-1 { background: #ECEBE7; } /* Pure White */
  .sw-farm-2 { background: #CDD2CB; } /* Sea Salt */
  .sw-farm-3 { background: #5F6159; } /* Pewter Green */
  .sw-farm-4 { background: #424240; } /* Iron Ore */

  .sw-org-1 { background: #D1CEC3; } /* Gossamer Veil */
  .sw-org-2 { background: #ECEBDF; } /* Alabaster */
  .sw-org-3 { background: #B0A493; } /* Perfect Khaki */
  .sw-org-4 { background: #BCBCAF; } /* Soft Sage */

  .sw-bold-1 { background: #8F6A3E; } /* Relic Bronze */
  .sw-bold-2 { background: #434D53; } /* Tarragon */
  .sw-bold-3 { background: #64674D; } /* Oakmoss */
  .sw-bold-4 { background: #773628; } /* Roycroft Copper Red */

  /* Card label */
  .card-label-combined {
    padding: 9px 12px 10px; background: var(--white);
    border-top: 1px solid var(--cg1);
    display: flex; align-items: center; justify-content: space-between;
  }
  .card-label-text { flex: 1; }
  .card-style-name {
    display: block; font-size: 10px; font-weight: 500;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--cg9); line-height: 1.3;
    transition: color 0.15s;
  }
  .combined-card.selected .card-style-name { color: var(--black); }
  .card-palette-name {
    display: block; font-size: 9px; font-weight: 300;
    color: var(--cg7); margin-top: 1px; letter-spacing: 0.3px;
    transition: color 0.15s;
  }
  .combined-card.selected .card-palette-name { color: var(--cg9); }
  .card-dot {
    width: 14px; height: 14px; border-radius: 50%;
    border: 1.5px solid var(--cg3); flex-shrink: 0; margin-left: 8px;
    position: relative; transition: border-color 0.15s, background 0.15s;
  }
  .combined-card.selected .card-dot { background: var(--black); border-color: var(--black); }
  .card-dot::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -55%) rotate(-45deg);
    width: 6px; height: 4px;
    border-left: 1.5px solid white; border-bottom: 1.5px solid white;
    opacity: 0; transition: opacity 0.1s;
  }
  .combined-card.selected .card-dot::after { opacity: 1; }

  /* Selection count */
  .selection-count {
    font-size: 10px; color: var(--cg7);
    margin-top: 10px; font-style: italic; letter-spacing: 0.3px; text-align: right;
  }
  .selection-count.maxed { color: var(--cg11); }

  /* ── FILE UPLOAD ── */
  .file-upload-area {
    border: 1.5px dashed var(--cg3); border-radius: 2px; padding: 18px 16px;
    text-align: center; cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--offwhite); position: relative;
  }
  .file-upload-area:hover { border-color: var(--cg9); background: var(--white); }
  .file-upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
  .file-upload-icon { font-size: 20px; margin-bottom: 6px; opacity: 0.4; }
  .file-upload-label { font-size: 11px; font-weight: 400; color: var(--cg9); letter-spacing: 0.3px; line-height: 1.6; }
  .file-upload-label strong { color: var(--cg11); font-weight: 500; }
  .image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 10px; }
  .preview-thumb { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 2px; border: 1px solid var(--cg1); background: var(--cg1); }
  .preview-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .preview-thumb .remove-thumb { position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; background: rgba(10,10,10,0.7); color: white; border: none; border-radius: 50%; font-size: 9px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .preview-thumb .thumb-name { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(10,10,10,0.55); color: white; font-size: 8px; padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* ── SUBMIT ── */
  .submit-area { margin-top: 40px; text-align: center; }
  .submit-note { font-size: 11px; color: var(--cg7); margin-bottom: 20px; line-height: 1.6; font-style: italic; }
  .btn-submit {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--black); color: var(--white);
    border: none; border-radius: 2px; padding: 16px 40px;
    font-family: var(--sans); font-size: 11px; font-weight: 500;
    letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
    transition: background 0.2s, transform 0.1s; outline: none; position: relative; overflow: hidden;
  }
  .btn-submit::before { content: ''; position: absolute; inset: 0; background: var(--cg7); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
  .btn-submit:hover::before { transform: scaleX(1); }
  .btn-submit span, .btn-arrow { position: relative; z-index: 1; }
  .btn-submit:hover { transform: translateY(-1px); }
  .btn-submit:active { transform: translateY(0); }
  .btn-submit:hover .btn-arrow { transform: translateX(4px); }
  .btn-arrow { transition: transform 0.2s; }

  /* ── SCOPE TOGGLE (Section 3 Option B) ── */
  .scope-toggle { display: flex; gap: 0; border: 1.5px solid var(--cg3); border-radius: 3px; overflow: hidden; width: fit-content; margin-bottom: 0; }
  .scope-btn {
    padding: 10px 28px; background: var(--offwhite); border: none;
    font-family: var(--sans); font-size: 12px; font-weight: 400;
    color: var(--cg9); cursor: pointer; letter-spacing: 0.5px;
    transition: background 0.15s, color 0.15s; position: relative;
  }
  .scope-btn + .scope-btn { border-left: 1.5px solid var(--cg3); }
  .scope-btn.active { background: var(--black); color: var(--white); font-weight: 500; }
  .scope-btn:not(.active):hover { background: var(--cg1); color: var(--cg11); }
  .scope-arrow { display: inline-block; margin-left: 5px; font-size: 11px; transition: transform 0.2s; }
  .scope-btn.active .scope-arrow { transform: rotate(180deg); }

  .scope-reveal {
    margin-top: 16px; padding: 16px 18px;
    background: var(--offwhite); border: 1px solid var(--cg1); border-radius: 2px;
    animation: scopeReveal 0.2s ease;
  }
  @keyframes scopeReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
  .scope-reveal-label {
    font-size: 10px; font-weight: 500; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--cg9); margin-bottom: 12px;
  }

  /* ── CARD EXPAND BUTTON ── */
  /* mood-thumb is 160px tall; button is 24px; 160-24-8=128 → sits 8px above image bottom */
  .card-expand {
    position: absolute; top: 128px; right: 8px; bottom: auto;
    width: 24px; height: 24px; background: rgba(10,10,10,0.55);
    border-radius: 3px; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.15s; cursor: pointer; z-index: 3; border: none;
    flex-shrink: 0;
  }
  .combined-card:hover .card-expand { opacity: 1; }
  .card-expand svg { width: 11px; height: 11px; }

  /* ── LIGHTBOX ── */
  .lightbox-overlay {
    position: fixed; inset: 0; background: rgba(10,10,10,0.9);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.25s;
  }
  .lightbox-overlay.open { opacity: 1; pointer-events: all; }
  .lightbox-inner {
    background: var(--white); max-width: 490px; width: 100%; border-radius: 3px;
    /* flex-column: grid shrinks to fit viewport, footer always visible */
    display: flex; flex-direction: column;
    max-height: calc(100vh - 80px);
    overflow: hidden; transform: scale(0.95); transition: transform 0.25s;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  }
  .lightbox-overlay.open .lightbox-inner { transform: scale(1); }
  .lightbox-grid {
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
    /* flex: 1 lets the grid take remaining space after footer; min-height: 0 lets it shrink */
    flex: 1; min-height: 0;
    gap: 2px; background: var(--cg3);
  }
  .lightbox-grid img {
    width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
    image-rendering: auto;
  }
  .lightbox-footer {
    /* flex-shrink: 0 means footer never gets compressed — grid absorbs any squeeze */
    flex-shrink: 0;
    padding: 16px 20px; display: flex; align-items: flex-start;
    justify-content: space-between; border-top: 1px solid var(--cg1);
    gap: 16px; background: var(--white);
  }
  /* text block must claim remaining width so it wraps instead of overflowing */
  .lightbox-footer-text { flex: 1; min-width: 0; }
  .lightbox-style-name {
    font-family: var(--serif); font-size: 20px; font-weight: 300;
    color: var(--black); line-height: 1.25;
    white-space: normal; word-break: break-word;
  }
  .lightbox-swatches { display: flex; gap: 5px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
  .lightbox-swatch { width: 18px; height: 18px; border-radius: 2px; border: 1px solid rgba(0,0,0,0.1); flex-shrink: 0; }
  .lightbox-palette {
    font-size: 11px; font-weight: 300; color: var(--cg9);
    margin-top: 6px; letter-spacing: 0.3px; line-height: 1.6;
    white-space: normal; word-break: break-word;
  }
  .lightbox-close {
    background: var(--black); border: none; border-radius: 2px;
    padding: 9px 18px; font-family: var(--sans); font-size: 11px; font-weight: 400;
    color: var(--white); cursor: pointer; transition: background 0.15s; letter-spacing: 1px;
    text-transform: uppercase; flex-shrink: 0; white-space: nowrap; margin-top: 2px;
  }
  .lightbox-close:hover { background: var(--cg11); }

  /* ── TOOLTIP ── */
  .tooltip-wrap { position: relative; display: inline-flex; align-items: center; gap: 5px; }
  .tooltip-icon {
    width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--cg5);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 8px; font-weight: 700; color: var(--cg7); cursor: help;
    flex-shrink: 0; transition: border-color 0.15s, color 0.15s; user-select: none;
    font-family: Georgia, serif; line-height: 1;
  }
  .tooltip-icon:hover { border-color: var(--cg9); color: var(--cg11); }
  .tooltip-box {
    position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
    background: var(--black); color: var(--white); font-family: var(--sans);
    font-size: 11px; font-weight: 300; line-height: 1.7; padding: 10px 14px;
    border-radius: 3px; width: 270px; z-index: 100;
    opacity: 0; pointer-events: none; transition: opacity 0.15s; letter-spacing: 0.2px;
  }
  .tooltip-box ol { padding-left: 14px; margin: 4px 0 0; }
  .tooltip-box li { margin-bottom: 2px; }
  .tooltip-box::before {
    content: ''; position: absolute; left: -5px; top: 50%; transform: translateY(-50%);
    border: 5px solid transparent; border-right-color: var(--black); border-left: none;
  }
  .tooltip-wrap:hover .tooltip-box { opacity: 1; }

  /* ── DELIVERY PREFERENCE ── */
  .delivery-section {
    background: var(--white); border: 1px solid var(--cg1); border-radius: 2px;
    padding: 22px 20px; margin-top: 32px;
  }
  .delivery-header { background: var(--black); padding: 12px 20px; display: flex; align-items: center; gap: 10px; margin: -22px -20px 18px; }
  .delivery-title { font-size: 11px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--white); }
  .delivery-options { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
  .delivery-check { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
  .delivery-check input[type="checkbox"] { display: none; }
  .delivery-check-box {
    width: 16px; height: 16px; border-radius: 2px; border: 1.5px solid var(--cg3);
    background: var(--white); display: flex; align-items: center; justify-content: center;
    transition: border-color 0.15s, background 0.15s; flex-shrink: 0; position: relative;
  }
  .delivery-check-box::after {
    content: ''; width: 9px; height: 5px;
    border-left: 2px solid white; border-bottom: 2px solid white;
    transform: rotate(-45deg) translateY(-1px); opacity: 0; transition: opacity 0.1s;
  }
  .delivery-check input:checked ~ .delivery-check-box { background: var(--black); border-color: var(--black); }
  .delivery-check input:checked ~ .delivery-check-box::after { opacity: 1; }
  .delivery-check:hover .delivery-check-box { border-color: var(--cg9); }
  .delivery-check-label { font-size: 13px; font-weight: 300; color: var(--cg11); transition: color 0.15s; }
  .delivery-check input:checked ~ .delivery-check-label { color: var(--black); font-weight: 400; }
  .delivery-field { display: none; }
  .delivery-field.visible { display: block; }
  .delivery-fields { display: flex; flex-direction: column; gap: 12px; }

  /* ── FOOTER ── */
  footer { background: var(--black); padding: 24px 40px; text-align: center; margin-top: 0; }
  .footer-inner { max-width: 800px; margin: 0 auto; }
  .footer-logo { font-family: var(--serif); font-size: 13px; font-weight: 300; color: var(--cg7); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
  .footer-url { font-size: 11px; color: var(--cg9); font-weight: 300; letter-spacing: 0.5px; }

  /* ── SUCCESS ── */
  #success-msg { display: none; background: var(--black); border: 1px solid var(--cg7); border-radius: 2px; padding: 32px; text-align: center; margin-top: 32px; opacity: 0; transition: opacity 0.4s; }
  #success-msg.show { display: block; }
  #success-msg.visible { opacity: 1; }
  #success-msg h3 { font-family: var(--serif); font-size: 26px; font-style: italic; color: var(--white); margin-bottom: 8px; }
  #success-msg p { font-size: 12px; color: var(--cg7); line-height: 1.7; }

  /* ── PROGRESS ── */
  .progress-bar-wrap { max-width: 800px; margin: 24px auto 0; padding: 0 40px; }
  .progress-track { height: 2px; background: var(--cg1); border-radius: 1px; overflow: hidden; }
  .progress-fill { height: 100%; background: var(--cg9); width: 0%; transition: width 0.4s ease; border-radius: 1px; }
  .progress-label { font-size: 10px; color: var(--cg7); margin-top: 6px; letter-spacing: 1px; font-weight: 400; text-align: right; }

/* ─────────────────────────────────────────────────────────────
   SERVER-SIDE VALIDATION FEEDBACK  (added for the PHP build)
   ───────────────────────────────────────────────────────────── */

.field-error {
  font-size: 11px;
  line-height: 1.5;
  color: #b42318;
  margin-top: 5px;
  letter-spacing: .2px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.field-error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-top: 1px;
  border-radius: 50%;
  background: #b42318;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
}

.text-input.is-invalid,
.textarea-input.is-invalid,
.other-input.is-invalid,
input.is-invalid,
textarea.is-invalid {
  border-color: #b42318 !important;
  background: #fffbfa;
}
.text-input.is-invalid:focus,
.textarea-input.is-invalid:focus {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .08);
}

/* ── Flash banners ── */
.flash {
  padding: 0 24px;
  margin: 0 0 -8px;
}
.flash-inner {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 18px 22px;
  border-radius: 2px;
  border-left: 2px solid;
}
.flash h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 6px;
  letter-spacing: .3px;
}
.flash p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  color: var(--cg8);
}
.flash-ref {
  font-size: 11px !important;
  color: var(--cg7) !important;
  letter-spacing: 1px;
  margin-top: 8px !important;
}
.flash-success .flash-inner {
  background: #f2f7f3;
  border-left-color: #2f6b45;
}
.flash-success h3 { color: #245436; }

/* "Back to our website" link after a successful submission. Same visual
   language as the submit button, scaled down to sit inside the banner. */
.flash-return { margin-top: 14px !important; }
.btn-return {
  display: inline-block;
  padding: 10px 18px;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s;
}
.btn-return:hover,
.btn-return:focus-visible { background: var(--cg11); }
.flash-error .flash-inner {
  background: #fffbfa;
  border-left-color: #b42318;
}
.flash-error h3 { color: #912018; }

/* Test mode. Amber rather than red: nothing is wrong, but nothing here is real
   either, and the page must not be mistakable for the live form. */
.flash-test .flash-inner {
  background: #FEF6E7;
  border-left: 3px solid #B54708;
}
.flash-test h3 { color: #7A2E0E; }
.flash-test strong { color: #7A2E0E; font-weight: 500; }

/* ── Honeypot: off-screen rather than display:none, since some bots skip
      hidden inputs but not positioned ones. Never focusable by a person. ── */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.upload-note {
  font-size: 11px;
  color: #b42318;
  margin-top: 8px;
  letter-spacing: .2px;
}
