:root {
  --ink: #3A2E28;
  --ink-soft: #6B5D53;
  --ivory: #FBF6EF;
  --ivory-deep: #F3EBDD;
  --sienna: #B5502F;
  --sienna-deep: #93401F;
  --sage: #6B7A5E;
  --gold: #D4A857;
  --line: #E4D9C7;
  --white: #FFFFFF;
  --error: #B5502F;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", -apple-system, sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- HERO ---------- */
.hero {
  padding: 64px 28px 48px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero-inner { max-width: 480px; margin: 0 auto; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sienna);
  margin: 0 0 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(38px, 8vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--ink);
}

.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 30px;
}

.hero-motif {
  width: 140px;
  height: 28px;
  color: var(--gold);
  margin: 0 auto;
  display: block;
}

.hero-compact { padding: 40px 28px 36px; }
.hero-title-sm { font-size: clamp(30px, 7vw, 42px); }

.back-to-info {
  display: inline-block;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 18px;
}

.back-to-info:hover { color: var(--sienna); }

/* ---------- FORM WRAP ---------- */
.form-wrap {
  flex: 1;
  padding: 40px 24px 80px;
}

.section-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  text-align: center;
  margin: 0 0 28px;
}

/* ---------- ROLE CARDS ---------- */
.role-cards {
  display: grid;
  gap: 14px;
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 24px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-l);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  font-family: inherit;
}

.role-card:hover {
  border-color: var(--sienna);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58, 46, 40, 0.08);
}

.role-card:focus-visible {
  outline: 2.5px solid var(--sienna);
  outline-offset: 2px;
}

.role-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}

.role-card-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- FORMS ---------- */
.reg-form {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.back-link {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0 0 20px;
  display: block;
}

.back-link:hover { color: var(--sienna); }

.form-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 28px;
}

.field-group { margin-bottom: 22px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

.field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.field-hint {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: -4px 0 12px;
  line-height: 1.5;
}

.field-input {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  transition: border-color 0.15s ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--sienna);
}

.field-input:focus-visible {
  outline: 2px solid var(--sienna);
  outline-offset: 1px;
}

.field-input.invalid {
  border-color: var(--error);
}

/* ---------- LOCATION GRID ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .location-grid { grid-template-columns: 1fr; }
}

.location-option {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.location-option:hover:not(.is-full) { border-color: var(--sienna); }

.location-option.is-selected {
  border-color: var(--sienna);
  background: #FDF3EE;
}

.location-option.is-full {
  opacity: 0.5;
  cursor: not-allowed;
}

.location-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.location-remaining {
  font-size: 12.5px;
  color: var(--sage);
}

.location-option.is-full .location-remaining {
  color: var(--sienna);
}

/* ---------- DATES GRID (volunteer) ---------- */
.dates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .dates-grid { grid-template-columns: 1fr; }
}

.date-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.date-option:hover:not(.is-full) { border-color: var(--sage); }

.date-option.is-selected {
  border-color: var(--sage);
  background: #F3F5F0;
}

.date-option.is-full {
  opacity: 0.5;
  cursor: not-allowed;
}

.date-label { font-weight: 600; font-size: 14.5px; }

.date-remaining { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }

.date-option.is-full .date-remaining { color: var(--sienna); }

/* ---------- PAYMENT ---------- */
.payment-block {
  padding: 22px;
  background: var(--ivory-deep);
  border-radius: var(--radius-l);
}

.qr-placeholder {
  width: 100%;
  aspect-ratio: 1.6;
  max-width: 260px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-m);
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}

.qr-code-box {
  max-width: 240px;
  margin: 0 auto 18px;
  padding: 16px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
}

.qr-img {
  width: 100%;
  height: auto;
  display: block;
}

.bank-details-box {
  padding: 16px 18px;
  background: var(--white);
  border-radius: var(--radius-s);
  margin-bottom: 14px;
}

.bank-details-box p {
  margin: 0 0 6px;
  font-size: 14px;
  text-align: center;
  color: var(--ink);
}

