:root {
  --bg: #0a0f16;
  --bg-card: #121a24;
  --border: #223142;
  --text: #eaf2f6;
  --text-dim: #93a5b5;
  --accent: #4fd1c5;
  --accent-2: #5b8def;
  --accent-ink: #062023;
  --danger: #ff8a7a;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

:root[data-theme="light"] {
  --bg: #f4f8f9;
  --bg-card: #ffffff;
  --border: #dbe6e8;
  --text: #0f1b22;
  --text-dim: #566b76;
  --accent: #0f9b8e;
  --accent-2: #3f6fd6;
  --accent-ink: #ffffff;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f8f9;
    --bg-card: #ffffff;
    --border: #dbe6e8;
    --text: #0f1b22;
    --text-dim: #566b76;
    --accent: #0f9b8e;
    --accent-2: #3f6fd6;
    --accent-ink: #ffffff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.brand-mark { width: 20px; height: 20px; flex-shrink: 0; }
.brand-mark circle { fill: var(--accent); }
.brand-mark line { stroke: var(--accent); stroke-width: 1.5; }

.brand-word {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.hero-text { flex: 1; min-width: 0; }

.hero-figure {
  flex-shrink: 0;
  width: 132px;
  filter: drop-shadow(0 12px 28px rgba(79, 209, 197, 0.25));
}

.hero-figure img { width: 100%; display: block; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  margin: 0 0 14px;
  text-wrap: balance;
}

.lede {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
  max-width: 52ch;
}

.deadline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.deadline-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.deadline-row span { color: var(--text-dim); }
.deadline-row strong { font-weight: 700; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.field { display: flex; flex-direction: column; gap: 10px; }

label, .group-label {
  font-size: 14px;
  font-weight: 600;
}

.req { color: var(--danger); }

input[type="text"], textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  width: 100%;
}

input[type="text"]:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

textarea { resize: vertical; min-height: 64px; }

.etc-input { margin-top: 4px; }

.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.option:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.option input { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }

button#submit-btn {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

button#submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

button#submit-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.status {
  margin: 0;
  font-size: 14px;
  min-height: 20px;
}

.status[data-state="ok"] { color: #4fbf7a; }
.status[data-state="err"] { color: var(--danger); }

.footer {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
}

.footer .powered { font-weight: 600; }
.footer .powered strong { color: var(--text); }

@media (max-width: 480px) {
  .hero { flex-direction: column-reverse; text-align: center; }
  .hero-figure { width: 108px; }
  .lede { max-width: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .option { transition: border-color 0.15s ease, background 0.15s ease; }
}
.calendar {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cal-month { flex: 1; min-width: 220px; }

.cal-month-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-dow {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  padding-bottom: 4px;
}

.cal-day {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-day.weekend { color: var(--danger); }
.cal-day.past { opacity: 0.25; cursor: not-allowed; }

.cal-day.selected {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  border-color: transparent;
  font-weight: 700;
}

.selected-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  min-height: 20px;
}

.date-chip {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid var(--accent);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.hero-figure img { height: auto; }

.program {
  margin-bottom: 32px;
}

.program-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.program-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.program-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.program-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.program-list strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.program-list p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}
