/* IH Booking Form — v3.0.0 */
#ih-booking-app {
  font-family: var(--iht-font-body, 'DM Sans', sans-serif);
  color: var(--txt, #1A202C);
  max-width: 860px;
  margin: 0 auto;
}

/* Step Nav */
.ihb-steps-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 32px; flex-wrap: wrap;
}
.ihb-step-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 30px;
  font-size: .82rem; font-weight: 700; color: #94A3B8; transition: all .3s;
}
.ihb-step-item.active { background: #0A2E5C; color: #fff; }
.ihb-step-item.done   { background: #ECFDF5; color: #065F46; }
.ihb-sn {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: .75rem; flex-shrink: 0;
}
.ihb-step-item.active .ihb-sn { background: rgba(255,255,255,.25); }
.ihb-step-item.done   .ihb-sn { background: #10B981; color: #fff; }
.ihb-step-sep { width: 32px; height: 2px; background: #E2E8F0; flex-shrink: 0; }

/* Panels */
.ihb-panel { display: none; background: #fff; border-radius: 16px; border: 1px solid #E2E8F0; box-shadow: 0 8px 30px rgba(10,46,92,.08); padding: 32px; }
.ihb-panel.active { display: block; animation: ihbFadeIn .3s ease; }
@keyframes ihbFadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.ihb-panel-header { margin-bottom: 24px; }
.ihb-panel-header h3 { font-size: 1.2rem; font-weight: 800; color: #0A2E5C; margin: 0 0 6px; }
.ihb-panel-header p  { font-size: .88rem; color: #64748B; margin: 0; }

/* Grid */
.ihb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ihb-full  { grid-column: 1 / -1; }

/* Fields */
.ihb-field { display: flex; flex-direction: column; gap: 7px; }
.ihb-field label { font-size: .78rem; font-weight: 700; color: #0A2E5C; text-transform: uppercase; letter-spacing: 1px; }
.ihb-field input,
.ihb-field select,
.ihb-field textarea {
  padding: 11px 14px; border: 2px solid #E2E8F0; border-radius: 10px;
  font-size: .9rem; font-family: inherit; outline: none; transition: border-color .2s;
  background: #fff; color: #1A202C;
}
.ihb-field input:focus,
.ihb-field select:focus,
.ihb-field textarea:focus { border-color: #1A6FA8; box-shadow: 0 0 0 3px rgba(26,111,168,.12); }
.ihb-field textarea { min-height: 80px; resize: vertical; }

/* Toggle */
.ihb-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-top: 4px; }
.ihb-toggle input { display: none; }
.ihb-toggle-slider {
  width: 44px; height: 24px; border-radius: 12px; background: #E2E8F0;
  position: relative; flex-shrink: 0; transition: background .2s;
}
.ihb-toggle-slider::after {
  content: ''; position: absolute; width: 18px; height: 18px; background: #fff;
  border-radius: 50%; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.ihb-toggle input:checked ~ .ihb-toggle-slider { background: #10B981; }
.ihb-toggle input:checked ~ .ihb-toggle-slider::after { transform: translateX(20px); }
.ihb-toggle-lbl { font-size: .85rem; color: #64748B; }

/* Nav Buttons */
.ihb-nav-row { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #E2E8F0; }
.ihb-btn-next {
  padding: 12px 28px; background: #0A2E5C; color: #fff; border: none;
  border-radius: 10px; font-weight: 800; font-size: .88rem; cursor: pointer; transition: all .2s;
}
.ihb-btn-next:hover { background: #1A6FA8; transform: translateY(-1px); }
.ihb-btn-back {
  padding: 12px 22px; background: #F4F7FB; color: #64748B; border: none;
  border-radius: 10px; font-weight: 700; font-size: .88rem; cursor: pointer; transition: all .2s;
}
.ihb-btn-back:hover { background: #E2E8F0; }

/* Quote Preview */
.ihb-quote-preview {
  background: #F4F7FB; border: 1px solid #E2E8F0; border-radius: 12px;
  padding: 20px 24px; margin-top: 20px;
}
.ihb-quote-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid #E2E8F0; font-size: .88rem;
}
.ihb-quote-row:last-of-type { border-bottom: none; }
.ihb-quote-row span:first-child { color: #64748B; }
.ihb-quote-row span:last-child  { font-weight: 700; color: #1A202C; }
.ihb-quote-total { background: #fff; border-radius: 8px; padding: 10px 14px; margin-top: 8px; border: none; }
.ihb-quote-total span:first-child { font-weight: 800; color: #0A2E5C; }
.ihb-quote-total span:last-child  { font-size: 1.1rem; font-weight: 900; color: #E8A020; }
.ihb-quote-note { font-size: .75rem; color: #94A3B8; margin: 10px 0 0; text-align: center; }

/* Summary Card */
.ihb-summary-card {
  background: #F4F7FB; border: 1px solid #E2E8F0; border-radius: 14px;
  padding: 20px 24px; margin-bottom: 24px;
}
.ihb-sum-title { font-size: .78rem; font-weight: 800; color: #0A2E5C; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px; }
.ihb-sum-grid  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px 20px; margin-bottom: 14px; }
.ihb-sum-label { font-size: .72rem; color: #94A3B8; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.ihb-sum-val   { font-size: .86rem; font-weight: 600; color: #1A202C; margin-top: 2px; }
.ihb-sum-total { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid #E2E8F0; }
.ihb-sum-total span:first-child { font-weight: 800; color: #0A2E5C; }
.ihb-sum-total span:last-child  { font-size: 1.2rem; font-weight: 900; color: #E8A020; }

/* Gateways */
.ihb-gateway-title { font-size: .82rem; font-weight: 800; color: #0A2E5C; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.ihb-gateways { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.ihb-gw {
  border: 2px solid #E2E8F0; border-radius: 14px; padding: 18px 14px;
  text-align: center; cursor: pointer; transition: all .25s; position: relative; background: #fff;
}
.ihb-gw:hover { border-color: #1A6FA8; box-shadow: 0 4px 16px rgba(10,46,92,.1); }
.ihb-gw.active { border-color: #0A2E5C; background: #F4F7FB; box-shadow: 0 4px 20px rgba(10,46,92,.15); }
.ihb-gw-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #10B981; color: #fff; font-size: .68rem; font-weight: 800;
  padding: 2px 10px; border-radius: 10px; text-transform: uppercase; letter-spacing: 1px;
  white-space: nowrap;
}
.ihb-gw-logo { font-size: 1.6rem; margin-bottom: 6px; }
.ihb-gw-name { font-weight: 800; font-size: .88rem; color: #0A2E5C; margin-bottom: 4px; }
.ihb-gw-sub  { font-size: .72rem; color: #94A3B8; line-height: 1.4; }

/* Stripe card element */
.ihb-stripe-card {
  padding: 12px 14px; border: 2px solid #E2E8F0; border-radius: 10px;
  background: #fff; min-height: 42px;
}
.ihb-field-error { font-size: .83rem; color: #DC2626; margin-top: 6px; }

/* Pay button */
.ihb-btn-pay {
  padding: 14px 36px; background: linear-gradient(135deg,#0A2E5C,#1A6FA8);
  color: #fff; border: none; border-radius: 12px;
  font-weight: 800; font-size: .95rem; cursor: pointer; transition: all .25s;
  display: flex; align-items: center; gap: 8px;
}
.ihb-btn-pay:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,46,92,.3); }
.ihb-btn-pay:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.ihb-secure-note { font-size: .78rem; color: #94A3B8; text-align: center; margin-top: 12px; }

/* Error box */
.ihb-error-box { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; border-radius: 10px; padding: 12px 16px; font-size: .88rem; margin-top: 12px; }

/* Success */
.ihb-success { text-align: center; padding: 40px 24px; }
.ihb-success-icon { font-size: 4rem; margin-bottom: 16px; }
.ihb-success h2 { font-size: 1.8rem; font-weight: 900; color: #0A2E5C; margin: 0 0 10px; }
.ihb-success p  { color: #64748B; margin: 0 auto 20px; max-width: 420px; line-height: 1.7; }
.ihb-success-ref { background: #F4F7FB; border: 1px solid #E2E8F0; border-radius: 10px; padding: 12px 20px; font-size: .9rem; color: #64748B; margin: 8px auto; max-width: 380px; }
.ihb-success-ref strong { color: #0A2E5C; font-family: monospace; font-size: 1rem; }
.ihb-success-sub { font-size: .85rem; }

/* Validation error highlight */
.ihb-field-invalid input,
.ihb-field-invalid select,
.ihb-field-invalid textarea { border-color: #EF4444 !important; }

@media (max-width: 640px) {
  .ihb-grid2, .ihb-gateways, .ihb-sum-grid { grid-template-columns: 1fr; }
  .ihb-panel { padding: 20px 16px; }
  .ihb-steps-nav { gap: 4px; }
  .ihb-sl { display: none; }
}