.bank-details-box p:last-child { margin-bottom: 0; }

.bank-label { font-weight: 700; }

.remark-hint {
  text-align: center;
  margin-top: -2px;
}

.upload-zone { }

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 20px;
  background: var(--white);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-m);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.upload-label:hover { border-color: var(--sienna); }

.upload-label.has-file {
  border-style: solid;
  border-color: var(--sage);
}

.upload-icon {
  font-size: 20px;
  color: var(--sienna);
}

.upload-hint {
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---------- MESSAGES ---------- */
.form-message {
  min-height: 20px;
  font-size: 14px;
  margin: 4px 0 18px;
}

.form-message.is-error { color: var(--error); }
.form-message.is-info { color: var(--ink-soft); }

/* ---------- SUBMIT ---------- */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--sienna);
  color: var(--white);
  border: none;
  border-radius: var(--radius-m);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.submit-btn:hover { background: var(--sienna-deep); }
.submit-btn:active { transform: scale(0.99); }

.submit-btn:disabled {
  background: var(--line);
  color: var(--ink-soft);
  cursor: not-allowed;
}

.submit-btn:focus-visible {
  outline: 2.5px solid var(--sienna);
  outline-offset: 2px;
}

/* ---------- SUCCESS ---------- */
.success-panel {
  text-align: center;
  padding: 60px 20px;
}

.success-motif {
  width: 56px;
  height: 56px;
  color: var(--sage);
  margin: 0 auto 22px;
}

.success-panel h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 10px;
}

.success-panel p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.page-footer {
  text-align: center;
  padding: 28px;
  font-size: 12.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* ================================================
   LANDING PAGE (index.html)
   ================================================ */

.page-wide { max-width: 760px; }

/* ---------- TOP BAR ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}

.topbar-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.topbar-logo-tmc { height: 40px; }

/* ---------- BANNER ---------- */
.banner-wrap {
  width: 100%;
  line-height: 0;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- CTA BUTTONS ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta-row-top {
  padding: 22px 24px 8px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: var(--radius-m);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  flex: 1 1 auto;
  min-width: 200px;
}

.cta-btn:active { transform: scale(0.99); }

.cta-primary {
  background: var(--sienna);
  color: var(--white);
  border: 1.5px solid var(--sienna);
}

.cta-primary:hover { background: var(--sienna-deep); border-color: var(--sienna-deep); }

.cta-secondary {
  background: transparent;
  color: var(--sienna);
  border: 1.5px solid var(--sienna);
}

.cta-secondary:hover { background: #FDF3EE; }

/* ---------- INFO SECTIONS ---------- */
.info-wrap { padding: 8px 0 0; }

.info-section {
  padding: 48px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.info-section-alt {
  background: var(--ivory-deep);
  max-width: none;
}

.info-section-alt > * {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow-center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.1;
  text-align: center;
  margin: 0 0 22px;
}

.section-title-sm {
  font-size: clamp(24px, 5vw, 30px);
  text-align: left;
}

.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 28px;
}

.body-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sage);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8.5px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}

/* ---------- SCHEDULE LIST ---------- */
.schedule-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.schedule-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
}

.schedule-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}

.schedule-time {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- PRICE / VOLUNTEER SECTIONS ---------- */
.price-section, .volunteer-section {
  text-align: center;
}

.price-section .section-title,
.volunteer-section .section-title {
  text-align: center;
}

.price-section .body-text,
.volunteer-section .body-text {
  text-align: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.volunteer-section {
  background: var(--ivory-deep);
  max-width: none;
}

.volunteer-section > * {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.volunteer-section .cta-row { max-width: none; }

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 4px 20px;
}

.faq-item[open] { border-color: var(--sienna); }

.faq-question {
  padding: 16px 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--sienna);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-question:focus-visible {
  outline: 2px solid var(--sienna);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-answer {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

@media (max-width: 480px) {
  .cta-btn { min-width: 0; width: 100%; }
  .info-section { padding: 36px 20px; }
}
