:root {
  --logo-yellow: #F5C518;
  --logo-yellow-dark: #E0B00E;
  --ink: #212529;
  --muted: #6c757d;
  --border: rgba(0, 0, 0, 0.1);
}
body {
  font-family: 'Roboto', sans-serif;
  background: #fff;
  color: var(--ink);
}
h1, h2, h3, .tf-q, .call-name {
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.04em;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.page-top {
  display: flex;
  justify-content: center;
  padding: 1rem 1.5rem 0;
}
.mini-logo {
  height: 1.75rem;
  width: auto;
}
@media (min-width: 768px) {
  .page-top { padding: 1.5rem 2rem 0; }
}
.page-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.btn-logo-yellow {
  --bs-btn-color: #212529;
  --bs-btn-bg: var(--logo-yellow);
  --bs-btn-border-color: var(--logo-yellow);
  --bs-btn-hover-color: #212529;
  --bs-btn-hover-bg: var(--logo-yellow-dark);
  --bs-btn-hover-border-color: var(--logo-yellow-dark);
  --bs-btn-focus-shadow-rgb: 245, 197, 24;
  --bs-btn-active-color: #212529;
  --bs-btn-active-bg: var(--logo-yellow-dark);
  --bs-btn-active-border-color: var(--logo-yellow-dark);
}
.btn-xl {
  padding: 0.75rem 2.25rem;
}

.wiz {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
@media (min-width: 768px) {
  .wiz { padding: 2.5rem 0; }
}
.wiz-progress {
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.wiz-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--logo-yellow);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.wiz-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  text-align: left;
}
.wiz-panel {
  display: none;
}
.wiz-panel.active {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex: 1;
  justify-content: center;
  text-align: left;
  overflow-y: auto;
  min-height: 0;
}
.wiz-panel--centered {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.wiz-panel--center {
  align-items: center;
  text-align: center;
}
.price-card {
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  background: #fff;
  text-align: center;
  width: 100%;
  max-width: 420px;
}
.price-amount {
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.04em;
  font-size: 2.5rem;
  font-weight: 700;
}
.price-period {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.next-card {
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  background: #fff;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.next-card .edu-img {
  width: 96px;
  height: 96px;
  border-radius: 0.9rem;
}
.next-when {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}
.celebrate {
  width: 64px;
  height: 64px;
}
@media (max-height: 640px) {
  .wiz-panel.active { justify-content: flex-start; }
}
.tf-sub {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}
.edu-img-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 0.25rem;
}
.edu-img {
  width: 170px;
  height: 170px;
  border-radius: 1.25rem;
  object-fit: cover;
  flex-shrink: 0;
}
.edu-chip {
  position: absolute;
  right: -0.9rem;
  bottom: -0.6rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--logo-yellow);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}
.edu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.edu-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.edu-bullet {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.5rem;
  background: var(--logo-yellow);
  display: grid;
  place-items: center;
  color: var(--ink);
  flex-shrink: 0;
}
.tf-q {
  margin: 0;
}
.tf-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 576px) {
  .tf-options { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}
.tf-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.8rem 1.05rem;
  border-radius: 0.9rem;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  overflow: hidden;
  max-height: 90px;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease,
              border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}
