:root {
  --stb-primary: #E59100;
  --stb-bg: #f7f1e8;
  --stb-text: #1f1710;
  --stb-card: #ffffff;
  --stb-border: #d9b27b;
  --stb-font: 'Josefin Sans', sans-serif;
  --stb-radius: 22px;
  --stb-label: #6d4b1c;
  --stb-muted: #6f6254;
  --stb-input-bg: #ffffff;
  --stb-input-text: #1f1710;
  --stb-placeholder: #8a7a68;
  --stb-input-border: #c8a36d;
  --stb-button-text: #ffffff;
  --stb-success: #2d8a57;
  --stb-section-heading: #E59100;
  --stb-whatsapp-bg: #128c7e;
  --stb-whatsapp-text: #ffffff;
  --stb-body-font: 'Josefin Sans', sans-serif;
  --stb-shadow: 0 24px 70px rgba(64, 38, 12, 0.08);
  --stb-soft-shadow: 0 12px 28px rgba(64, 38, 12, 0.08);
  --stb-transition: 0.24s ease;
}

#stb-wrap {
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--stb-radius);
  border: 1px solid var(--stb-border);
  background: linear-gradient(180deg, #fff9f2 0%, var(--stb-bg) 100%);
  color: var(--stb-text);
  box-shadow: var(--stb-shadow);
}

#stb-wrap,
#stb-wrap * {
  box-sizing: border-box;
}

.stb-step {
  display: none;
}

.stb-step.active {
  display: block;
}

.stb-hero,
.stb-success-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px 36px 26px;
  border-bottom: 1px solid rgba(229, 145, 0, 0.25);
  background: linear-gradient(135deg, #fff5e7 0%, #f9f0e3 100%);
}

.stb-hero-copy {
  max-width: 760px;
}

.stb-hero-logo {
  max-height: 52px;
  width: auto;
  margin-bottom: 12px;
}

.stb-title,
.stb-success-title {
  margin: 0 0 8px;
  color: #9a5d00;
  font-family: var(--stb-font);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
  font-weight: 700;
}

.stb-subtitle,
.stb-success-sub {
  margin: 0;
  color: var(--stb-muted);
  font-family: var(--stb-body-font);
  font-size: 16px;
  line-height: 1.7;
}

.stb-hero-badge {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--stb-primary);
  background: #ffffff;
  color: var(--stb-primary);
  font-family: var(--stb-body-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stb-success-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--stb-success);
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
}

.stb-steps-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: #fffdfa;
  border-bottom: 1px solid rgba(229, 145, 0, 0.18);
}

.stb-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 58px;
}

.stb-step-dot span {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #d6c2a2;
  background: #ffffff;
  color: #7d6546;
  font-family: var(--stb-body-font);
  font-size: 13px;
  font-weight: 700;
}

.stb-step-dot small {
  color: #8f7552;
  font-family: var(--stb-body-font);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stb-step-dot.active span,
.stb-step-dot.done span {
  background: linear-gradient(180deg, #f2b95a 0%, #E59100 100%);
  border-color: #E59100;
  color: #ffffff;
}

.stb-step-dot.active small,
.stb-step-dot.done small {
  color: #9a5d00;
}

.stb-step-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(229, 145, 0, 0.12), rgba(229, 145, 0, 0.35));
}

.stb-line-done {
  background: linear-gradient(90deg, rgba(229, 145, 0, 0.35), rgba(229, 145, 0, 0.8));
}

.stb-form-shell,
.stb-review-layout,
.stb-booking-id-banner,
.stb-confirm-horizontal,
.stb-confirm-notice,
.stb-btn,
.stb-btn-row,
.stb-error {
  margin-left: 36px;
  margin-right: 36px;
}

.stb-form-shell {
  padding: 36px 0 8px;
}

.stb-form-layout,
.stb-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.86fr);
  gap: 24px;
  align-items: start;
}

.stb-panel,
.stb-review-card,
.stb-payment-box,
.stb-confirm-horizontal,
.stb-booking-id-banner,
.stb-confirm-notice {
  background: var(--stb-card);
  border: 1px solid rgba(217, 178, 123, 0.9);
  border-radius: calc(var(--stb-radius) - 2px);
  box-shadow: var(--stb-soft-shadow);
}

.stb-panel,
.stb-review-card,
.stb-payment-box {
  padding: 24px;
}

