/* LINE Clinic Booking — mobile-first, Cal-inspired scheduling UI */
.lcb-booking,
.lcb-booking * {
  box-sizing: border-box;
}

.lcb-booking {
  --lcb-ink: #202124;
  --lcb-muted: #70757d;
  --lcb-soft: #f5f6f7;
  --lcb-line: rgba(32, 33, 36, 0.1);
  --lcb-white: #fff;
  --lcb-accent: #087f5b;
  --lcb-accent-dark: #066646;
  --lcb-accent-soft: #e9f7f1;
  --lcb-danger: #b42318;
  --lcb-danger-soft: #fff1f0;
  --lcb-shadow: 0 1px 5px -4px rgba(19, 19, 22, 0.7), 0 0 0 1px rgba(34, 42, 53, 0.08), 0 16px 44px rgba(34, 42, 53, 0.1);
  width: min(1180px, calc(100% - 24px));
  margin: 36px auto;
  color: var(--lcb-ink);
  font-family: "Noto Sans Thai", "Leelawadee UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background: var(--lcb-white);
  border-radius: 20px;
  box-shadow: var(--lcb-shadow);
  overflow: hidden;
  isolation: isolate;
}

.lcb-booking button,
.lcb-booking input,
.lcb-booking textarea {
  font: inherit;
}

.lcb-booking button {
  -webkit-tap-highlight-color: transparent;
}

.lcb-booking__intro {
  position: relative;
  display: none;
  min-height: 690px;
  padding: 56px 48px 40px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.1), transparent 30%),
    linear-gradient(155deg, #202124 0%, #171819 72%, #0e0f10 100%);
  overflow: hidden;
}

.lcb-booking__intro::after {
  position: absolute;
  right: -130px;
  bottom: -180px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(255, 255, 255, 0.025), 0 0 0 108px rgba(255, 255, 255, 0.018);
  content: "";
}

.lcb-booking__intro h2 {
  max-width: 410px;
  margin: 24px 0 18px;
  color: #fff;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -1.8px;
  line-height: 1.08;
}

.lcb-booking__intro > div > p {
  max-width: 400px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  line-height: 1.75;
}

.lcb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.lcb-eyebrow__dot {
  width: 7px;
  height: 7px;
  background: #5ee6af;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(94, 230, 175, 0.12);
}

.lcb-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.lcb-benefits li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lcb-benefits .lcb-icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  font-size: 19px;
}

.lcb-benefits .lcb-icon--check {
  color: #5ee6af;
}

.lcb-benefits strong,
.lcb-benefits small {
  display: block;
}

.lcb-benefits strong {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.lcb-benefits small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.lcb-support {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.lcb-support span { color: rgba(255, 255, 255, 0.48); }
.lcb-support strong { color: rgba(255, 255, 255, 0.82); font-weight: 500; }

.lcb-booking__panel {
  min-width: 0;
  padding: 22px 18px 16px;
  background: var(--lcb-white);
}

.lcb-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--lcb-line);
}

.lcb-brandmark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--lcb-ink);
  border-radius: 12px;
  font-size: 25px;
  font-weight: 300;
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.15);
}

.lcb-panel-kicker {
  margin: 0 0 1px;
  color: var(--lcb-muted);
  font-size: 12px;
  font-weight: 600;
}

