/* ═══════════════════════════════════════════════════
   PROFESSIONISTI.LABORATORIOTIMBRI.IT
   Aesthetic: "Notaio Moderno" — institutional authority
   meets artisan craftsmanship. Dark navy, gold foil,
   geometric seal patterns.
   ═══════════════════════════════════════════════════ */

/* ── Reset & Variables ─────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core palette */
  --navy: #1A365D;
  --navy-deep: #0F2240;
  --navy-light: #234E82;
  --anthracite: #2D3748;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gold: #C9A961;
  --gold-light: #D4BC82;
  --gold-dark: #A8893E;
  --gold-faint: rgba(201, 169, 97, 0.08);

  /* User color palettes */
  --color-blu: #1A365D;
  --color-verde: #2D5F3A;
  --color-grigio: #3A3A3A;
  --color-bordeaux: #6B1D2A;

  /* Functional */
  --text-primary: #1A1F2B;
  --text-secondary: #5A6178;
  --text-muted: #8B91A3;
  --border: #E2E5EB;
  --border-light: #ECEEF2;
  --error: #C53030;
  --error-bg: #FFF5F5;
  --success: #276749;
  --success-bg: #F0FFF4;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Mulish', sans-serif;
  --font-classic: 'Crimson Pro', serif;
  --font-modern: 'Outfit', sans-serif;
  --font-elegant: 'Dancing Script', cursive;

  /* Spacing */
  --section-py: clamp(4rem, 8vw, 7rem);
  --container-px: clamp(1.25rem, 4vw, 2rem);
  --container-max: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 54, 93, 0.06), 0 1px 2px rgba(26, 54, 93, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 54, 93, 0.08), 0 2px 4px rgba(26, 54, 93, 0.04);
  --shadow-lg: 0 12px 40px rgba(26, 54, 93, 0.12), 0 4px 12px rgba(26, 54, 93, 0.06);
  --shadow-gold: 0 4px 20px rgba(201, 169, 97, 0.2);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; font-family: inherit; }

/* ── Section Headers ───────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-faint);
  border: 1px solid rgba(201, 169, 97, 0.2);
  padding: 0.35em 1.2em;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-header__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9em 2em;
  border-radius: 6px;
  border: none;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn__arrow {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}

.btn__arrow--left { transform: scaleX(1); }

.btn--cta {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
}

.btn--cta:hover {
  background: var(--gold-dark);
  box-shadow: 0 6px 28px rgba(201, 169, 97, 0.3);
  transform: translateY(-1px);
}

.btn--cta:hover .btn__arrow {
  transform: translateX(3px);
}

.btn--cta:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--navy);
  background: rgba(26, 54, 93, 0.03);
}

.btn--outline:hover .btn__arrow--left {
  transform: translateX(-3px);
}

.btn--submit {
  background: var(--navy);
  color: var(--white);
  width: 100%;
  justify-content: center;
  padding: 1.1em 2em;
  font-size: 1.05rem;
}

.btn--submit:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  overflow: hidden;
}

/* Geometric seal pattern */
.hero__seal {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background:
    radial-gradient(circle at 50% 45%, transparent 200px, rgba(201, 169, 97, 0.5) 200px, rgba(201, 169, 97, 0.5) 202px, transparent 202px),
    radial-gradient(circle at 50% 45%, transparent 260px, rgba(201, 169, 97, 0.3) 260px, rgba(201, 169, 97, 0.3) 262px, transparent 262px),
    radial-gradient(circle at 50% 45%, transparent 320px, rgba(201, 169, 97, 0.2) 320px, rgba(201, 169, 97, 0.2) 322px, transparent 322px),
    radial-gradient(circle at 50% 45%, transparent 380px, rgba(201, 169, 97, 0.1) 380px, rgba(201, 169, 97, 0.1) 382px, transparent 382px);
}

/* Noise grain overlay */
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  padding: 2rem var(--container-px);
  animation: heroFadeIn 1s var(--ease-out) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: heroFadeIn 1s var(--ease-out) 0.15s both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 97, 0.25);
  padding: 0.5em 1.2em;
  border-radius: 100px;
  background: rgba(201, 169, 97, 0.06);
}