.stb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.stb-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: #9a5d00;
  font-family: var(--stb-body-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stb-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(229, 145, 0, 0.28), transparent);
}

.stb-section-label.no-line::after {
  display: none;
}

.stb-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stb-label,
.stb-rv-lbl,
.stb-ci-lbl,
.stb-bid-label {
  color: var(--stb-label);
  font-family: var(--stb-body-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stb-req {
  color: #d95c36;
}

.stb-input,
.stb-select,
.stb-static-badge {
  width: 100%;
  min-height: 56px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--stb-input-border);
  background: var(--stb-input-bg);
  color: var(--stb-input-text) !important;
  font-family: var(--stb-body-font);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: border-color var(--stb-transition), box-shadow var(--stb-transition), transform var(--stb-transition);
}

.stb-static-badge {
  display: flex;
  align-items: center;
  color: #9a5d00 !important;
  background: #fff7ea;
}

.stb-input::placeholder,
.stb-textarea::placeholder {
  color: var(--stb-placeholder) !important;
  opacity: 1;
}

.stb-input:focus,
.stb-select:focus {
  border-color: var(--stb-primary);
  box-shadow: 0 0 0 4px rgba(229, 145, 0, 0.12);
}

.stb-select-wrap {
  position: relative;
}

.stb-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
}

.stb-select option {
  color: #1f1710 !important;
  background: #ffffff !important;
  font-family: var(--stb-body-font);
  font-size: 15px;
}

.stb-chevron {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: #9a5d00;
  pointer-events: none;
  font-size: 18px;
  font-weight: 700;
}

.stb-textarea {
  min-height: 132px;
  resize: vertical;
}

.stb-calendar-wrap {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(217, 178, 123, 0.85);
  background: #fffdfa;
}

.stb-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(229, 145, 0, 0.15);
  background: #fff5e7;
}

