:root {
  color-scheme: light;
  font: 16px/1.6 system-ui, "PingFang TC", sans-serif;
  color: #0b3045;
  background: #f5f9f8;
  --teal: #00675e;
  --border: #c8d9d8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px max(16px, calc((100% - 880px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.brand img { flex: none; object-fit: contain; }
main { width: min(100% - 28px, 880px); margin: 24px auto 48px; }
.intro {
  padding: clamp(20px, 5vw, 42px);
  border-radius: 16px;
  background: #0b3045;
  color: white;
  border-bottom: 5px solid #efbd4a;
}
h1, h2 { line-height: 1.25; margin: 0 0 8px; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
p { margin: 0 0 14px; }
.intro p { margin: 0; color: #e5f5f2; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 3px;
  text-align: center;
  font-size: .875rem;
}
.steps span {
  border-radius: 50%;
  width: 24px;
  text-align: center;
  background: #e1eeeb;
}
.steps [aria-current] { color: var(--teal); font-weight: 750; }
.steps [aria-current] span { background: var(--teal); color: white; }
.panel { padding: clamp(16px, 4vw, 32px); border: 1px solid var(--border); border-radius: 16px; background: white; }
.fields, #course-list { display: grid; gap: 12px; }
label, legend { font-weight: 650; }
input, button, select { font: inherit; }
select, input[type="email"], input[type="date"] {
  display: block;
  margin-top: 6px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #829d9c;
  border-radius: 8px;
  background: white;
  color: inherit;
  padding: 8px 10px;
}
input:is([type="checkbox"], [type="radio"]) { accent-color: var(--teal); flex: none; }
fieldset { min-width: 0; margin: 16px 0; padding: 0; border: 0; }
legend { margin-bottom: 8px; padding: 0; }
.filters label { display: inline-flex; align-items: center; min-height: 44px; margin-right: 10px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.choice:has(:checked) { background: #e8f6f3; border-color: var(--teal); }
.choice input { margin-top: 5px; }
.choice small { display: block; font-weight: 500; }
.date { display: block; max-width: 20rem; }
.notice { background: #fff5d9; border-left: 4px solid #efbd4a; padding: 10px 12px; margin: 16px 0; }
dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; }
dt { font-weight: 650; }
dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px; }
button { padding: 9px 14px; min-height: 44px; border: 1px solid transparent; border-radius: 8px; color: white; background: var(--teal); font-weight: 700; cursor: pointer; }
button.secondary { color: var(--teal); background: white; border-color: var(--teal); }
button:disabled { background: #e7ecee; color: #465860; cursor: not-allowed; }
:focus-visible { outline: 3px solid #177e8a; outline-offset: 3px; }
@media (min-width: 640px) {
  .fields, #course-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* HIKARI contact form preview */
:root {
  --teal: #006d67;
  --border: #d5e5df;
  --navy: #15384c;
  --gold: #eac064;
}
body {
  color: var(--navy);
  background: #f3f9f6;
  font-size: 16px;
  line-height: 1.6;
  font-family: system-ui, -apple-system, "PingFang TC", sans-serif;
}
[hidden] { display: none !important; }
.brand {
  background: #fff;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}
.brand strong { font-size: 1rem; overflow-wrap: anywhere; }
main { max-width: 54rem; }
.intro {
  background: #e5f4ed;
  color: var(--navy);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 20px;
  padding: clamp(20px, 5vw, 36px);
  margin-bottom: 20px;
}
.intro h1 { font-size: clamp(1.85rem, 5vw, 2.65rem); line-height: 1.2; margin: 0; }
.intro .intro-note { margin: 8px 0 0; color: var(--navy); }
#preview-label { color: #355c55; margin: 10px 0 0; }
.panel { border-radius: 20px; box-shadow: 0 8px 26px #15384c0a; }
.panel h2 { margin: 0 0 16px; line-height: 1.25; }
.fields, #course-list { gap: 16px; }
select, input[type="email"], input[type="date"], #line-id {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin-top: 6px;
  padding: 8px 12px;
  border: 1px solid #57766b;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font: inherit;
}
.choice { padding: 14px; }
.choice small, #line-hint { font-size: 1rem; color: #34545a; }
.contact-block { display: grid; gap: 14px; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 24px; }
.contact-block h3 { margin: 0; font-size: 1.25rem; }
.line-alternative { background: #eff7f2; border-radius: 12px; padding: 14px; }
.line-alternative a { color: var(--teal); font-weight: 750; text-underline-offset: 4px; }
#summary { padding: 14px; border-radius: 12px; background: #f4f8f8; }
.privacy { margin: 20px 0; }
.privacy label { display: flex; align-items: baseline; gap: 8px; }
.actions { gap: 12px; }
.actions button { min-height: 48px; border-radius: 10px; }
#submit-trial { font-weight: 800; }
#trial-turnstile:not(:empty) { margin-block: 16px; }
#trial-turnstile { min-width: 0; max-width: 100%; overflow: auto; }
#trial-result:not(:empty) { padding: 12px; border-radius: 10px; border: 1px solid #a8c9bb; background: #edf7f1; font-weight: 650; }
@media (max-width: 480px) {
  .steps { gap: 4px; }
  .steps li { font-size: 0.875rem; }
  .actions button:not(.secondary) { flex: 1; }
}

/* Keep input hints and control edges readable against the light form surfaces. */
input::placeholder { color: #536870; opacity: 1; }
.choice { border-color: #57766b; }
button:not(:disabled):hover { background: #00554f; }
button.secondary:not(:disabled):hover { background: #e8f6f3; }
.line-alternative a:hover { color: #00554f; }
