:root {
  color-scheme: light;
  --ink: #172027;
  --muted: #60707d;
  --line: #d7e0e6;
  --paper: #f8fbfa;
  --panel: #ffffff;
  --green: #087b59;
  --green-dark: #07543f;
  --blue: #1f6f9d;
  --amber: #d97b20;
  --shadow: 0 18px 48px rgba(15, 39, 54, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: #e8f1f0;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(31, 111, 157, 0.16), transparent 28%),
    linear-gradient(145deg, #f7fbfa 0%, #eaf4ee 50%, #f8f4e9 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.hero {
  display: grid;
  gap: 22px;
  padding: 28px 0 18px;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(32px, 9vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.session-card span,
.section-heading span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.session-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.session-card {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.session-card strong {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 28px;
  line-height: 1.1;
}

.session-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.booking-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading p {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

label span {
  color: #2c3a42;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c8d4dc;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 111, 157, 0.14);
}

.full-row {
  grid-column: 1 / -1;
}

.field-error {
  min-height: 18px;
  color: #b42318;
  font-size: 13px;
}

.submit-button {
  min-height: 52px;
  border: 0;
  border-radius: 6px;
  padding: 0 20px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  cursor: pointer;
}

.secondary-button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 18px;
  color: var(--green-dark);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.submit-button:hover,
.submit-button:focus {
  background: var(--green-dark);
}

.secondary-button:hover,
.secondary-button:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 123, 89, 0.12);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-message {
  display: flex;
  align-items: center;
  min-height: 52px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 700;
}

.form-message.is-error {
  color: #b42318;
}

.success-panel {
  display: grid;
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.success-poster {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(79, 48, 16, 0.22);
}

.success-copy {
  min-width: 0;
}

.success-kicker {
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(8, 123, 89, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.success-copy h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.success-details {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.success-details div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.success-details dt {
  color: var(--muted);
  font-size: 14px;
}

.success-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.success-reminder {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .page-shell {
    padding: 16px 14px 32px;
  }

  .hero {
    padding-top: 16px;
  }

  .session-strip,
  form {
    grid-template-columns: 1fr;
  }

  .booking-panel {
    padding: 18px;
  }

  .section-heading {
    display: grid;
    gap: 6px;
  }

  .submit-button,
  .form-message {
    grid-column: 1 / -1;
  }

  .success-panel {
    grid-template-columns: 1fr;
  }

  .success-poster {
    max-width: 360px;
    margin: 0 auto;
  }
}