.badge__icon {
  width: 1.15em;
  height: 1.15em;
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  animation: heroFadeIn 1s var(--ease-out) 0.3s both;
}

.hero__headline--accent {
  color: var(--gold);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  animation: heroFadeIn 1s var(--ease-out) 0.45s both;
}

.hero__content .btn--cta {
  animation: heroFadeIn 1s var(--ease-out) 0.6s both;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: heroFadeIn 1s var(--ease-out) 1.2s both;
}

.hero__scroll-hint span {
  display: block;
  width: 20px;
  height: 32px;
  border: 1.5px solid rgba(201, 169, 97, 0.35);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-hint span::after {
  content: '';
  width: 3px;
  height: 6px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════════════════
   COMPLIANCE
   ══════════════════════════════════════════════════ */
.compliance {
  padding: var(--section-py) 0;
  background: var(--off-white);
  position: relative;
}

.compliance::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.compliance__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.compliance__card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease-out);
  position: relative;
}

.compliance__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.compliance__card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.compliance__card-icon svg {
  width: 100%;
  height: 100%;
}

.compliance__card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.compliance__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.compliance__list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.compliance__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ══════════════════════════════════════════════════
   WIZARD
   ══════════════════════════════════════════════════ */
.wizard {
  padding: var(--section-py) 0;
  background: var(--white);
}

/* Progress Bar */
.progress-bar {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.progress-bar__track,
.progress-bar__fill {
  position: absolute;
  top: 18px;
  left: 12%;
  right: 12%;
  height: 2px;
}

.progress-bar__track {
  background: var(--border);
}

.progress-bar__fill {
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out);
}

.progress-bar__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  position: relative;
  z-index: 1;
  cursor: default;
}

.progress-bar__step.clickable {
  cursor: pointer;
}

.progress-bar__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid var(--border);
  transition: all 0.35s var(--ease-out);
  position: relative;
}

.progress-bar__number {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.35s var(--ease-out);
}

.progress-bar__check {
  position: absolute;
  width: 16px;
  height: 16px;
  color: var(--white);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.35s var(--ease-out);
}

.progress-bar__label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color 0.35s var(--ease-out);
  text-align: center;
}

/* Active step */
.progress-bar__step.active .progress-bar__circle {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15);
}

.progress-bar__step.active .progress-bar__number {
  color: var(--navy-deep);
}

.progress-bar__step.active .progress-bar__label {
  color: var(--navy);
  font-weight: 600;
}

/* Completed step */
.progress-bar__step.completed .progress-bar__circle {
  border-color: var(--gold);
  background: var(--gold);
}

.progress-bar__step.completed .progress-bar__number {
  opacity: 0;
  transform: scale(0.5);
}

.progress-bar__step.completed .progress-bar__check {
  opacity: 1;
  transform: scale(1);
}

.progress-bar__step.completed .progress-bar__label {
  color: var(--gold-dark);
}

/* Wizard Panel */
.wizard__panel {
  min-height: 480px;
  position: relative;
}

/* Step transitions */
.wizard__step {
  animation: stepFadeIn 0.4s var(--ease-out) both;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard__step--exit {
  animation: stepFadeOut 0.2s var(--ease-in-out) both;
}

@keyframes stepFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}

/* Navigation */
.wizard__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* ── Step 1: Category Cards ────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.category-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.category-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-card.selected {
  border-color: var(--gold);
  background: var(--gold-faint);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.12);
}

.category-card.selected::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: var(--gold);
  border-radius: 50%;
  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='M3 8l4 4 6-7' stroke='%231A365D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.category-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  color: var(--navy);
}

.category-card__icon svg {
  width: 100%;
  height: 100%;
}

.category-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.category-card__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Step 2: Form ──────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.form-label .required {
  color: var(--error);
  margin-left: 2px;
}

.form-input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7em 0.9em;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text-primary);
  transition: all 0.25s var(--ease-out);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.08);
}

.form-input.error {
  border-color: var(--error);
  background: var(--error-bg);
}

.form-input.valid {
  border-color: var(--success);
}

.form-error {
  font-size: 0.75rem;
  color: var(--error);
  min-height: 1em;
}

