:root {
  color-scheme: light;
  --canvas: #edf3f3;
  --paper: #ffffff;
  --ink: #102e32;
  --muted: #475d61;
  --accent: #006b61;
  --accent-dark: #00564f;
  --line: #cad9da;
  --field-border: #829b9c;
  --danger: #9a311d;
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, Thonburi, system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.65;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
p { margin: 0 0 0.75rem; }
h1, h2, h3, legend, .prompt { line-height: 1.46; }
h1 { margin: 0 0 1.25rem; font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { margin: 0 0 1.2rem; font-size: clamp(1.3rem, 3vw, 1.55rem); }
h3 { font-size: 1.05rem; margin: 1.3rem 0 0.55rem; }
a { color: var(--accent-dark); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid #167b70; outline-offset: 3px; }
.container { max-width: 53rem; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.hero { padding-block: clamp(1.75rem, 6vw, 3.5rem); color: white; background: #123239; }
.eyebrow { margin-bottom: 0.55rem; color: #acf0df; font-weight: 700; }
.job-info { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem 1.5rem; color: #e3f6f2; }
.job-info strong { display: inline-block; margin-right: 0.3em; color: #acf0df; }
.intro { padding-block: 1.45rem 0.65rem; max-width: 44rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1rem, 4vw, 2rem);
  margin-bottom: 1rem;
}
.card > h2 { display: flex; align-items: baseline; gap: 0.65rem; }
.section-number { font-size: 0.9rem; color: var(--accent-dark); background: #ddf3ed; border-radius: 0.42rem; padding: 0.13em 0.58em; align-self: center; }
.muted, .hint { color: var(--muted); font-size: 0.94rem; }
.required { color: var(--danger); }
.grid { display: grid; gap: 0 0.9rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: 0.6fr 1fr 1fr; }
.field { margin-bottom: 0.9rem; min-width: 0; }
.field > label, .prompt, legend { font-weight: 700; }
.field > label { display: block; margin-bottom: 0.3rem; }
input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), textarea {
  display: block;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 2.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--field-border);
  border-radius: 0.55rem;
  padding: 0.55rem 0.8rem;
}
textarea { resize: vertical; }
fieldset { min-width: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 0.55rem; }
.question { margin: 1.35rem 0 0.95rem; }
.question.first { margin-top: 0; }
.choices { display: grid; gap: 0.42rem; }
.choice {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.55rem 0.7rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  cursor: pointer;
}
.choice input { margin: 0; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--accent); align-self: center; }
.choice:has(input:checked) { background: #e6f6f1; border-color: var(--accent); }
.habits { display: grid; gap: 0.9rem; }
.habit { margin: 0; }
.habit + .habit { border-top: 1px solid var(--line); }
.habit legend { float: inline-start; width: 100%; font-weight: 500; margin: 0.45rem 0; }
.scales { display: grid; clear: both; grid-template-columns: repeat(4, minmax(0, 4.65rem)); gap: 0.4rem; }
.scales .choice { justify-content: center; gap: 0.4rem; }
.room-status { width: 100%; border-collapse: collapse; margin: 0 0 0.7rem; }
.room-status th, .room-status td { text-align: left; padding: 0.38rem 0.7rem; border-bottom: 1px solid var(--line); }
.room-status thead { background: var(--canvas); }
.submit-bar { padding: 0.3rem 0 2.5rem; }
.button {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 1.05rem;
  border: 1px solid var(--accent);
  border-radius: 0.55rem;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-dark); color: white; }
.button.secondary { background: var(--paper); color: var(--accent-dark); }
.button.secondary:hover { background: #e6f6f1; }
.error-summary { background: #fff3ee; border: 1px solid #cb8b7b; color: var(--danger); border-radius: 0.8rem; padding: 0.85rem 1rem; margin-bottom: 1rem; }
.error-summary ul { margin-bottom: 0; padding-inline-start: 1.4rem; }
.error-summary a, .field-error { color: var(--danger); }
.field-error { margin: 0.3rem 0 0; font-size: 0.94rem; }
.confirmation { max-width: 46rem; padding-top: clamp(1rem, 5vw, 3rem); padding-bottom: 2rem; }
.confirmation-header { border-radius: 1rem; padding: clamp(1rem, 4vw, 2rem); margin-bottom: 1rem; }
.confirmation-header h1 { margin-bottom: 0.45rem; }
.confirmation-header p:last-child { margin-bottom: 0; }
.contact-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.contact-option { background: var(--canvas); padding: 1rem; border-radius: 0.7rem; }
.contact-option .muted { margin-bottom: 0.1rem; }
.contact-value { font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }
.copy-status { margin: 0.4rem 0 0; color: var(--accent-dark); }
blockquote { margin: 0 0 0.75rem; padding: 0.55rem 0 0.55rem 0.8rem; border-left: 3px solid #91c9bf; }
blockquote p { margin: 0; }

@media (max-width: 34rem) {
  .job-info { display: grid; }
  .grid.two, .contact-options { grid-template-columns: 1fr; }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .submit-bar .button { width: 100%; }
  .contact-option .button { width: 100%; }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.8rem;
  margin-bottom: 0.65rem;
}
.hero-meta .eyebrow { margin: 0; }
.language-switch {
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.18rem;
  border: 1px solid #668d90;
  border-radius: 0.6rem;
}
.language-switch button {
  min-width: 3rem;
  min-height: 2.25rem;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 0.38rem;
  color: white;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] { color: #123239; background: #acf0df; }
.language-switch button:focus-visible { outline-color: #acf0df; }
.preview-note { background: #d6eee8; color: #123239; border-radius: 0.55rem; padding: 0.6rem 0.85rem; font-weight: 700; }
