@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&display=swap');

:root{
  --ink:#151515;
  --text:#2b2b2b;
  --muted:#777b80;
  --light:#f6f6f6;
  --line:#e4e4e4;
  --line-soft:#efefef;
  --orange:#f47a1f;
  --orange-soft:#fff5ed;
  --card:#ffffff;
  --field:#fcfcfc;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Kanit", "Noto Sans Thai", sans-serif;
  color:var(--text);
  background:#f3f3f3;
  font-size:15px;
  font-weight:400;
}
body.author-theme{--accent:#f47a1f;--accent-soft:#fff5ed;--accent-border:#f4d3b6}
body.book-theme{--accent:#49a942;--accent-soft:#f1faef;--accent-border:#bfe6b9}
a{color:inherit}
.top-hero{
  height:250px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.18), rgba(255,255,255,.04)),
    #dddddd url('../assets/header.jpg') center/cover no-repeat;
  border-bottom:1px solid #d8d8d8;
}
.page-shell{width:min(820px,calc(100% - 32px));margin:-82px auto 52px}
.landing-shell{width:min(880px,calc(100% - 32px));margin:-82px auto 52px}
.top-back-link{
  position:fixed;
  top:18px;
  left:22px;
  z-index:10;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  color:#333;
  text-decoration:none;
  font-size:13px;
  font-weight:500;
  backdrop-filter:blur(10px);
}
.top-back-link:hover{color:var(--accent, var(--orange));background:#fff}
.form-card,.landing-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 10px 32px rgba(0,0,0,.06);
  overflow:hidden;
}
.form-inner,.landing-inner{padding:34px 42px 38px}
.brand-block{
  text-align:center;
  padding:32px 24px 24px;
  background:#fff;
  border-bottom:1px solid var(--line-soft)
}
.brand-block img{display:block;margin:0 auto 14px;max-width:170px;width:34%;min-width:118px;height:auto}
.brand-block .kicker{
  color:var(--accent, var(--orange));
  font-size:11px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:8px
}
h1{
  margin:0;
  color:var(--ink);
  font-size:31px;
  line-height:1.15;
  font-weight:700;
  letter-spacing:-.01em
}
.brand-block p{
  width:min(660px,100%);
  margin:10px auto 0;
  color:var(--muted);
  line-height:1.75;
  font-size:14px
}
.small-link{display:inline-flex;gap:6px;align-items:center;margin-top:12px;color:#626262;text-decoration:none;font-weight:500;font-size:13px}
.small-link:hover{color:var(--orange)}
.form-note-required{margin-top:12px;color:#8b8b8b;font-size:12px;font-weight:400}
.form-note-required .req{font-size:13px}

.section{padding:28px 0;border-top:1px solid var(--line-soft)}
.section:first-child{border-top:none;padding-top:0}
.section-title{display:flex;align-items:flex-start;gap:10px;margin:0 0 16px}
.section-title .num{
  width:26px;height:26px;flex:0 0 26px;
  border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  background:var(--accent-soft, var(--orange-soft));color:var(--accent, var(--orange));font-weight:600;font-size:12px;
  border:1px solid var(--accent-border, #f4d3b6);
}
h2{font-size:16px;line-height:1.25;margin:0;color:var(--accent, var(--orange));font-weight:500}
.hint{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.65}
.grid{display:grid;gap:16px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
label{display:block;font-weight:400;color:#333;font-size:13px;line-height:1.45}
.req{color:var(--accent, var(--orange));font-weight:700}
input,select,textarea{
  width:100%;margin-top:8px;border:1px solid #d6d6d6;border-radius:8px;background:var(--field);
  padding:12px 13px;font:inherit;color:var(--ink);outline:none;transition:border-color .15s,box-shadow .15s,background .15s;
}
textarea{resize:vertical;min-height:100px}
select{appearance:auto}
input:focus,select:focus,textarea:focus{border-color:var(--accent, var(--orange));background:#fff;box-shadow:0 0 0 3px rgba(63,111,86,.12)}
input[type=file]{background:#fff;padding:10px;border-style:dashed}
.note-box{
  background:#fbfbfb;border:1px solid var(--line);border-left:3px solid var(--accent, var(--orange));
  padding:14px 16px;margin:18px 0 0;color:#5e5e5e;line-height:1.7;font-size:13px;border-radius:8px
}
.consent{background:#fbfbfb;border:1px solid var(--line);padding:16px 18px;border-radius:10px}
.consent label{display:block;font-weight:400;color:#333;font-size:13px;line-height:1.45}
.consent input{width:auto;margin:4px 0 0;flex:0 0 auto}
.form-actions{
  display:flex;gap:10px;justify-content:flex-end;align-items:center;padding:18px 42px;background:#fafafa;border-top:1px solid var(--line)
}
button,.ghost,.choice-card{border:0;border-radius:8px;font-weight:600;cursor:pointer;text-decoration:none;font:inherit}
.primary,button[type=submit]{background:var(--accent, var(--orange));color:white;padding:12px 22px;min-width:160px;border-radius:8px;font-weight:600}
.primary:hover,button[type=submit]:hover{background:#df6711}
.ghost{background:#fff;color:#444;border:1px solid #d1d1d1;padding:11px 18px}
.ghost:hover{border-color:#aaa}
.status{margin:16px 42px 0;color:var(--muted);font-weight:500}.status.ok{color:#16824b}.status.err{color:#c23b2b}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.choice-card{
  display:block;background:#fff;border:1px solid var(--line);padding:24px;color:var(--text);min-height:150px;
  transition:transform .15s,box-shadow .15s,border-color .15s;border-radius:12px
}
.choice-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.05);border-color:#d0d0d0}
.choice-card .label{display:block;font-weight:400;color:#333;font-size:13px;line-height:1.45}
.choice-card strong{display:block;color:#111;font-size:22px;line-height:1.3;margin-bottom:8px;font-weight:600}
.choice-card small{display:block;color:var(--muted);line-height:1.7;font-size:14px}
.footer-note{text-align:center;color:#8a8a8a;font-size:12px;margin-top:18px;font-weight:400}

@media(max-width:720px){
  .top-back-link{position:absolute;top:12px;left:12px;padding:8px 11px}
  .top-hero{height:180px;background-position:center center}
  .page-shell,.landing-shell{width:min(100% - 20px,840px);margin-top:-46px}
  .form-inner,.landing-inner{padding:24px 20px 28px}
  .brand-block{
  text-align:center;
  padding:32px 24px 24px;
  background:#fff;
  border-bottom:1px solid var(--line-soft)
}
  .brand-block img{width:50%;min-width:120px}
  h1{
  margin:0;
  color:var(--ink);
  font-size:31px;
  line-height:1.15;
  font-weight:700;
  letter-spacing:-.01em
}
  .grid.two,.choice-grid{grid-template-columns:1fr}
  .form-actions{padding:16px 20px;flex-wrap:wrap}
  .form-actions>*{flex:1 1 auto;text-align:center}
  .primary,button[type=submit]{background:var(--accent, var(--orange));color:white;padding:12px 22px;min-width:160px;border-radius:8px;font-weight:600}
  .status{margin-left:20px;margin-right:20px}
  .section{padding:24px 0}
}

.section-note{
  margin:5px 0 0;
  color:#8a8a8a;
  font-size:12px;
  font-weight:300;
  line-height:1.55;
}

.section-title .num{display:none !important}

.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.option-group{
  display:grid;
  gap:12px;
}
.option-prompt{
  color:#333;
  font-size:14px;
  font-weight:400;
  line-height:1.55;
  margin-bottom:2px;
}
.option-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  font-size:13px;
  font-weight:400;
}
.option-row input[type="radio"],
.option-row input[type="checkbox"]{
  width:auto;
  margin:3px 0 0;
  flex:0 0 auto;
}
.option-row span{
  line-height:1.6;
}
.option-other{
  align-items:center;
  flex-wrap:wrap;
}
.inline-field{
  flex:1 1 220px;
  margin:0;
  min-width:180px;
}
@media(max-width:720px){
  .grid.three{grid-template-columns:1fr}
}

body.author-theme input:focus,
body.author-theme select:focus,
body.author-theme textarea:focus{box-shadow:0 0 0 3px rgba(244,122,31,.10)}
body.book-theme input:focus,
body.book-theme select:focus,
body.book-theme textarea:focus{box-shadow:0 0 0 3px rgba(63,111,86,.12)}
body.book-theme .primary:hover,
body.book-theme button[type=submit]:hover{background:#345f49}

.field-help{
  display:block;
  color:#8a8a8a;
  font-size:12px;
  font-weight:300;
  line-height:1.6;
  margin-top:4px;
}
.optional-note{
  color:#8a8a8a;
  font-size:12px;
  font-weight:300;
}

/* v9 landing color cards */
.choice-card{
  text-align:center;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}
.choice-card.author-card strong{color:#f47a1f}
.choice-card.author-card:hover{border-color:#f4c09a}
.choice-card.book-card strong{color:#49a942}
.choice-card.book-card:hover{border-color:#bfe6b9}
.choice-card small{max-width:300px}

/* v9 refinements */
.book-description-field .field-help{
  margin-top:10px;
  margin-bottom:8px;
}

/* v10 form title/color refinements */
body.author-theme .brand-block h1{color:#f47a1f}
body.book-theme .brand-block h1{color:#49a942}
body:not(.author-theme):not(.book-theme) .brand-block h1{color:var(--ink)}
.brand-block .kicker{display:none}
.inline-help{
  color:#8a8a8a;
  font-size:12px;
  font-weight:300;
  line-height:1.6;
}
.book-description-field{
  display:block;
  margin-top:18px;
}
.book-description-field textarea{
  margin-top:10px;
}