/* Color palette selector */
.color-palette {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem 0;
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  position: relative;
  outline: none;
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-swatch.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.25);
}

.color-swatch.selected::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.color-swatch[data-color="blu"] { background: var(--color-blu); }
.color-swatch[data-color="verde"] { background: var(--color-verde); }
.color-swatch[data-color="grigio"] { background: var(--color-grigio); }
.color-swatch[data-color="bordeaux"] { background: var(--color-bordeaux); }

.color-swatch__label {
  display: block;
  font-size: 0.68rem;
  text-align: center;
  color: var(--text-muted);
  margin-top: 0.35rem;
  white-space: nowrap;
}

.color-palette-wrapper {
  display: flex;
  gap: 1.5rem;
}

.color-palette-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Step 3: Preview Grid ──────────────────────── */
.preview-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.preview-row {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.5rem;
  background: var(--off-white);
}

.preview-row__title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-row__title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--gold);
  border-radius: 2px;
}

/* ── Hero Preview Area ──────────────────────────── */
.preview-hero {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  transition: border-color 0.3s var(--ease-out);
}

.preview-hero__svg {
  width: 100%;
  max-width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-hero__svg svg {
  width: 100%;
  height: auto;
  max-height: 300px;
}

/* ── Thumbnail Strip ───────────────────────────── */
.preview-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.preview-thumb {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-align: center;
  position: relative;
}

.preview-thumb:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.preview-thumb.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 169, 97, 0.15);
  background: var(--gold-faint);
}

.preview-thumb__svg {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.preview-thumb__svg svg {
  width: 100%;
  height: auto;
  max-height: 56px;
}

.preview-thumb__label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.preview-thumb.selected .preview-thumb__label {
  color: var(--navy);
}

.preview-thumb__radio {
  position: absolute;
  top: 6px;
  right: 6px;
}

.preview-thumb__radio input[type="radio"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-radius: 50%;
  transition: all 0.2s;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.preview-thumb__radio input[type="radio"]:checked {
  border-color: var(--gold);
}

.preview-thumb__radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--gold);
  border-radius: 50%;
}

/* ── Step 4: Summary ───────────────────────────── */
.summary {
  max-width: 640px;
  margin: 0 auto;
}

.summary__card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.summary__header {
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 1.5rem;
}

.summary__header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.summary__header p {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.summary__body {
  padding: 1.5rem;
}

.summary__section {
  margin-bottom: 1.5rem;
}

.summary__section:last-child {
  margin-bottom: 0;
}

.summary__section-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

.summary__label {
  color: var(--text-secondary);
}

.summary__value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.summary__products {
  display: grid;
  gap: 0.5rem;
}

.summary__product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.summary__product-icon {
  width: 32px;
  height: 32px;
  background: var(--gold-faint);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-dark);
}

.summary__product-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.summary__product-variant {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.summary__submit {
  margin-top: 1.5rem;
}

/* Success state */
.summary__success {
  text-align: center;
  padding: 3rem 2rem;
}

.summary__success-icon {
  width: 64px;
  height: 64px;
  background: var(--success-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--success);
}

.summary__success-icon svg {
  width: 32px;
  height: 32px;
}

.summary__success h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.summary__success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

.summary__success .fallback {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.summary__success .fallback a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Error message */
.submit-error {
  text-align: center;
  padding: 1rem;
  background: var(--error-bg);
  border: 1px solid rgba(197, 48, 48, 0.2);
  border-radius: 6px;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--error);
}

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 0;
  position: relative;
  overflow: hidden;
}

.footer__seal {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 97, 0.06);
  pointer-events: none;
}

.footer__seal::after {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 97, 0.04);
}

.footer__inner {
  position: relative;
  z-index: 1;
}

.footer__brand {
  margin-bottom: 2rem;
}

