@font-face { font-family: "Noto Sans Thai"; font-weight: 400; font-display: swap; src: url(/fonts/noto-sans-thai-thai-400-normal.woff2) format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-weight: 400; font-display: swap; src: url(/fonts/noto-sans-thai-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Thai"; font-weight: 500; font-display: swap; src: url(/fonts/noto-sans-thai-thai-500-normal.woff2) format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-weight: 500; font-display: swap; src: url(/fonts/noto-sans-thai-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Thai"; font-weight: 600; font-display: swap; src: url(/fonts/noto-sans-thai-thai-600-normal.woff2) format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-weight: 600; font-display: swap; src: url(/fonts/noto-sans-thai-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Thai"; font-weight: 700; font-display: swap; src: url(/fonts/noto-sans-thai-thai-700-normal.woff2) format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-weight: 700; font-display: swap; src: url(/fonts/noto-sans-thai-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Tokens from design/register.pen. */
:root {
  --ink: #0a0a0a; --paper: #faf8f4; --stone: #6e6a66; --signal: #d9703e; --mist: #d9d3c9; --white: #fff; --rule: #c9c3b8;
  --control-border: #8f8a84; --success: #1f8a4c; --success-ink: #14663a; --success-soft: #e3f3e8; --danger: #c62828; --danger-soft: #fceae8;
  --image-outline: #0000001a; --radius-input: 12px; --radius-card: 16px; --gutter: 20px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 "Noto Sans Thai", "Noto Sans", sans-serif; -webkit-text-size-adjust: 100%; }
h1, h2, p, ul, fieldset { margin: 0; padding: 0; }
img { display: block; object-fit: contain; }
strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px var(--gutter); max-width: 1440px; margin: 0 auto; }
.badge { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--success-soft); color: var(--success-ink); font-size: 12px; font-weight: 600; line-height: 1.4; }
.badge::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 600px; margin: 0 auto; padding: 8px var(--gutter) 32px; }
.offer, .panel { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.hero { display: flex; flex-direction: column; gap: 6px; }
h1 { font-size: 28px; line-height: 1.25; }
.products-line { color: var(--signal); font-size: 22px; font-weight: 700; line-height: 1.4; }
.intro { color: var(--stone); font-size: 15px; }
.title { font-size: 18px; font-weight: 700; line-height: 1.4; }
.hint { color: var(--stone); font-size: 13px; font-weight: 400; line-height: 1.4; }
.mark { color: var(--danger); font-weight: 700; }

fieldset { border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; }
legend .hint { margin-left: 4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.card { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-card); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.card:has(:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.card:has(:focus-visible) { outline: 2px solid var(--signal); outline-offset: 3px; }
.invalid .card { border-color: var(--danger); box-shadow: 0 0 0 0.5px var(--danger); }
.info { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.head img { min-width: 0; flex: 0 1 auto; object-position: left; }
.card input { appearance: none; -webkit-appearance: none; flex: none; width: 28px; height: 28px; margin: 0; background: var(--white) center / 18px no-repeat; border: 1.5px solid var(--control-border); border-radius: 8px; outline: 0; cursor: pointer; }
.card input:checked { background-color: var(--ink); border-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.price { display: flex; flex-direction: column; gap: 2px; }
.price strong { font-weight: 600; line-height: 1.4; }
.price .free { color: var(--success); font-size: 28px; font-weight: 700; line-height: 1.25; }
.shot { flex: none; width: 88px; height: 176px; object-fit: cover; object-position: top; border: 1px solid var(--image-outline); border-radius: 12px; }
.photos { display: none; }

.contact { display: flex; flex-direction: column; gap: 16px; }
.heading { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; line-height: 1.4; }
.field input, textarea { display: block; width: 100%; min-width: 0; height: 52px; margin: 0; padding: 0 16px; background: var(--white); color: var(--ink); border: 1px solid var(--control-border); border-radius: var(--radius-input); font: inherit; appearance: none; -webkit-appearance: none; }
textarea { height: 104px; padding: 14px 16px; resize: vertical; }
::placeholder { color: var(--stone); opacity: 1; }
.field input:focus, textarea:focus { outline: 0; border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.invalid input:not([type="checkbox"]), .invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 0.5px var(--danger); }
.date { position: relative; }
.date span { position: absolute; left: 17px; top: 14px; line-height: 1.5; color: var(--stone); pointer-events: none; }
.date svg { position: absolute; right: 17px; top: 16px; color: var(--stone); pointer-events: none; }
.date:not(.empty) span, .date:focus-within span { display: none; }
.date.empty input:not(:focus) { color: transparent; }
.date.empty input:not(:focus)::-webkit-datetime-edit { color: transparent; }
.date input::-webkit-date-and-time-value { text-align: left; }
/* The whole of the drawn icon's corner opens the browser's own picker. */
.date input::-webkit-calendar-picker-indicator { opacity: 0; width: 28px; height: 28px; margin: 0; cursor: pointer; }
.error { display: flex; align-items: center; gap: 6px; color: var(--danger); font-size: 13px; font-weight: 500; line-height: 1.4; }
.error svg, .banner svg { flex: none; }
.picker .error { margin-top: 12px; }

.submit { display: flex; flex-direction: column; gap: 16px; }
#turnstile { min-height: 65px; }
.banner { display: flex; gap: 10px; padding: 14px; background: var(--danger-soft); border: 1px solid var(--danger); border-radius: 12px; color: var(--danger); }
.banner strong { display: block; font-size: 15px; line-height: 1.4; }
.banner p { color: var(--ink); font-size: 13px; }
button, .back { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 56px; border-radius: var(--radius-input); font: 700 16px/1.4 "Noto Sans Thai", "Noto Sans", sans-serif; cursor: pointer; }
button { background: var(--ink); color: var(--white); border: 0; }
button:disabled { opacity: 0.6; cursor: default; }

#thanks { display: flex; flex-direction: column; gap: 24px; max-width: 430px; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); margin: 0 auto; padding: 40px var(--gutter) 32px; text-align: center; }
.done { display: flex; flex-direction: column; align-items: center; gap: 24px; flex: 1; }
.done h1:focus { outline: 0; }
.tick { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--success); color: var(--white); }
.lead { margin-top: 8px; color: var(--success-ink); font-size: 18px; font-weight: 600; line-height: 1.4; }
.detail { margin-top: 8px; color: var(--stone); font-size: 15px; }
#thanks ul { align-self: stretch; list-style: none; padding: 4px 16px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-card); }
#thanks li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; }
#thanks li:not([hidden]) ~ li { border-top: 1px solid var(--mist); }
#thanks li span { padding: 4px 12px; border-radius: 999px; background: var(--success-soft); color: var(--success-ink); font-size: 13px; font-weight: 700; line-height: 1.4; }
.back { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); text-decoration: none; }

@media (min-width: 1000px) {
  :root { --gutter: clamp(40px, 5.5vw, 80px); }
  form { grid-template-columns: minmax(0, 1fr) clamp(420px, 36vw, 480px); align-items: start; gap: clamp(40px, 4.5vw, 64px); max-width: 1440px; padding: 32px var(--gutter) 80px; }
  .hero { gap: 12px; }
  .offer h1 { font-size: clamp(36px, 3.34vw, 48px); }
  .products-line { font-size: 28px; }
  .intro { font-size: 16px; }
  .cards { gap: 16px; }
  .photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .photos img { width: 100%; height: 220px; object-fit: cover; border: 1px solid var(--image-outline); border-radius: var(--radius-card); }
  .panel { padding: 32px; background: var(--white); border: 1px solid var(--rule); border-radius: 24px; }
}
