@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("/_woff/v2/IBMPlexSansThai-Regular_1/IBMPlexSansThai-Regular_1.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("/_woff/v2/IBMPlexSansThai-Medium_1/IBMPlexSansThai-Medium_1.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Aboreto;
  src: url("/_woff/v2/Aboreto-Regular_1/Aboreto-Regular_1-english.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  font: 16px/1.6 "IBM Plex Sans Thai", system-ui, sans-serif;
  color: #1b1b1d;
  background: #eeeeef;
}

* { box-sizing: border-box; }

body {
  min-height: 100dvh;
  margin: 0;
  padding: 0 max(14px, env(safe-area-inset-right)) 44px max(14px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 24% 9%, #fff, transparent 55%),
    linear-gradient(150deg, #f8f8f8, #dfdfe1);
}

.site-header, .panel { width: min(100%, 39rem); margin-inline: auto; }
.site-header { display: flex; justify-content: flex-end; padding-block: 18px; }
.site-header nav { display: flex; align-items: center; gap: 8px; }

.glass {
  color: inherit;
  border: 1px solid #ffffffbc;
  background: linear-gradient(145deg, #ffffffe6, #ffffff60 68%, #ffffff96);
  box-shadow: inset 0 1px 1px #fff, 0 5px 18px #00000014;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  min-height: 44px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 500;
  text-decoration: none;
}

.pill:hover { background-color: #fff9; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #333;
  outline-offset: 3px;
}

.panel {
  padding: clamp(20px, 5vw, 34px);
  border-radius: clamp(20px, 4vw, 32px);
  box-shadow: inset 0 1px 1px #fff, 0 21px 60px #0002;
}

.intro { padding: 8px 0 24px; text-align: center; }
h1 { margin: 0; font: 400 clamp(2rem, 7vw, 3.25rem)/1.2 Aboreto, serif; }
html[lang="th"] h1 { font-family: inherit; font-weight: 500; }
.intro p { margin: 9px auto 0; max-width: 30rem; color: #444448; text-wrap: pretty; }

form { display: grid; gap: 18px; }
.types { min-width: 0; margin: 0; padding: 0; border: 0; }
legend, .field label { display: block; margin: 0 0 7px; font-weight: 500; }
.choices { display: flex; flex-wrap: wrap; gap: 7px; }
.choices label { display: flex; position: relative; cursor: pointer; }
.choices input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; }

.choices input:checked + span {
  color: #fff;
  border-color: #343436;
  background: linear-gradient(150deg, #424244, #242426);
  box-shadow: inset 0 1px 1px #ffffff37, 0 4px 12px #0002;
}

.choices input:focus-visible + span { outline: 2px solid #333; outline-offset: 3px; }
.field small, .hint { color: #4f4f54; font-size: .86rem; font-weight: 400; }
.hint { margin: 6px 0 0; }

.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 47px;
  padding: 10px 13px;
  color: #161618;
  border: 1px solid #73737780;
  border-radius: 15px;
  font: inherit;
  background: #ffffff9e;
  box-shadow: inset 0 1px 4px #0000000d;
}

.field input::placeholder { color: #535357; }
.field textarea { resize: vertical; }
.actions { display: grid; gap: 9px; }

.send {
  gap: 9px;
  min-height: 48px;
  color: #fff;
  border-color: #171719;
  background: linear-gradient(140deg, #39393b, #171719);
  font-family: inherit;
  cursor: pointer;
}

.send:hover { background: #3b3b3d; }
.send:disabled { opacity: .7; cursor: wait; }
#feedback-status { margin: 0; color: #36363a; }
#feedback-status:empty { display: none; }
#feedback-status[data-kind="error"] { font-weight: 500; }

@media (max-width: 480px) {
  body { padding-inline: 12px; }
  .pill { padding-inline: 11px; }
}

html.feedback-embedded { background: transparent; }
html.feedback-embedded body { padding: 0; background: transparent; }
html.feedback-embedded .site-header { display: none; }
html.feedback-embedded .panel {
  width: 100%;
  padding: 16px clamp(16px, 5vw, 25px) 23px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html.feedback-embedded .intro { padding: 10px 40px 20px; }
html.feedback-embedded h1 { font-size: clamp(1.5rem, 7vw, 2.05rem); }
html.feedback-embedded .intro p { margin-inline: -18px; }
html.feedback-embedded form { gap: 15px; }
html.feedback-embedded .choices .pill { padding-inline: 10px; font-size: .88rem; }

/* 2026-11-23 · Between the Lines styling: plum ink, soft glass controls, gold focus */
:root{--ink:#2b1a3a;--ink2:#4b2d63;--mute2:#6a5a78;--line2:rgba(75,45,99,.18)}
:root{color:var(--ink)}
.intro p,.field small,.hint{color:var(--mute2)}
legend,.field label{color:var(--ink);font-weight:500;letter-spacing:.01em}
.choices{gap:8px}
.choices .pill{min-height:40px;padding:7px 16px;color:var(--ink);border:1px solid rgba(255,255,255,.9);background:linear-gradient(160deg,rgba(255,255,255,.92),rgba(246,240,252,.6));box-shadow:inset 0 1px 0 #fff,0 2px 8px rgba(46,22,70,.08);transition:background .2s,box-shadow .2s,transform .15s}
.choices .pill:hover{background:#fff;box-shadow:inset 0 1px 0 #fff,0 4px 12px rgba(46,22,70,.12)}
.choices label:active .pill{transform:scale(.97)}
.choices input:checked + span{color:#fff;border-color:transparent;background:linear-gradient(150deg,var(--ink2),var(--ink));box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 6px 16px rgba(43,26,58,.28)}
.field input,.field textarea{border:1px solid var(--line2);border-radius:16px;background:rgba(255,255,255,.78);box-shadow:inset 0 1px 3px rgba(43,26,58,.06);transition:border-color .2s,box-shadow .2s,background .2s}
.field textarea{min-height:120px}
.field input:focus,.field textarea:focus{outline:none;border-color:rgba(75,45,99,.45);background:#fff;box-shadow:0 0 0 4px rgba(233,201,149,.35),inset 0 1px 3px rgba(43,26,58,.05)}
.field input::placeholder,.field textarea::placeholder{color:#9a8ca8}
.send{min-height:50px;border:0;color:#fff;background:linear-gradient(150deg,#5a3676,var(--ink));box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 10px 24px rgba(43,26,58,.28);transition:transform .15s,box-shadow .2s,filter .2s}
.send:hover{background:linear-gradient(150deg,#64407f,#33203f);filter:brightness(1.05)}
.send:active{transform:scale(.985)}
.send svg{opacity:.9}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,.choices input:focus-visible + span{outline:2px solid #c9a46a;outline-offset:3px}
#feedback-status{color:var(--ink2)}
#feedback-status[data-kind="success"]{padding:10px 14px;border-radius:14px;background:rgba(233,201,149,.22);color:var(--ink)}
html.feedback-embedded h1{color:var(--ink)}
