:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #6b7280;
  --soft: #edf1f5;
  --line: #d8dee6;
  --paper: #ffffff;
  --wash: #f3f5f7;
  --accent: #1f4e5f;
  --accent-dark: #163846;
  --gold: #c49a4a;
  --danger: #a33d3d;
  --shadow: 0 18px 50px rgba(31, 41, 51, 0.14);
  --soft-shadow: 0 8px 24px rgba(31, 41, 51, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(31, 78, 95, 0.13), transparent 34rem),
    radial-gradient(circle at top right, rgba(196, 154, 74, 0.10), transparent 30rem),
    linear-gradient(180deg, #f8fafc, var(--wash));
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  text-align: center;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(24, 34, 45, 0.1);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 54px) 60px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  grid-template-areas: "copy card";
  gap: 32px;
  align-items: center;
  margin-bottom: 10px;
  padding: 32px 44px;
  background: #fff;
  border: 1px solid rgba(220, 228, 226, 0.95);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(196, 154, 74, 0.12), transparent 65%);
  pointer-events: none;
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 1;
}

.hero-card,
.step-card,
.summary-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(220, 228, 226, 0.95);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.hero-copy {
  grid-area: copy;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-self: center;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(30px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-description {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
  margin-top: 18px;
}

.hero-badges span::before {
  display: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  color: #34424d;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
}

.badge-icon {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}

.badge-payment {
  background: #fff7e8;
  border-color: #f0d39a;
}

.badge-time {
  background: #fff1f1;
  border-color: #efc3c3;
}

.badge-location {
  background: #eef8f5;
  border-color: #bdded8;
}

.badge-shipping {
  background: #f8fafc;
  border-color: #d9e1e8;
}

.hero-card {
  grid-area: card;
  display: grid;
  justify-self: center;
  width: 240px;
  max-width: 100%;
  align-content: center;
  align-self: center;
  gap: 10px;
  padding: 22px;
  background: linear-gradient(145deg, #1f4e5f, #162f3a);
  border-radius: 14px;
  color: #fff;
}

.hero-card span,
.hero-card small {
  color: rgba(255, 255, 255, 0.78);
}

.hero-card strong {
  font-size: 21px;
  line-height: 1.15;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
}

.builder {
  display: grid;
  gap: 22px;
}

.step-card {
  padding: clamp(18px, 3vw, 30px);
}

.step-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.step-title > span {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 900;
}

.step-title h2,
.summary h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0;
}

.step-title p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.step-hint {
  display: block;
  margin-top: 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.required-note {
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 10px;
  color: #604016;
  background: #fffaf0;
  border: 1px solid rgba(185, 135, 47, 0.28);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.step-card h3 {
  margin: 0;
  font-size: 16px;
}

.style-subblock {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.subblock-title {
  display: grid;
  gap: 5px;
}

.subblock-title h3 {
  color: var(--accent-dark);
}

.subblock-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.product-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.option-card:hover,
.text-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.option-card.selected,
.text-card.selected,
.delivery-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.option-card.featured {
  border-color: rgba(185, 135, 47, 0.72);
  box-shadow: 0 12px 34px rgba(185, 135, 47, 0.14);
}

.option-card.featured.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(185, 135, 47, 0.18), 0 14px 38px rgba(24, 34, 45, 0.12);
}

.package-card {
  height: 100%;
}

.package-card.recommended {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, #f3fbf9 100%);
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.18);
}

.package-card.recommended.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.16), 0 18px 44px rgba(15, 118, 110, 0.22);
}

.package-card.recommended .badge {
  background: var(--accent);
}

.option-card img {
  flex: 0 0 auto;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #eef2f1;
  transition: transform 0.22s ease;
  cursor: zoom-in;
}

.option-card:hover img {
  transform: scale(1.06);
}

.option-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
}

.option-card strong {
  font-size: 15px;
  line-height: 1.25;
}