.tf-option:hover {
  border-color: var(--logo-yellow-dark);
}
.tf-option:active {
  transform: translateY(1px);
}
.tf-option .key {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 2px solid #ced4da;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  color: transparent;
  transition: all 0.15s ease;
}
.tf-option.selected {
  border-color: var(--ink);
  background: var(--logo-yellow);
  font-weight: 600;
}
.tf-option.selected .key {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tf-option-custom {
  border-style: dashed;
  justify-content: flex-start;
}
.wiz-panel.custom-active .tf-option:not(.tf-option-custom) {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  border-bottom-width: 0;
  margin: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.wiz-panel.custom-active .tf-option-custom {
  border-style: solid;
  border-color: var(--ink);
}
.tf-custom {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.35s ease;
}
.wiz-panel.custom-active .tf-custom {
  max-height: 160px;
  margin-top: 0.5rem;
}
.tf-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}
.tf-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}
.tf-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 0.8rem;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
}
.tf-input:focus {
  outline: none;
  border-color: var(--logo-yellow);
  box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.16);
}
.tf-input::placeholder {
  color: #adb5bd;
}
.wiz-ring {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--logo-yellow);
  border-right-color: var(--logo-yellow);
  border-radius: 50%;
  margin: 0 auto;
  animation: wiz-spin 1s linear infinite;
}
@keyframes wiz-spin {
  to { transform: rotate(360deg); }
}
.wiz-nav {
  display: flex;
  padding-top: 1.25rem;
}
.btn-continue {
  width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.wiz-legal {
  font-size: 0.7rem;
  color: #9aa0a6;
  text-align: center;
  line-height: 1.3;
  margin: 1.25rem 0 0;
}

.call-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.call-stage {
  position: relative;
}
.call-art {
  max-height: 40vh;
  max-width: min(72%, 280px);
  height: auto;
  width: auto;
  object-fit: contain;
  transform: scale(calc(1 + var(--level, 0) * 0.03));
  transition: transform 0.12s ease;
}
.call-name {
  font-weight: 700;
}
.call-status {
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
}
.call-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bbb;
}
.call-status.live .dot {
  background: #2ecc71;
}
.call-caption {
  font-style: italic;
  color: var(--muted);
  max-width: 46ch;
  min-height: 1.4em;
  margin: 0;
}
.call-timer {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.call-hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
}
.call-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}
.call-ctrl {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
}
.call-ctrl-end {
  width: 4.5rem;
  height: 4.5rem;
  background: var(--logo-yellow);
  border-color: var(--logo-yellow);
}
.call-ctrl.off {
  opacity: 0.45;
}
.call-end-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
}

.book {
  max-width: 620px;
  margin: 0 auto;
  padding: 24px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  text-align: center;
}
.book-cal {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
.book-cols {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.book-cols .book-col-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .book-cols {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    text-align: left;
  }
  .book-cols .book-col-cal {
    flex: 0 0 58%;
    max-width: 58%;
  }
  .book-cols .book-col-right {
    flex: 1;
    padding-top: 0.25rem;
  }
  .book-cols .book-slots {
    justify-content: flex-start;
  }
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  font-weight: 600;
}
.cal-title {
  font-weight: 600;
}
.cal-nav {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.cal-nav:hover {
  border-color: var(--logo-yellow-dark);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0.25rem;
}
.cal-dow {
  padding: 0.4rem 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.cal-day {
  display: grid;
  place-items: center;
  height: 2.4rem;
  font-size: 0.85rem;
  border-radius: 0.5rem;
  margin: 2px;
  cursor: pointer;
}
.cal-day.muted {
  color: #ced4da;
}
.cal-day.past {
  color: #ced4da;
  cursor: default;
}
.cal-day.selected {
  background: var(--logo-yellow);
  color: var(--ink);
  font-weight: 700;
}
.book-slots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.slot {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  max-height: 46px;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease,
              border-color 0.15s ease, background-color 0.15s ease;
}
.slot.selected {
  background: var(--logo-yellow);
  border-color: var(--logo-yellow);
  color: var(--ink);
}
.slot-other {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px dashed var(--border);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  max-height: 46px;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease,
              border-color 0.15s ease, background-color 0.15s ease;
}
.slot-other.selected {
  border-style: solid;
  border-color: var(--ink);
  background: var(--logo-yellow);
}
.book-cols.custom-active .slot:not(.slot-other),
.book-cols.custom-active .slot-other {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  border-bottom-width: 0;
  margin: 0;
  pointer-events: none;
}
.book-cols.custom-active .book-slots {
  display: none;
}
.pc-times.custom-active .slot:not(.slot-other),
.pc-times.custom-active .slot-other {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  border-bottom-width: 0;
  margin: 0;
  pointer-events: none;
}
.pc-times.custom-active .book-slots {
  display: none;
}
.book-custom-time {
  display: none;
}
.book-custom-time.open {
  display: block;
  margin-top: 0;
  animation: fadeUp 0.25s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.tf-input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
}
.book-sep {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.book-sep hr {
  flex: 1;
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}
.book-sep span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.book-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}
.check-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--logo-yellow);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.btn-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  display: inline-block;
  animation: wiz-spin 0.8s linear infinite;
  vertical-align: middle;
}
@media (max-width: 575.98px) {
  .book { padding: 1rem 1rem 1.25rem; gap: 0.9rem; }
  .cal-head { padding: 0.6rem 0.75rem; }
  .cal-head span:last-child { display: none; }
  .cal-grid { padding: 0.15rem; }
  .cal-day {
    height: 2.1rem;
    font-size: 0.8rem;
    margin: 1px;
  }
  .book-slots { gap: 0.4rem; }
  .slot { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
}