/* ==========================================================
   Lantern Boat Hoi An — Booking Form styles
   All classes are prefixed .lb- so nothing clashes with the theme.
   ========================================================== */

.lb-book {
  /* ---- Design tokens ---- */
  --lb-orange: #e77424;
  --lb-orange-strong: #e05f0a;
  --lb-orange-text: #d1560a;
  --lb-orange-deep: #c25a06;
  --lb-cream: #fff4e8;
  --lb-cream-border: #f0bb85;
  --lb-cream-soft: #fff2e4;

  --lb-ink: #0b1620;
  --lb-text: #22303d;
  --lb-muted: #55616f;
  --lb-faint: #6d7885;
  --lb-line: #ccd5df;
  --lb-line-soft: #e0e6ed;
  --lb-grey: #e8edf3;

  --lb-green-bg: #eefaf1;
  --lb-green-line: #b6e3c4;
  --lb-green-text: #1f4a30;
  --lb-red: #c02626;

  --lb-radius: 18px;
  --lb-radius-sm: 10px;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--lb-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.lb-book *,
.lb-book *::before,
.lb-book *::after { box-sizing: border-box; }

/* ---- Card ---- */
.lb-book__card {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--lb-radius);
  box-shadow: 0 24px 60px rgba(17, 32, 48, .16), 0 2px 6px rgba(17, 32, 48, .06);
  overflow: hidden;
  animation: lb-card-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes lb-card-slide-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lb-book__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--lb-line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lb-book__title {
  margin: 0;
  font-size: 19px;
  line-height: 25px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--lb-ink);
}

.lb-book__sub {
  margin: 2px 0 0 0;
  font-size: 16px;
  line-height: 17px;
  color: #4d5a68;
}

.lb-book__close {
    flex-shrink: 0;
    width: 34px;
    height: 34px !important;
    border: none !important;
    border-radius: 999px;
    background: var(--lb-grey) !important;
    color: #33414f !important;
    font-size: 15px;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lb-field input,
.lb-field select {
  margin: 0 !important;
}

.lb-book__close:hover {
  background: #dcdcdc;
  transform: scale(1.05);
}

.lb-book__body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---- Layout helpers ---- */
.lb-grid { display: grid; gap: 10px; }
.lb-grid--2 { grid-template-columns: 1fr 1fr; }
.lb-hidden { display: none !important; }

/* ---- Fields ---- */
.lb-field { display: flex; flex-direction: column; gap: 5px; }

.lb-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
  color: var(--lb-text);
}

.lb-req { color: var(--lb-orange-strong); }
.lb-opt { color: var(--lb-faint); font-weight: 400; }

.lb-hint {
  margin: 0;
  font-size: 11px;
  line-height: 16px;
  color: var(--lb-muted);
}

.lb-input {
  width: 100%;
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius-sm);
  padding: 9px 11px;
  font-family: inherit;
  font-size: 14px;
  line-height: 22px;
  color: var(--lb-ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.lb-input--bold { font-weight: 600; }
.lb-input::placeholder { color: #8b97a4; }

.lb-input:focus {
  outline: none;
  border-color: var(--lb-orange-strong);
  box-shadow: 0 0 0 3px rgba(224, 95, 10, .18);
}

.lb-input.is-invalid { border-color: var(--lb-red); }

/* Native select arrow replacement */
.lb-select { position: relative; }

.lb-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
}

.lb-select::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid #33414f;
  border-bottom: 2px solid #33414f;
  transform: rotate(45deg);
  pointer-events: none;
}

/* ---- Steppers ---- */
.lb-stepper {
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius-sm);
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.lb-stepper__text { min-width: 0; display: flex; flex-direction: column; }

.lb-stepper__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--lb-ink);
}

.lb-stepper__note {
  font-size: 11px;
  line-height: 16px;
  color: var(--lb-muted);
}

.lb-stepper__ctrl {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-stepper__val {
  min-width: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--lb-ink);
}

.lb-round {
    width: 28px;
    height: 28px !important;
    border-radius: 999px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s, opacity .15s;
    padding: 0 !important;
    border: none !important;
}