.option-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.price {
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.compare-price {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: line-through;
}

.savings {
  width: fit-content;
  padding: 5px 8px;
  color: var(--accent-dark);
  background: #e8f5f3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  color: #fff;
  background: var(--gold);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.choice-row,
.delivery-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.pill-choice,
.delivery-card {
  min-height: 72px;
  padding: 16px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.pill-choice.font-script,
.pill-choice.font-cursive {
  min-height: 78px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.pill-choice.font-script {
  font-family: "Lucida Calligraphy", "Segoe Script", cursive;
}

.pill-choice.font-cursive {
  font-family: "Edwardian Script ITC", "Monotype Corsiva", "Brush Script MT", cursive;
  font-style: italic;
}

.pill-choice.selected {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #34424d;
  font-size: 13px;
  font-weight: 900;
}

label em {
  color: var(--gold);
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cdd8d5;
  border-radius: 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

label.invalid input,
label.invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(163, 61, 61, 0.12);
}

[data-personalization-field].hidden,
[data-style-section].hidden,
.step-card.hidden {
  display: none;
}

.text-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.text-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 230px;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.text-card strong {
  color: var(--accent);
  font-size: 15px;
}

.text-card p {
  margin: 0;
  color: #34424d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
  max-height: 145px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 72%, transparent);
  mask-image: linear-gradient(#000 72%, transparent);
}

.read-more {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.file-panel,
.photo-upload,
.coverage-map,
.shipping-form {
  margin-top: 18px;
  padding: 16px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.file-panel p,
.photo-upload p,
.coverage-map p,
.fine-print {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.delivery-card {
  display: grid;
  gap: 7px;
}

.delivery-card strong {
  font-size: 16px;
}

.delivery-card span,
.delivery-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.coverage-grid figure {
  margin: 0;
}

.coverage-grid figcaption {
  margin-top: 8px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 900;
}

.coverage-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.photo-upload.hidden,
.shipping-form.hidden {
  display: none;
}

.summary {
  position: sticky;
  top: 92px;
  height: fit-content;
}

.summary-panel {
  padding: 22px;
  box-shadow: var(--shadow);
}

.order-id {
  display: inline-flex;
  margin: 12px 0 4px;
  padding: 8px 10px;
  color: var(--accent-dark);
  background: #e8f5f3;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.form-message {
  display: none;
  margin: 14px 0;
  padding: 12px;
  color: #7b2727;
  background: #fff0f0;
  border: 1px solid rgba(163, 61, 61, 0.26);
  border-radius: 12px;
  line-height: 1.4;
}

.form-message.show {
  display: block;
}

#summaryList {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.summary-item {
  display: grid;
  gap: 3px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f3;
}

.summary-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-item strong {
  font-size: 14px;
  line-height: 1.35;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  padding: 16px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.summary-total span {
  color: var(--muted);
  font-weight: 800;
}

.summary-total strong {
  color: var(--gold);
  font-size: 26px;
}

.confirm-note,
.payment-note {
  margin: 14px 0;
  padding: 13px;
  background: #fffaf0;
  border: 1px solid rgba(185, 135, 47, 0.28);
  border-radius: 12px;
  line-height: 1.45;
}

.confirm-note strong {
  display: block;
  margin-bottom: 4px;
  color: #7a551d;
}

.confirm-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.payment-note {
  color: #604016;
  font-size: 13px;
  font-weight: 800;
}

.actions {
  display: grid;
  gap: 10px;
}

.trust-list {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
  color: var(--accent-dark);
  background: #f2f8f6;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  color: #fff;
  background: var(--accent);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button,
.ghost-button {
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid #aac4c0;
}

.danger-button {
  color: var(--danger);
  background: #fff;
  border: 1px solid rgba(163, 61, 61, 0.25);
}

.privacy-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 14px 0 8px;
  padding: 12px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.privacy-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
}

label.invalid.privacy-consent {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(163, 61, 61, 0.12);
}

.privacy-consent a,
.fine-print a,
.privacy-page a {
  color: var(--accent);
  font-weight: 900;
}

.privacy-copy {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.fine-print {
  margin-top: 14px;
  font-size: 12px;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.header-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.privacy-main {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.privacy-page {
  padding: clamp(24px, 5vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.privacy-page h1 {
  margin: 6px 0 10px;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 58px);
  line-height: 0.95;
}

.privacy-page h2 {
  margin: 28px 0 10px;
  color: var(--accent-dark);
  font-size: clamp(20px, 3vw, 26px);
}

.privacy-page p,
.privacy-page li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.privacy-page ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.privacy-date {
  margin: 0 0 24px;
  color: var(--gold) !important;
  font-weight: 900;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 22px;
}

.preview-modal.open {
  display: grid;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.72);
}

.preview-dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(86vh, 760px);
  padding: 18px;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.preview-dialog img {
  display: block;
  width: 100%;
  max-height: 64vh;
  object-fit: contain;
  background: #f1f4f3;
  border-radius: 12px;
}

.preview-dialog img.hidden,
.preview-text.hidden {
  display: none;
}

.preview-text {
  margin: 0;
  padding: 18px;
  color: #26343d;
  background: #f7faf9;
  border-radius: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-line;
}

.preview-dialog h2 {
  margin: 14px 4px 0;
  font-size: 22px;
}

.preview-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: rgba(31, 41, 51, 0.82);
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 1060px) {
  .hero,
  .app-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-areas:
      "copy"
      "card";
  }

  .hero-card {
    justify-self: start;
  }

  .summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: center;
    flex-direction: column;
  }

  .brand {
    flex-direction: column;
  }

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

  .hero-card {
    width: min(100%, 260px);
    min-height: 0;
    padding: 16px;
  }

  .hero h1 {
    font-size: clamp(22px, 7vw, 26px);
    line-height: 1.12;
  }

  .hero-description {
    font-size: 14px;
    line-height: 1.38;
  }

  .hero-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-badge {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 11px;
  }

}

@media (max-width: 460px) {
  main {
    padding-inline: 12px;
  }

  .hero {
    padding: 16px;
    gap: 16px;
  }

  .hero-badges {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .product-grid.compact,
  .text-options {
    grid-template-columns: 1fr;
  }

  .package-card.recommended {
    order: -1;
  }
}
