@font-face {
  font-family: "Spandoek Sans";
  src: url("assets/fonts/LiberationSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.custom-page { background: #f6f1e7; }

.custom-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr);
  gap: clamp(45px, 6vw, 95px);
  max-width: 1540px;
  margin: 0 auto;
  padding: 48px clamp(20px, 5vw, 72px) 90px;
}
.preview-column { min-width: 0; }
.preview-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.preview-heading .eyebrow { letter-spacing: normal; }
.preview-heading h1 { max-width: 720px; margin-bottom: 0; font-size: clamp(36px, 4vw, 62px); line-height: .98; }
.preview-heading > span { flex: none; padding: 8px 10px; background: var(--blue); color: white; font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.canvas-frame { padding: 0; background: transparent; box-shadow: 0 28px 52px rgba(17,16,14,.30), 0 8px 16px rgba(17,16,14,.22); transform: rotate(-.45deg); }
.flag-preview { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1006 / 506; overflow: hidden; background: linear-gradient(to bottom, #00469e 0 33.333%, #fff 33.333% 66.666%, #e30d27 66.666% 100%); }
.flag-preview span { position: relative; z-index: 1; display: block; color: #000; font-family: "Spandoek Sans", Arial, sans-serif; font-weight: 700; line-height: 1.08; text-align: center; white-space: pre; -webkit-text-stroke: .75px #000; }
.ring-row { position: absolute; left: 2.2%; right: 2.2%; z-index: 3; display: flex; justify-content: space-between; pointer-events: none; }
.ring-row-top { top: 2.4%; }
.ring-row-bottom { bottom: 2.4%; }
.ring-row i { width: clamp(12px, 1.55vw, 20px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #252525 0 27%, #e9e9e9 29% 42%, #777 45% 58%, #f7f7f7 61% 72%, #555 74% 100%); box-shadow: 0 1px 3px rgba(0,0,0,.65), inset 0 0 2px white; }
.custom-benefits { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 13px; font-weight: 800; }

.order-form { align-self: start; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 15px 45px rgba(17,16,14,.1); }
.order-form fieldset { min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
.order-form legend { width: 100%; margin-bottom: 18px; padding-bottom: 11px; border-bottom: 1px solid var(--line); font-family: "Arial Black", Arial, sans-serif; font-size: 22px; letter-spacing: -.035em; }
.preset-section { margin: 0 0 22px; }
.preset-label { display: block; margin-bottom: 10px; color: #5f5a52; font-size: 12px; line-height: 1.4; }
.preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.preset-button { min-height: 54px; padding: 10px 11px; background: var(--paper); border: 1px solid #aaa398; border-radius: 4px; color: var(--ink); cursor: pointer; font: inherit; font-size: 11px; font-weight: 800; line-height: 1.25; text-align: left; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.preset-button:hover { border-color: var(--blue); transform: translateY(-1px); }
.preset-button:focus-visible { outline: 3px solid rgba(11,76,156,.22); outline-offset: 1px; }
.preset-button.is-active { background: #fff3bf; border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.order-form label:not(.consent) { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.order-form input[type="text"], .order-form input[type="email"], .order-form textarea { width: 100%; padding: 13px 14px; background: #fffdf8; border: 1px solid #aaa398; border-radius: 4px; color: var(--ink); font: inherit; font-size: 16px; }
.order-form textarea { resize: vertical; min-height: 100px; line-height: 1.4; }
.order-form input:focus, .order-form textarea:focus { outline: 3px solid rgba(11,76,156,.22); border-color: var(--blue); }
.field-help { display: flex; justify-content: space-between; gap: 16px; margin-top: 7px; color: #6e675e; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.full-field { grid-column: 1 / -1; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.test-notice { display: flex; flex-direction: column; gap: 3px; margin-bottom: 25px; padding: 13px 15px; background: #fff3bf; border-left: 4px solid #e0a800; font-size: 12px; line-height: 1.4; }
.test-notice strong { text-transform: uppercase; letter-spacing: .08em; }
.order-summary { display: grid; gap: 10px; margin: 5px 0 22px; padding: 18px; background: var(--paper); }
.order-summary > div { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
.order-total { margin-top: 4px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 17px !important; }
.order-total strong { font-family: "Arial Black", Arial, sans-serif; }
.consent { display: grid; grid-template-columns: 19px 1fr; gap: 10px; align-items: start; margin: 0 0 20px; color: #4e4942; font-size: 12px; line-height: 1.45; }
.consent[hidden] { display: none; }
.consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.delivery-urgency { margin: 0 0 11px; color: #18713a; font-size: 13px; font-weight: 900; text-align: center; }
.submit-order { width: 100%; border: 0; cursor: pointer; }
.submit-order:disabled { cursor: wait; opacity: .62; transform: none; }
.submit-help { margin: 13px 0 0; color: #6e675e; font-size: 11px; text-align: center; }
.order-form .payment-trust { margin-top: 12px; text-align: center; }
.form-message { min-height: 20px; margin-top: 13px; font-size: 13px; font-weight: 800; text-align: center; }
.form-message.is-error { color: var(--red-dark); }
.form-message.is-success { color: #18713a; }

.custom-assurance { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--blue); color: white; }
.custom-assurance > div { display: flex; flex-direction: column; gap: 5px; padding: 30px clamp(22px, 5vw, 72px); border-right: 1px solid rgba(255,255,255,.24); }
.custom-assurance strong { font-size: 16px; }
.custom-assurance span { color: rgba(255,255,255,.75); font-size: 12px; line-height: 1.4; }

.return-card { max-width: 850px; min-height: 70vh; margin: 0 auto; padding: 110px 24px; text-align: center; }
.return-card h1 { margin-bottom: 24px; font-size: clamp(48px, 7vw, 90px); line-height: .92; }
.return-card > p:not(.eyebrow) { max-width: 620px; margin: 0 auto; font-size: 20px; line-height: 1.5; }
.order-preview { width: min(100%, 590px); margin: 34px auto 0; }
.order-preview-frame { aspect-ratio: 1006 / 506; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 34px rgba(17,16,14,.18); }
.order-preview object { display: block; width: 100%; height: 100%; border: 0; }
.order-preview figcaption { margin-top: 10px; color: #625d55; font-size: 13px; font-weight: 800; }
.return-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 32px; }
.button-secondary { background: white; border-color: var(--ink); }

@media (max-width: 1050px) {
  .custom-builder { grid-template-columns: 1fr; }
  .order-form { max-width: 720px; width: 100%; margin: 0 auto; }
}

@media (max-width: 760px) {
  .custom-page { padding-bottom: 0; }
  .custom-builder { padding: 42px 15px 85px; }
  .preview-heading { align-items: flex-start; flex-direction: column; }
  .preview-heading h1 { font-size: 39px; }
  .canvas-frame { padding: 0; }
  .custom-benefits { display: grid; gap: 8px; }
  .order-form { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .preset-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .custom-assurance { grid-template-columns: 1fr; }
  .custom-assurance > div { padding: 22px 20px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.24); }
}