.lcb-panel-header h3 {
  margin: 0;
  color: var(--lcb-ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.35px;
  line-height: 1.25;
}

.lcb-steps {
  display: flex;
  justify-content: space-between;
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
}

.lcb-steps li {
  position: relative;
  display: grid;
  flex: 1;
  justify-items: center;
  gap: 5px;
  color: #a3a7ad;
  font-size: 10px;
  font-style: normal;
}

.lcb-steps li:not(:last-child)::after {
  position: absolute;
  z-index: -1;
  top: 14px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 1px;
  background: #e4e6e8;
  content: "";
}

.lcb-steps li.is-complete:not(:last-child)::after { background: var(--lcb-accent); }

.lcb-steps span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  background: #f0f1f2;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.lcb-steps em { font-style: normal; }
.lcb-steps .is-active { color: var(--lcb-ink); font-weight: 600; }
.lcb-steps .is-active span,
.lcb-steps .is-complete span { color: #fff; background: var(--lcb-ink); }
.lcb-steps .is-complete span { background: var(--lcb-accent); }

.lcb-status:empty { display: none; }
.lcb-status {
  margin-bottom: 18px;
  padding: 11px 13px;
  color: var(--lcb-danger);
  background: var(--lcb-danger-soft);
  border-radius: 9px;
  font-size: 13px;
}
.lcb-status.is-success { color: var(--lcb-accent-dark); background: var(--lcb-accent-soft); }

.lcb-view { animation: lcb-fade-in 0.24s ease both; }
.lcb-view[hidden] { display: none !important; }

@keyframes lcb-fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.lcb-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.lcb-section-heading--slots { margin-top: 28px; }
.lcb-section-heading > div,
.lcb-form-heading { display: flex; align-items: center; gap: 9px; }

.lcb-section-number {
  display: grid;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--lcb-muted);
  background: var(--lcb-soft);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
}

.lcb-section-heading h4,
.lcb-form-heading h4 {
  margin: 0;
  color: var(--lcb-ink);
  font-size: 15px;
  font-weight: 700;
}

.lcb-text-button,
.lcb-back-button {
  padding: 7px 8px;
  color: var(--lcb-muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}
.lcb-text-button:hover,
.lcb-back-button:hover { color: var(--lcb-ink); background: var(--lcb-soft); }

.lcb-timezone { color: #858a91; font-size: 10px; }

.lcb-date-strip {
  display: grid;
  grid-auto-columns: minmax(66px, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  padding: 2px 1px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.lcb-date-strip::-webkit-scrollbar { display: none; }

.lcb-date-button {
  min-height: 76px;
  padding: 9px 7px;
  color: var(--lcb-muted);
  background: #fff;
  border: 0;
  border-radius: 11px;
  box-shadow: 0 0 0 1px var(--lcb-line);
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.lcb-date-button:hover { color: var(--lcb-ink); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(32, 33, 36, 0.2), 0 5px 14px rgba(32, 33, 36, 0.08); }
.lcb-date-button.is-selected { color: #fff; background: var(--lcb-ink); box-shadow: inset 0 2px rgba(255, 255, 255, 0.13); }
.lcb-date-button span,
.lcb-date-button strong,
.lcb-date-button small { display: block; }
.lcb-date-button span { font-size: 10px; }
.lcb-date-button strong { margin: 2px 0 1px; font-size: 19px; line-height: 1.1; }
.lcb-date-button small { font-size: 10px; }

.lcb-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  min-height: 122px;
}

.lcb-slot-button {
  min-height: 48px;
  padding: 10px 8px;
  color: var(--lcb-ink);
  background: #fff;
  border: 0;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--lcb-line);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.lcb-slot-button:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(32, 33, 36, 0.22), 0 5px 12px rgba(32, 33, 36, 0.07); }
.lcb-slot-button.is-selected { color: #fff; background: var(--lcb-accent); box-shadow: inset 0 2px rgba(255, 255, 255, 0.16); }
.lcb-slot-button small { display: block; margin-top: 2px; color: inherit; opacity: 0.7; font-size: 9.5px; font-weight: 500; }

.lcb-empty-state {
  display: grid;
  grid-column: 1 / -1;
  min-height: 122px;
  place-items: center;
  align-content: center;
  padding: 18px;
  color: var(--lcb-muted);
  background: var(--lcb-soft);
  border-radius: 11px;
  text-align: center;
}
.lcb-empty-state__icon { display: grid; width: 34px; height: 34px; margin-bottom: 7px; place-items: center; color: var(--lcb-ink); background: #fff; border-radius: 50%; font-size: 18px; }
.lcb-empty-state strong { font-size: 12px; }
.lcb-empty-state small { margin-top: 2px; color: #999da3; font-size: 10px; }

.lcb-primary-button,
.lcb-secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  margin-top: 25px;
  padding: 12px 18px;
  color: #fff;
  background: var(--lcb-ink);
  border: 0;
  border-radius: 10px;
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.13), 0 4px 10px rgba(32, 33, 36, 0.14);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.lcb-primary-button:hover:not(:disabled) { background: #111; transform: translateY(-1px); }
.lcb-primary-button:disabled { cursor: not-allowed; opacity: 0.35; box-shadow: none; }
.lcb-primary-button.is-loading { cursor: wait; opacity: 0.7; }

.lcb-back-button { display: inline-flex; gap: 6px; margin: -6px 0 16px -8px; }

.lcb-appointment-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 25px;
  padding: 14px;
  color: var(--lcb-accent-dark);
  background: var(--lcb-accent-soft);
  border-radius: 11px;
}
.lcb-appointment-summary__icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--lcb-accent); border-radius: 10px; font-size: 19px; }
.lcb-appointment-summary small,
.lcb-appointment-summary strong,
.lcb-appointment-summary div > span { display: block; }
.lcb-appointment-summary small { font-size: 9px; opacity: 0.72; }
.lcb-appointment-summary strong { font-size: 13px; }
.lcb-appointment-summary div > span { font-size: 11px; }

.lcb-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.lcb-form-heading { align-items: flex-start; margin-bottom: 3px; }
.lcb-form-heading p { margin: 2px 0 0; color: var(--lcb-muted); font-size: 11px; }

.lcb-field { display: grid; gap: 6px; }
.lcb-field > span { color: #555a61; font-size: 11px; font-weight: 650; }
.lcb-field b { color: var(--lcb-danger); }
.lcb-field input,
.lcb-field textarea {
  width: 100%;
  color: var(--lcb-ink);
  background: #fff;
  border: 0;
  border-radius: 9px;
  outline: none;
  box-shadow: 0 0 0 1px rgba(32, 33, 36, 0.14), inset 0 1px 1px rgba(32, 33, 36, 0.025);
  transition: box-shadow 0.16s ease;
}
.lcb-field input { height: 45px; padding: 0 12px; font-size: 12px; }
.lcb-field textarea { min-height: 80px; padding: 11px 12px; resize: vertical; font-size: 12px; }
.lcb-field input::placeholder,
.lcb-field textarea::placeholder { color: #b0b3b7; }
.lcb-field input:focus,
.lcb-field textarea:focus { box-shadow: 0 0 0 2px rgba(8, 127, 91, 0.2), 0 0 0 1px var(--lcb-accent); }
.lcb-field input:invalid:not(:placeholder-shown) { box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.55); }

.lcb-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 3px;
  color: var(--lcb-muted);
  cursor: pointer;
  font-size: 10px;
  line-height: 1.5;
}
.lcb-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--lcb-accent); }
.lcb-form .lcb-primary-button { margin-top: 3px; }

.lcb-success {
  display: grid;
  min-height: 500px;
  justify-items: center;
  align-content: center;
  padding: 24px 0;
  text-align: center;
}
.lcb-success__mark { display: grid; width: 70px; height: 70px; margin-bottom: 18px; place-items: center; color: #fff; background: var(--lcb-accent); border: 8px solid var(--lcb-accent-soft); border-radius: 50%; font-size: 27px; font-weight: 700; }
.lcb-eyebrow--success { color: var(--lcb-accent-dark); background: var(--lcb-accent-soft); }
.lcb-success h4 { margin: 15px 0 8px; color: var(--lcb-ink); font-size: 23px; letter-spacing: -0.5px; }
.lcb-success > p { max-width: 390px; margin: 0; color: var(--lcb-muted); font-size: 12px; }
.lcb-success__receipt { display: grid; width: 100%; margin-top: 24px; padding: 16px; background: var(--lcb-soft); border-radius: 12px; }
.lcb-success__receipt > div { padding: 8px; }
.lcb-success__receipt > div + div { border-top: 1px solid var(--lcb-line); }
.lcb-success__receipt small,
.lcb-success__receipt strong { display: block; }
.lcb-success__receipt small { color: var(--lcb-muted); font-size: 9px; }
.lcb-success__receipt strong { margin-top: 2px; font-size: 13px; }
.lcb-secondary-button { max-width: 230px; color: var(--lcb-ink); background: #fff; box-shadow: 0 0 0 1px var(--lcb-line); }
.lcb-secondary-button:hover { background: var(--lcb-soft); }

.lcb-panel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 18px;
  padding-top: 14px;
  color: #858a91;
  border-top: 1px solid var(--lcb-line);
  font-size: 10px;
}

.lcb-booking :focus-visible {
  outline: 3px solid rgba(8, 127, 91, 0.28);
  outline-offset: 2px;
}

@media (min-width: 520px) {
  .lcb-booking { width: min(1180px, calc(100% - 40px)); margin-block: 48px; border-radius: 22px; }
  .lcb-booking__panel { padding: 30px 34px 18px; }
  .lcb-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lcb-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lcb-field--full,
  .lcb-form-heading { grid-column: 1 / -1; }
  .lcb-success__receipt { grid-template-columns: repeat(2, 1fr); }
  .lcb-success__receipt > div + div { border-top: 0; border-left: 1px solid var(--lcb-line); }
}

@media (min-width: 820px) {
  .lcb-booking { display: grid; grid-template-columns: minmax(320px, 0.8fr) minmax(460px, 1.2fr); min-height: 690px; }
  .lcb-booking__intro { display: flex; flex-direction: column; }
  .lcb-booking__panel { display: flex; flex-direction: column; padding: 38px 42px 22px; }
  .lcb-view { flex: 1; }
  .lcb-panel-header h3 { font-size: 21px; }
  .lcb-date-strip { grid-auto-columns: minmax(62px, 1fr); }
  .lcb-primary-button { min-height: 52px; }
}

@media (min-width: 1080px) {
  .lcb-booking { grid-template-columns: 42% 58%; }
  .lcb-booking__intro { padding: 62px 54px 44px; }
  .lcb-booking__panel { padding: 42px 54px 24px; }
  .lcb-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 400px) {
  .lcb-booking { width: 100%; margin: 0; border-radius: 0; box-shadow: none; }
  .lcb-booking__panel { padding-inline: 15px; }
  .lcb-panel-header { padding-top: env(safe-area-inset-top, 0); }
  .lcb-steps em { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .lcb-booking *,
  .lcb-booking *::before,
  .lcb-booking *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