.stb-cal-nav {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid #d2b48a;
  background: #ffffff;
  color: #9a5d00;
  cursor: pointer;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.stb-cal-month-label {
  flex: 1;
  text-align: center;
  color: #9a5d00;
  font-family: var(--stb-font);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.stb-cal-weekdays,
.stb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.stb-cal-weekdays {
  padding: 8px 14px 0;
}

.stb-cal-weekdays span {
  color: #7d6546;
  font-family: var(--stb-body-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  padding: 8px 0;
}

.stb-cal-grid {
  gap: 8px;
  padding: 12px 14px 16px;
}

.stb-cal-day {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid transparent;
  background: #fff7ed;
  color: #31251a;
  font-family: var(--stb-body-font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.stb-cal-day:hover:not(.stb-cal-disabled):not(.stb-cal-empty) {
  border-color: rgba(229, 145, 0, 0.35);
  background: #ffefd5;
  transform: translateY(-1px);
}

.stb-cal-day.stb-cal-selected {
  background: linear-gradient(180deg, #f2b95a 0%, #E59100 100%);
  border-color: #E59100;
  color: #ffffff;
}

.stb-cal-day.stb-cal-today:not(.stb-cal-selected) {
  border-color: rgba(229, 145, 0, 0.48);
}

.stb-cal-day.stb-cal-disabled,
.stb-cal-day.stb-cal-weekend-day {
  color: #b6a48d;
  background: #f6f1eb;
  cursor: not-allowed;
}

.stb-cal-day.stb-cal-empty {
  background: transparent;
  cursor: default;
}

.stb-cal-hint,
.stb-pay-sub,
.stb-qr-upi-id,
.stb-pay-note,
.stb-bid-hint,
.stb-side-note p {
  color: var(--stb-muted);
}

.stb-cal-hint {
  margin: 0;
  padding: 0 14px 16px;
  text-align: center;
  font-family: var(--stb-body-font);
  font-size: 12px;
}

.stb-timeslots-wrap {
  margin-top: 22px;
}

.stb-slots-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.stb-selected-date-label {
  color: #9a5d00;
  font-family: var(--stb-body-font);
  font-size: 12px;
  font-weight: 700;
}

.stb-timeslots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stb-slot {
  min-width: 92px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #d0b082;
  background: #ffffff;
  color: #1f1710;
  font-family: var(--stb-body-font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.stb-slot:hover:not(.stb-slot-booked) {
  border-color: var(--stb-primary);
  background: #fff4e2;
  transform: translateY(-1px);
}

.stb-slot.stb-slot-active {
  background: linear-gradient(180deg, #f2b95a 0%, #E59100 100%);
  border-color: #E59100;
  color: #ffffff;
}

.stb-slot.stb-slot-booked {
  background: #f6f0ea;
  color: #b3a08d;
  text-decoration: line-through;
  cursor: not-allowed;
}

.stb-side-note {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(217, 178, 123, 0.85);
  background: #fff8ef;
}

.stb-side-note strong {
  display: block;
  margin-bottom: 6px;
  color: #9a5d00;
  font-family: var(--stb-font);
  font-size: 30px;
  font-weight: 700;
}

.stb-side-note p {
  margin: 0;
  font-family: var(--stb-body-font);
  font-size: 14px;
  line-height: 1.7;
}

.stb-review-title,
.stb-pay-title {
  margin-bottom: 16px;
  color: #9a5d00;
  font-family: var(--stb-font);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.stb-pay-sub {
  margin-top: -4px;
  margin-bottom: 20px;
  font-family: var(--stb-body-font);
  font-size: 14px;
  line-height: 1.7;
}

.stb-rv-item,
.stb-confirm-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(217, 178, 123, 0.55);
}

.stb-confirm-item {
  flex-direction: column;
  gap: 5px;
}

.stb-rv-item:last-child,
.stb-confirm-item:last-child {
  border-bottom: none;
}

.stb-rv-val,
.stb-ci-val {
  color: #1f1710 !important;
  font-family: var(--stb-body-font);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  opacity: 1 !important;
  visibility: visible !important;
}

.stb-rv-price,
.stb-ci-price,
.stb-qr-amount,
.stb-bid-value {
  color: #9a5d00 !important;
  font-family: var(--stb-font);
  font-weight: 700;
}

.stb-rv-price,
.stb-ci-price {
  font-size: 28px;
}

.stb-qr-outer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(217, 178, 123, 0.85);
  background: #fffaf4;
  margin: 0 auto;
}

#stb-qr-canvas {
  display: block;
  border-radius: 14px;
}

.stb-qr-amount {
  margin-top: 16px;
  font-size: 36px;
}

.stb-qr-upi-id,
.stb-pay-note {
  font-family: var(--stb-body-font);
  font-size: 12px;
}

.stb-pay-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff5e6;
  border: 1px solid rgba(229, 145, 0, 0.18);
}

.stb-payment-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stb-review-grid {
  position: relative;
  z-index: 1;
}

.stb-btn-row {
  display: flex;
  gap: 14px;
  padding: 24px 0 32px;
  align-items: stretch;
}

.stb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 72px);
  margin-top: 24px;
  margin-bottom: 32px;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: linear-gradient(180deg, #f2b95a 0%, #E59100 100%);
  color: var(--stb-button-text);
  font-family: var(--stb-body-font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(229, 145, 0, 0.18);
}

.stb-btn:hover {
  transform: translateY(-1px);
}

.stb-btn-row .stb-btn {
  width: auto;
  margin: 0;
  flex: 1;
}

.stb-btn-ghost {
  background: #ffffff;
  border-color: #d9b27b;
  color: #9a5d00;
  box-shadow: none;
  flex: 0 0 180px;
}

.stb-btn-whatsapp {
  background: linear-gradient(180deg, #27c773 0%, #128c7e 100%);
  color: #ffffff;
  margin-bottom: 14px;
}

.stb-btn-calendar {
  margin-top: 0;
  background: #ffffff;
  border-color: #d9b27b;
  color: #9a5d00;
  box-shadow: none;
}

.stb-booking-id-banner,
.stb-confirm-notice {
  padding: 20px 22px;
}

.stb-booking-id-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.stb-bid-value {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
}

.stb-confirm-horizontal {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin-bottom: 20px;
  padding: 12px 0;
}

.stb-confirm-col {
  padding: 0 22px;
}

.stb-confirm-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(217, 178, 123, 0.85), transparent);
}

.stb-confirm-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  color: #1f1710 !important;
  font-family: var(--stb-body-font);
  font-size: 13px;
}

.stb-confirm-notice strong {
  color: #9a5d00 !important;
  font-family: var(--stb-font);
  font-size: 34px;
}

.stb-rv-lbl,
.stb-ci-lbl,
.stb-bid-label,
.stb-bid-hint,
.stb-pay-sub,
.stb-qr-upi-id,
.stb-pay-note,
.stb-selected-date-label,
.stb-cal-hint {
  opacity: 1 !important;
  visibility: visible !important;
}

.stb-error {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(217, 92, 54, 0.3);
  background: #fff2ee;
  color: #ad3f22;
  font-family: var(--stb-body-font);
}

.stb-muted-inline,
.stb-error-inline {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  font-family: var(--stb-body-font);
  font-size: 12px;
}

.stb-muted-inline {
  border: 1px solid rgba(217, 178, 123, 0.85);
  background: #fffaf2;
  color: var(--stb-muted);
}

.stb-error-inline {
  border: 1px solid rgba(217, 92, 54, 0.28);
  background: #fff2ee;
  color: #ad3f22;
}

#stb-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 23, 16, 0.24);
  backdrop-filter: blur(3px);
}

.stb-spinner-wrap {
  min-width: 170px;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid rgba(217, 178, 123, 0.85);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--stb-shadow);
}

.stb-spinner-ring {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 4px solid rgba(229, 145, 0, 0.12);
  border-top-color: rgba(229, 145, 0, 0.95);
  animation: stbSpin 0.78s linear infinite;
}

.stb-spinner-text {
  color: #9a5d00;
  font-family: var(--stb-body-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stb-calendar-compact .stb-cal-day {
  min-height: 40px;
}

.stb-calendar-normal .stb-cal-day {
  min-height: 48px;
}

.stb-times-compact .stb-slot {
  min-width: 84px;
}

.stb-times-normal .stb-slot {
  min-width: 100px;
}

@keyframes stbSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .stb-form-layout,
  .stb-review-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .stb-confirm-horizontal {
    grid-template-columns: 1fr;
  }

  .stb-confirm-divider {
    width: auto;
    height: 1px;
    margin: 0 22px;
  }

  .stb-confirm-notice {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .stb-hero,
  .stb-success-hero,
  .stb-steps-indicator {
    padding-left: 24px;
    padding-right: 24px;
  }

  .stb-form-shell,
  .stb-review-layout,
  .stb-booking-id-banner,
  .stb-confirm-horizontal,
  .stb-confirm-notice,
  .stb-btn,
  .stb-btn-row,
  .stb-error {
    margin-left: 24px;
    margin-right: 24px;
  }

  .stb-hero,
  .stb-success-hero,
  .stb-btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .stb-hero-badge {
    align-self: flex-start;
  }

  .stb-grid {
    grid-template-columns: 1fr;
  }

  .stb-btn {
    width: calc(100% - 48px);
  }

  .stb-btn-row .stb-btn,
  .stb-btn-ghost {
    width: 100%;
    flex: auto;
  }
}

@media (max-width: 600px) {
  .stb-hero,
  .stb-success-hero,
  .stb-steps-indicator {
    padding-left: 18px;
    padding-right: 18px;
  }

  .stb-form-shell,
  .stb-review-layout,
  .stb-booking-id-banner,
  .stb-confirm-horizontal,
  .stb-confirm-notice,
  .stb-btn,
  .stb-btn-row,
  .stb-error {
    margin-left: 18px;
    margin-right: 18px;
  }

  .stb-panel,
  .stb-review-card,
  .stb-payment-box {
    padding: 18px;
  }

  .stb-title,
  .stb-success-title {
    font-size: 30px;
  }

  .stb-subtitle,
  .stb-success-sub {
    font-size: 14px;
  }

  .stb-step-line {
    min-width: 12px;
  }

  .stb-cal-header {
    padding: 12px;
  }

  .stb-cal-month-label {
    font-size: 22px;
  }

  .stb-cal-grid {
    gap: 6px;
    padding: 10px 10px 14px;
  }

  .stb-cal-day {
    min-height: 38px;
    font-size: 12px;
  }

  .stb-timeslots {
    gap: 8px;
  }

  .stb-slot {
    min-width: calc(50% - 4px);
    flex: 1 1 calc(50% - 4px);
  }

  .stb-btn {
    width: calc(100% - 36px);
    margin-top: 20px;
    margin-bottom: 24px;
  }
}

@media (max-width: 420px) {
  .stb-slot {
    min-width: 100%;
    flex-basis: 100%;
  }
}