.footer__logo {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.footer__tagline {
  display: block;
  font-size: 0.82rem;
  color: var(--gold);
  margin-top: 0.3rem;
}

.footer__info {
  display: flex;
  gap: 4rem;
  padding-bottom: 2rem;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.75rem;
}

.footer__address {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer__link {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s;
  display: inline-block;
}

.footer__link:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ══════════════════════════════════════════════════
   TRUST BAR
   ══════════════════════════════════════════════════ */
.trust-bar {
  background: var(--navy-deep);
  padding: 2rem 0;
  border-top: 1px solid rgba(201, 169, 97, 0.1);
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.trust-bar__icon {
  width: 40px;
  height: 40px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.trust-bar__icon svg {
  width: 20px;
  height: 20px;
}

.trust-bar__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trust-bar__text strong {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
}

.trust-bar__text span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ══════════════════════════════════════════════════
   STEP 3 — PRODUCT TOGGLE, PRICING, MATERIALS
   ══════════════════════════════════════════════════ */

/* Product row header with toggle */
.product-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.product-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.product-toggle__track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.25s var(--ease-out);
}

.product-toggle__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.25s var(--ease-out);
}

.product-toggle input:checked + .product-toggle__track {
  background: var(--gold);
}

.product-toggle input:checked + .product-toggle__track::after {
  transform: translateX(18px);
}

.product-header__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-header__title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--gold);
  border-radius: 2px;
}

/* Info button */
.product-info-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.product-info-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* Product specs panel */
.product-specs {
  display: none;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: rgba(26, 54, 93, 0.03);
  border-radius: 6px;
  border-left: 3px solid var(--gold);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.product-specs.open {
  display: block;
}

.product-specs dt {
  font-weight: 600;
  color: var(--text-primary);
  display: inline;
}

.product-specs dd {
  display: inline;
  margin: 0;
}

.product-specs dd::after {
  content: '';
  display: block;
  margin-bottom: 0.25rem;
}

.product-specs__link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-light);
  text-decoration: none;
  transition: color 0.2s;
}

.product-specs__link:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

/* Price tag */
.product-price {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  margin-left: auto;
}

.product-price small {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Discount hint banner */
.discount-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold-dark);
  background: var(--gold-faint);
  border: 1px solid rgba(201, 169, 97, 0.2);
}

.discount-hint svg {
  flex-shrink: 0;
  color: var(--gold-dark);
}

.discount-hint--active {
  color: var(--success);
  background: var(--success-bg);
  border-color: rgba(39, 103, 73, 0.15);
  font-weight: 600;
}

.discount-hint--active svg {
  color: var(--success);
}

/* Disabled state for product content */
.preview-row.disabled .preview-hero,
.preview-row.disabled .preview-thumbs,
.preview-row.disabled .material-select,
.preview-row.disabled .size-select,
.preview-row.disabled .quantity-select-row,
.preview-row.disabled .qty-discount-hint,
.preview-row.disabled .custom-size-row {
  opacity: 0.3;
  pointer-events: none;
}

.preview-row.disabled .product-price {
  opacity: 0.3;
}

/* Material selector (plaque) */
.material-select {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.material-btn {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.5em 1.2em;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.material-btn:hover {
  border-color: var(--gold);
}

.material-btn.selected {
  border-color: var(--gold);
  background: var(--gold-faint);
  color: var(--navy);
  font-weight: 600;
}

/* Size selector (plaque) */
.size-select {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.size-btn {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.5em 1.2em;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.size-btn:hover {
  border-color: var(--gold);
}

.size-btn.selected {
  border-color: var(--gold);
  background: var(--gold-faint);
  color: var(--navy);
  font-weight: 600;
}

/* Custom size row */
.custom-size-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.custom-size-row .form-input {
  flex: 1;
  min-width: 200px;
  font-size: 0.88rem;
}

.custom-size-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Numeric quantity input */
.qty-input {
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.45em 0.6em;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text-primary);
  outline: none;
  width: 70px;
  text-align: center;
  transition: border-color 0.2s;
}

.qty-input:focus {
  border-color: var(--navy-light);
}

/* Quantity selector */
.quantity-select-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.quantity-select-row label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.quantity-select {
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.45em 2em 0.45em 0.75em;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white) url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6178' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.6em center;
  background-size: 10px;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  appearance: none;
  transition: border-color 0.2s;
  min-width: 90px;
}

.quantity-select:focus {
  border-color: var(--navy-light);
}

/* Custom design thumb (4th thumbnail) */
.preview-thumb--custom {
  border-style: dashed;
  border-color: var(--text-muted);
}

.preview-thumb--custom:hover {
  border-color: var(--gold);
  border-style: dashed;
}

.preview-thumb--custom.selected {
  border-color: var(--gold);
  border-style: solid;
  background: var(--gold-faint);
}

.preview-thumb--custom .preview-thumb__svg {
  color: var(--text-muted);
}

.preview-thumb--custom.selected .preview-thumb__svg {
  color: var(--gold-dark);
}

.custom-notes {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.6em 0.8em;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  resize: vertical;
  min-height: 60px;
  outline: none;
  transition: border-color 0.2s;
}

.custom-notes:focus {
  border-color: var(--navy-light);
}

.custom-notes::placeholder {
  color: var(--text-muted);
}

/* Hero custom placeholder styling */
.preview-hero--custom {
  border-style: dashed;
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.preview-hero--custom .preview-hero__svg {
  opacity: 0.5;
}

/* Price summary box */
.price-summary {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}

.price-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  font-size: 0.9rem;
}

.price-summary__row--total {
  border-top: 2px solid var(--navy);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1.05rem;
}

.price-summary__label {
  color: var(--text-secondary);
}

.price-summary__value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}

.price-summary__row--total .price-summary__label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}