.lb-round--ghost { border: 1px solid var(--lb-line); background: #fff; color: var(--lb-text); }
.lb-round--ghost:hover { background: #f5f8fb; }
.lb-round--solid { border: none; background: var(--lb-orange-strong); color: #fff; }
.lb-round--solid:hover { background: #cc5608; }
.lb-round:disabled { opacity: .4; cursor: not-allowed; }

/* ---- Inline text link ---- */
.lb-link {
  align-self: flex-start;
  padding: 0;
  border: none;
  background: none;
  color: var(--lb-orange-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lb-link:hover { text-decoration: underline; }

/* ---- Summary block ---- */
.lb-summary {
  border: 1px solid var(--lb-cream-border);
  background: var(--lb-cream);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.lb-summary__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lb-summary__guests {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
  color: var(--lb-orange-deep);
}

.lb-summary__calc {
  display: block;
  font-size: 11px;
  line-height: 16px;
  color: #41505f;
  margin-top: 1px;
}

.lb-summary__total {
  white-space: nowrap;
  font-size: 20px;
  line-height: 26px;
  font-weight: 800;
  color: var(--lb-orange-text);
}

/* ---- Payment choice ---- */
.lb-pay__opt {
  border: 1px solid #e8cdae !important;
  background: rgba(255, 255, 255, .55)!important;
  border-radius: 9px!important;
  padding: 7px 9px!important;
  font-family: inherit!important;
  cursor: pointer!important;
  display: flex!important;
  align-items: center!important;
  gap: 7px!important;
  text-align: left!important;
  transition: border-color .15s, background-color .15s;
}

.lb-pay__opt.is-active,
.lb-pay__opt:hover {
  border: 2px solid var(--lb-orange-strong)!important;
  background: #fff!important;
  padding: 6px 8px!important;
}

.lb-pay__icon { font-size: 13px; line-height: 1; }

.lb-pay__name {
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
  color: var(--lb-ink);
}

.lb-note {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--lb-green-line);
  border-radius: 8px;
  background: var(--lb-green-bg);
  font-size: 12px;
  line-height: 18px;
  color: var(--lb-green-text);
}

/* ---- Call to action ---- */
.lb-cta {
  height: 46px;
  border: none;
  border-radius: 12px;
  background: var(--lb-orange-strong);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 10px 22px rgba(224, 95, 10, .34);
  transition: all 0.2s ease;
  margin-top: 2px;
}

.lb-cta:hover {
  background: #cc5608;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(224, 95, 10, .4);
}

.lb-cta:active {
  transform: translateY(0);
}

.lb-cta[disabled] {
  opacity: .6;
  cursor: not-allowed;
  box-shadow: none;
}

.lb-cta__icon { width: 19px; height: 19px; fill: #fff; flex-shrink: 0; }

.lb-paypal { min-height: 48px; }

.lb-error {
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 18px;
  color: var(--lb-red);
  text-align: center;
  background: rgba(192, 38, 38, 0.08);
  border-radius: 8px;
}

/* ---- Trust row ---- */
.lb-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  line-height: 16px;
  color: #6d7885;
  margin-top: 2px;
}

.lb-trust__sep {
  color: var(--lb-line);
  font-weight: 300;
}

/* ---- Success state ---- */
.lb-done {
  padding: 44px 24px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lb-done__tick {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--lb-green-bg);
  border: 1px solid var(--lb-green-line);
  color: #12833f;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-done__title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 800;
  color: var(--lb-ink);
}

.lb-done__text {
  margin: 0;
  max-width: 360px;
  font-size: 14px;
  line-height: 22px;
  color: var(--lb-muted);
}

.lb-done__actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.lb-done__btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.lb-done__btn--primary {
  background: var(--lb-orange);
  color: #fff;
}

.lb-done__btn--primary:hover {
  background: var(--lb-orange-strong);
}

.lb-done__btn--whatsapp {
  background: #25d366;
  color: #fff;
}

.lb-done__btn--whatsapp:hover {
  background: #1ebd59;
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
  .lb-book__card {
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    animation: lb-card-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both, lb-mobile-slide-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  @keyframes lb-mobile-slide-in {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .lb-grid--2 { grid-template-columns: 1fr; }
  .lb-book__title { font-size: 18px; }
  .lb-book__head { padding: 14px 16px; }
  .lb-book__body { padding: 14px 16px; gap: 10px; }
  .lb-summary__total { font-size: 18px; }
  .lb-cta { height: 44px; font-size: 13px; margin-top: 0; }
  .lb-trust { font-size: 9px; gap: 6px; }
}