.price-summary__row--discount .price-summary__value {
  color: var(--success);
}

/* Discount badge */
.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid rgba(39, 103, 73, 0.15);
  padding: 0.35em 0.9em;
  border-radius: 100px;
}

/* Quantity discount hint */
.qty-discount-hint {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1rem;
  margin-top: -0.5rem;
  letter-spacing: 0.01em;
}

/* Quantity discount badge */
.qty-discount-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid rgba(39, 103, 73, 0.15);
  padding: 0.25em 0.7em;
  border-radius: 100px;
  margin-left: 0.25rem;
}

/* Strikethrough price */
.price-strike {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.82em;
  margin-right: 0.25em;
}

/* Summary pricing rows */
.summary__pricing {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.summary__pricing .summary__row {
  font-size: 0.88rem;
}

.summary__pricing .summary__row--total {
  border-top: 2px solid var(--navy);
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  font-size: 1rem;
}

.summary__pricing .summary__row--total .summary__label,
.summary__pricing .summary__row--total .summary__value {
  font-weight: 700;
  color: var(--navy);
}

.summary__pricing .summary__row--discount .summary__value {
  color: var(--success);
  font-weight: 600;
}

.summary__delivery {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(201, 169, 97, 0.06);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.summary__delivery svg {
  width: 18px;
  height: 18px;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.summary__delivery strong {
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .compliance__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-bar__grid {
    gap: 1.25rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero__headline {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .hero__headline br {
    display: none;
  }

  .compliance__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .category-card {
    padding: 1.25rem 1rem;
  }

  .category-card__icon {
    width: 40px;
    height: 40px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .preview-thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .preview-hero__svg svg {
    max-height: 220px;
  }

  .progress-bar__label {
    font-size: 0.6rem;
  }

  .progress-bar__circle {
    width: 30px;
    height: 30px;
  }

  .progress-bar__number {
    font-size: 0.7rem;
  }

  .wizard__nav {
    gap: 0.75rem;
  }

  .btn {
    padding: 0.8em 1.4em;
    font-size: 0.88rem;
  }

  .footer__info {
    flex-direction: column;
    gap: 1.5rem;
  }

  .color-palette-wrapper {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .summary__row {
    flex-direction: column;
    gap: 0.15rem;
  }

  .summary__value {
    text-align: left;
  }

  .trust-bar__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .trust-bar__item {
    justify-content: flex-start;
    padding-left: 1rem;
  }

  .product-header {
    flex-wrap: wrap;
  }

  .material-select {
    gap: 0.35rem;
  }

  .material-btn,
  .size-btn {
    font-size: 0.72rem;
    padding: 0.4em 0.9em;
  }

  .price-summary {
    padding: 1rem;
  }

  .discount-hint {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .custom-size-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .custom-size-row .form-input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero__badges {
    flex-direction: column;
    align-items: center;
  }

  .preview-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-hero__svg svg {
    max-height: 180px;
  }
}
