/**
 * Kabcompare marketing homepage — scoped styles (.kbc-*)
 */

:root {
  --kbc-primary: #5c2fd4;
  --kbc-primary-dark: #4a26b0;
  --kbc-primary-soft: #ede9fe;
  --kbc-accent: #f5c518;
  --kbc-text: #0f172a;
  --kbc-text-muted: #64748b;
  --kbc-surface: #ffffff;
  --kbc-canvas: #f8fafc;
  --kbc-radius: 12px;
  --kbc-radius-pill: 999px;
  --kbc-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
  --kbc-max: 1160px;
  --kbc-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.kbc-page {
  font-family: var(--kbc-font);
  color: var(--kbc-text);
  background: var(--kbc-canvas);
  -webkit-font-smoothing: antialiased;
}

.kbc-skip {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--kbc-surface);
}
.kbc-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Nav */
.kbc-nav {
  background: var(--kbc-surface);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.kbc-nav__inner {
  max-width: var(--kbc-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.kbc-nav__brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--kbc-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.kbc-nav__brand span {
  color: var(--kbc-primary);
}
.kbc-nav__links {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.kbc-nav__links a {
  color: var(--kbc-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.kbc-nav__links a:hover {
  color: var(--kbc-text);
}
.kbc-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--kbc-primary);
  color: #fff !important;
  border-radius: var(--kbc-radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
}
.kbc-nav__cta:hover {
  background: var(--kbc-primary-dark);
  color: #fff !important;
}

/* Hero */
.kbc-hero {
  background: linear-gradient(145deg, #1e1250 0%, #3a2180 42%, #5c2fd4 100%);
  color: #fff;
  padding: 3rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}
.kbc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 100% 0%, rgba(245, 197, 24, 0.12) 0%, transparent 55%);
  pointer-events: none;
}
.kbc-hero__inner {
  max-width: var(--kbc-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}
@media (max-width: 991.98px) {
  .kbc-hero__inner {
    grid-template-columns: 1fr;
  }
}
.kbc-hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
}
.kbc-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #fff;
}
.kbc-hero__lede {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.5rem;
  max-width: 32rem;
}
.kbc-hero__link {
  color: var(--kbc-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.kbc-hero__link:hover {
  text-decoration: underline;
}

/* Quote card */
#kbc-quote.kbc-card {
  scroll-margin-top: 5rem;
}
.kbc-card {
  background: var(--kbc-surface);
  color: var(--kbc-text);
  border-radius: var(--kbc-radius);
  box-shadow: var(--kbc-shadow);
  padding: 1.5rem 1.5rem 1.25rem;
}
.kbc-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}
.kbc-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--kbc-text);
  margin-bottom: 0.35rem;
}
.kbc-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.kbc-input:focus {
  outline: none;
  border-color: var(--kbc-primary);
  box-shadow: 0 0 0 3px rgba(92, 47, 212, 0.2);
}
/* Google Places Autocomplete (pac) above sticky nav and card */
.pac-container {
  z-index: 2000 !important;
  font-family: var(--kbc-font) !important;
  border-radius: 8px;
  box-shadow: var(--kbc-shadow) !important;
  border: 1px solid #e2e8f0 !important;
  margin-top: 4px;
}
.pac-item {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.9rem !important;
  cursor: pointer;
}
.pac-item:hover,
.pac-item.pac-item-selected {
  background: var(--kbc-primary-soft) !important;
}
/* Flatpickr calendar above other UI */
.flatpickr-calendar {
  z-index: 2010;
  font-family: var(--kbc-font);
  box-shadow: var(--kbc-shadow);
  border-radius: 12px;
}
.kbc-input--datetime {
  cursor: pointer;
  background: #fff;
}
.kbc-input--datetime::placeholder {
  color: #94a3b8;
}
.kbc-field {
  margin-bottom: 1rem;
}
.kbc-seg {
  display: flex;
  border-radius: 8px;
  background: #f1f5f9;
  padding: 3px;
  gap: 3px;
}
.kbc-seg__btn {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--kbc-text-muted);
  transition: background 0.15s, color 0.15s;
}
.kbc-seg__btn[aria-pressed="true"] {
  background: var(--kbc-surface);
  color: var(--kbc-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.kbc-seg__btn:focus {
  outline: 2px solid var(--kbc-primary);
  outline-offset: 2px;
}
.kbc-datetime {
  display: none;
  margin-top: 0.5rem;
}
.kbc-datetime.is-visible {
  display: block;
}
.kbc-field--autocomplete {
  position: relative;
  z-index: 1;
}
.kbc-field--autocomplete:focus-within {
  z-index: 8;
}
/* Input with trailing "use my location" control (From) */
.kbc-input-suffix {
  position: relative;
  display: block;
}
.kbc-input-suffix--text-only .kbc-input {
  width: 100%;
}
.kbc-input--with-suffix {
  padding-right: 2.75rem;
}
.kbc-suggest {
  list-style: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0.2rem 0 0;
  padding: 0.25rem 0;
  z-index: 2015;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: var(--kbc-shadow);
  max-height: 14.5rem;
  overflow: auto;
  font-size: 0.9rem;
}
.kbc-suggest li {
  padding: 0.5rem 0.75rem;
  margin: 0;
  cursor: pointer;
  color: var(--kbc-text);
}
.kbc-suggest li:hover,
.kbc-suggest li:focus {
  background: var(--kbc-primary-soft);
  outline: none;
}
.kbc-locate-btn {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(92, 47, 212, 0.1);
  color: var(--kbc-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}
.kbc-locate-btn:hover:not(:disabled) {
  background: rgba(92, 47, 212, 0.18);
  color: var(--kbc-primary-dark);
}
.kbc-locate-btn:focus {
  outline: 2px solid var(--kbc-primary);
  outline-offset: 2px;
}
.kbc-locate-btn:disabled,
.kbc-locate-btn.is-loading {
  opacity: 0.65;
  cursor: wait;
}
.kbc-locate-btn .fa-crosshairs,
.kbc-locate-btn .fa-location-arrow {
  font-size: 0.95rem;
}
.kbc-locate-msg {
  font-size: 0.75rem;
  margin: 0.35rem 0 0;
  min-height: 1.1em;
  color: var(--kbc-text-muted);
}
.kbc-locate-msg.kbc-locate-msg--err {
  color: #b91c1c;
}
.kbc-locate-msg.kbc-locate-msg--hint {
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.4;
}
.kbc-btn-primary {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.8rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--kbc-primary);
  border: none;
  border-radius: var(--kbc-radius-pill);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.kbc-btn-primary:hover {
  background: var(--kbc-primary-dark);
}
.kbc-btn-primary:active {
  transform: scale(0.99);
}
.kbc-form-hint {
  font-size: 0.8rem;
  color: #16a34a;
  margin: 0.5rem 0 0;
  min-height: 1.2em;
}

/* Section common */
.kbc-section {
  padding: 4rem 1.25rem;
}
.kbc-section--muted {
  background: var(--kbc-canvas);
}
.kbc-section--white {
  background: var(--kbc-surface);
}
.kbc-section__inner {
  max-width: var(--kbc-max);
  margin: 0 auto;
}
.kbc-section__head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}
.kbc-section__head h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--kbc-text);
}
.kbc-section__head p {
  margin: 0;
  color: var(--kbc-text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* Trust */
.kbc-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 767.98px) {
  .kbc-reviews {
    grid-template-columns: 1fr;
  }
}
.kbc-review {
  background: var(--kbc-surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--kbc-radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.kbc-review__stars {
  color: #f5c518;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.kbc-review__text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--kbc-text);
  margin: 0 0 0.75rem;
}
.kbc-review__meta {
  font-size: 0.8125rem;
  color: var(--kbc-text-muted);
  font-weight: 500;
}
.kbc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 575.98px) {
  .kbc-stats {
    grid-template-columns: 1fr;
  }
}
.kbc-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: var(--kbc-radius);
}
.kbc-stat__val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--kbc-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.kbc-stat__label {
  font-size: 0.9rem;
  color: var(--kbc-text-muted);
  margin-top: 0.25rem;
}

/* How it works */
.kbc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 991.98px) {
  .kbc-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575.98px) {
  .kbc-steps {
    grid-template-columns: 1fr;
  }
}
.kbc-step {
  text-align: center;
  padding: 0 0.5rem;
}
.kbc-step__num {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kbc-primary-soft);
  color: var(--kbc-primary);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
}
.kbc-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--kbc-text);
}
.kbc-step p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--kbc-text-muted);
  margin: 0;
}

/* Bottom CTA */
.kbc-cta {
  background: linear-gradient(135deg, #3d2180 0%, #5c2fd4 100%);
  color: #fff;
  padding: 3.5rem 1.25rem;
  text-align: center;
}
.kbc-cta h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #fff;
}
.kbc-cta .kbc-btn-primary {
  max-width: 280px;
  background: #fff;
  color: var(--kbc-primary);
  margin: 0 auto;
  display: block;
}
.kbc-cta .kbc-btn-primary:hover {
  background: #f1f5f9;
  color: var(--kbc-primary-dark);
}

/* Legacy content sections (FAQ, legal) — align with new system */
.kbc-legacy .section-title h2 {
  font-weight: 800;
  text-align: left;
}
.kbc-legacy .service-block {
  border-radius: var(--kbc-radius) !important;
}
.kbc-legacy hr {
  border-bottom: 4px solid var(--kbc-primary) !important;
  width: 3rem !important;
  border-top: none !important;
}

/* Footer */
.kbc-footer {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 2.5rem 1.25rem 0;
}
.kbc-footer a {
  color: #cbd5e1;
  text-decoration: none;
}
.kbc-footer a:hover {
  color: #fff;
}
.kbc-footer__inner {
  max-width: var(--kbc-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 767.98px) {
  .kbc-footer__inner {
    grid-template-columns: 1fr;
  }
}
.kbc-footer__meta {
  line-height: 1.6;
  margin: 0.25rem 0;
  font-size: 0.85rem;
}
.kbc-footer__bar {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.8rem;
  color: #64748b;
}
.kbc-footer__bar a {
  color: #94a3b8;
}
.kbc-social {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  gap: 0.75rem;
}
.kbc-social a {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.kbc-social a:hover {
  background: var(--kbc-primary);
  color: #fff;
}
.kbc-footer__head {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Navbar mobile collapse — reuse bootstrap, minimal overrides */
.kbc-nav .navbar-toggler {
  border: 1px solid #e2e8f0;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
}
.kbc-nav .navbar-collapse {
  flex-grow: 0;
}
@media (max-width: 991.98px) {
  .kbc-nav__links--collapse {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0.75rem 0 0;
  }
}

/* —— Quote results page —— */
.kbc-page--results {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.kbc-page--results main {
  flex: 1;
}
.kbc-results-hero {
  background: linear-gradient(145deg, #1e1250 0%, #3a2180 42%, #5c2fd4 100%);
  color: #fff;
  padding: 2rem 1.25rem 2.5rem;
}
.kbc-results-hero__inner {
  max-width: var(--kbc-max);
  margin: 0 auto;
}
.kbc-results-hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.kbc-results-hero__lede {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.25rem;
  line-height: 1.5;
  max-width: 40rem;
}
.kbc-trip-line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
}
.kbc-trip-line strong {
  font-weight: 600;
  color: #fff;
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.2rem;
}
.kbc-trip-line span {
  max-width: 100%;
  word-break: break-word;
}
.kbc-when-pill {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--kbc-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
}
.kbc-filters {
  max-width: var(--kbc-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: end;
}
@media (max-width: 767.98px) {
  .kbc-filters {
    grid-template-columns: 1fr;
  }
}
.kbc-filters__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--kbc-text-muted);
  margin-bottom: 0.4rem;
  display: block;
}
select.kbc-input {
  cursor: pointer;
  appearance: auto;
  background-image: none;
  padding-right: 2rem;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E")
    no-repeat right 0.7rem center;
  appearance: none;
}
.kbc-result-count {
  max-width: var(--kbc-max);
  margin: 0 auto;
  padding: 0.5rem 1.25rem 0;
  font-size: 0.9rem;
  color: var(--kbc-text-muted);
}
.kbc-result-count strong {
  color: var(--kbc-text);
  font-weight: 600;
}
.kbc-result-list {
  max-width: var(--kbc-max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.kbc-result-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  background: var(--kbc-surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--kbc-radius);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.kbc-result-card:hover {
  box-shadow: var(--kbc-shadow);
  border-color: #cbd5e1;
}
.kbc-result-card.is-filtered-out {
  display: none;
}
.kbc-result-card__main {
  flex: 1;
  min-width: 0;
}
.kbc-result-card__op {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--kbc-text);
  margin: 0 0 0.2rem;
  letter-spacing: -0.01em;
}
.kbc-result-card__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-size: 0.9rem;
  color: var(--kbc-text-muted);
}
.kbc-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #f1f5f9;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--kbc-text);
}
.kbc-pill--car {
  background: var(--kbc-primary-soft);
  color: var(--kbc-primary-dark);
}
.kbc-stars {
  color: #f5c518;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.kbc-result-card__side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.kbc-result-card__price {
  text-align: right;
}
.kbc-result-card__price-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--kbc-text-muted);
  font-weight: 600;
  margin: 0 0 0.1rem;
}
.kbc-result-card__price-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--kbc-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.kbc-btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--kbc-primary);
  border: none;
  border-radius: var(--kbc-radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.kbc-btn-inline:hover {
  background: var(--kbc-primary-dark);
  color: #fff;
}
a.kbc-btn-inline {
  text-decoration: none;
  color: #fff;
}
a.kbc-btn-inline:hover {
  color: #fff;
}
.kbc-nav__link--muted {
  color: var(--kbc-text-muted) !important;
  font-weight: 500;
}
.kbc-nav__link--muted:hover {
  color: var(--kbc-text) !important;
}
.kbc-footer--compact {
  margin-top: auto;
}
.kbc-footer--compact .kbc-footer__inner {
  padding-bottom: 1.5rem;
}
.kbc-no-results {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: var(--kbc-text-muted);
  max-width: 24rem;
  margin: 0 auto;
}
.kbc-no-results[hidden] {
  display: none;
}

/* —— Booking details —— */
.kbc-booking-wrap {
  max-width: var(--kbc-max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem 2.5rem;
  align-items: start;
}
@media (max-width: 991.98px) {
  .kbc-booking-wrap {
    grid-template-columns: 1fr;
  }
}
.kbc-booking-summary {
  position: sticky;
  top: 5rem;
  background: var(--kbc-surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--kbc-radius);
  padding: 1.5rem 1.35rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.kbc-booking-summary h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--kbc-text);
  letter-spacing: -0.02em;
}
.kbc-booking-summary__op {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--kbc-primary);
  margin: 0 0 0.5rem;
}
.kbc-booking-summary__row {
  font-size: 0.9rem;
  color: var(--kbc-text-muted);
  line-height: 1.5;
  margin: 0.25rem 0;
}
.kbc-booking-summary__row strong {
  color: var(--kbc-text);
  font-weight: 600;
}
.kbc-booking-form .kbc-card {
  max-width: none;
}
.kbc-textarea {
  width: 100%;
  min-height: 5.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.kbc-textarea:focus {
  outline: none;
  border-color: var(--kbc-primary);
  box-shadow: 0 0 0 3px rgba(92, 47, 212, 0.2);
}
.kbc-otp {
  border: 1px dashed #c4b5fd;
  background: #faf5ff;
  border-radius: var(--kbc-radius);
  padding: 1.1rem 1.25rem;
  margin-top: 1.25rem;
}
.kbc-otp__title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--kbc-text-muted);
  margin: 0 0 0.35rem;
}
.kbc-otp__hint {
  font-size: 0.85rem;
  color: var(--kbc-text-muted);
  margin: 0.5rem 0 0;
  min-height: 1.2em;
}
.kbc-otp__hint[hidden] {
  display: none;
}
.kbc-otp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}
.kbc-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--kbc-primary);
  background: #fff;
  border: 1px solid #c4b5fd;
  border-radius: var(--kbc-radius-pill);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.kbc-btn-ghost:hover {
  background: var(--kbc-primary-soft);
  color: var(--kbc-primary-dark);
}
.kbc-otp-ok {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: #15803d;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.kbc-otp-ok.is-on {
  display: flex;
}
.kbc-otp-err {
  color: #b91c1c;
  font-size: 0.85rem;
  margin: 0.4rem 0 0;
  min-height: 1.2em;
}
.kbc-otp-err[hidden] {
  display: none;
}
.kbc-booking-hint {
  font-size: 0.8rem;
  color: #16a34a;
  margin: 0.75rem 0 0;
  min-height: 1.2em;
}
.kbc-otp__inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}
.kbc-otp__inline .kbc-input {
  max-width: 8.5rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.kbc-otp input[type="text"][disabled] {
  background: #f1f5f9;
  cursor: not-allowed;
  color: #64748b;
}

/* —— Payment —— */
.kbc-capture-notice {
  max-width: var(--kbc-max);
  margin: 0 auto 1.5rem;
  padding: 1rem 1.15rem 1.05rem 1.15rem;
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-left: 4px solid #d97706;
  border-radius: var(--kbc-radius);
  font-size: 0.92rem;
  line-height: 1.55;
  color: #78350f;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.kbc-capture-notice strong {
  color: #451a03;
  font-weight: 700;
}
.kbc-payment-wrap {
  max-width: var(--kbc-max);
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem 2.5rem;
  align-items: start;
}
@media (max-width: 991.98px) {
  .kbc-payment-wrap {
    grid-template-columns: 1fr;
  }
}
.kbc-payment-summary {
  background: var(--kbc-surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--kbc-radius);
  padding: 1.4rem 1.35rem;
  position: sticky;
  top: 5rem;
}
.kbc-contact-lines {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--kbc-text-muted);
  margin: 0.5rem 0 0;
}
.kbc-contact-lines p {
  margin: 0.3rem 0;
  word-break: break-word;
}
.kbc-pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 0.5rem;
}
@media (max-width: 480px) {
  .kbc-pay-grid {
    grid-template-columns: 1fr;
  }
}
.kbc-pay-tile {
  position: relative;
  display: block;
  cursor: pointer;
  border-radius: var(--kbc-radius);
  border: 2px solid #e2e8f0;
  background: #fff;
  padding: 1.15rem 1rem 1.1rem;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  min-height: 5.5rem;
}
.kbc-pay-tile:hover {
  border-color: #c4b5fd;
  box-shadow: 0 1px 4px rgba(92, 47, 212, 0.08);
}
.kbc-pay-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}
.kbc-pay-tile:focus-within {
  box-shadow: 0 0 0 3px rgba(92, 47, 212, 0.3);
  outline: none;
}
.kbc-pay-tile.is-selected {
  border-color: var(--kbc-primary);
  background: var(--kbc-primary-soft);
  box-shadow: 0 0 0 1px var(--kbc-primary);
}
.kbc-pay-tile__icon {
  font-size: 1.5rem;
  color: var(--kbc-primary);
  margin-bottom: 0.35rem;
  display: block;
}
.kbc-pay-tile__label {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--kbc-text);
  display: block;
  letter-spacing: -0.02em;
}
.kbc-pay-tile__sub {
  font-size: 0.8rem;
  color: var(--kbc-text-muted);
  margin-top: 0.25rem;
  line-height: 1.35;
  display: block;
}
label.kbc-pay-tile:has(input:checked) {
  border-color: var(--kbc-primary);
  background: var(--kbc-primary-soft);
  box-shadow: 0 0 0 1px var(--kbc-primary);
}
.kbc-payment-hint {
  font-size: 0.8rem;
  color: #16a34a;
  margin: 0.75rem 0 0;
  min-height: 1.2em;
}

/* —— Confirmation (request sent) —— */
.kbc-confirm-hero {
  text-align: center;
  padding: 2.25rem 1.25rem 2.5rem;
  background: linear-gradient(145deg, #1e1250 0%, #3a2180 42%, #5c2fd4 100%);
  color: #fff;
}
.kbc-confirm-hero__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1.5rem;
  color: #fff;
}
.kbc-confirm-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.kbc-confirm-hero p {
  margin: 0 auto;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}
.kbc-confirm-hero__ref {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--kbc-radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.kbc-confirm-body {
  max-width: var(--kbc-max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}
.kbc-confirm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 767.98px) {
  .kbc-confirm-grid {
    grid-template-columns: 1fr;
  }
}
.kbc-confirm-card {
  background: var(--kbc-surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--kbc-radius);
  padding: 1.2rem 1.25rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.kbc-confirm-card h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  color: var(--kbc-text-muted);
  margin: 0 0 0.5rem;
}
.kbc-confirm-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--kbc-text);
}
.kbc-confirm-link-wrap {
  text-align: center;
  margin: 0.5rem 0 1.25rem;
}
a.kbc-confirm-link,
.kbc-confirm-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--kbc-primary);
  border: none;
  border-radius: var(--kbc-radius-pill);
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}
a.kbc-confirm-link:hover,
.kbc-confirm-link:hover {
  color: #fff;
  background: var(--kbc-primary-dark);
}
#kbc-booking-status-panel {
  scroll-margin-top: 5.5rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: var(--kbc-radius);
  padding: 1.25rem 1.35rem 1.35rem;
}
#kbc-booking-status-panel h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--kbc-text);
}
.kbc-confirm-timeline {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  border-left: 2px solid #c4b5fd;
  padding-left: 1rem;
}
.kbc-confirm-timeline li {
  position: relative;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--kbc-text-muted);
  margin: 0.4rem 0;
  padding-left: 0.25rem;
}
.kbc-confirm-timeline li::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.45em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--kbc-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #c4b5fd;
}
.kbc-confirm-timeline li strong {
  color: var(--kbc-text);
  font-weight: 600;
}
.kbc-confirm-sub {
  font-size: 0.8rem;
  color: var(--kbc-text-muted);
  margin: 0.5rem 0 0;
  line-height: 1.45;
}
.kbc-confirm-back {
  text-align: center;
  margin-top: 1.5rem;
}
.kbc-confirm-back a {
  color: var(--kbc-primary);
  font-weight: 600;
  text-decoration: none;
}
.kbc-confirm-back a:hover {
  text-decoration: underline;
}

/* —— Standalone booking status (email / token link) —— */
.kbc-status-page {
  max-width: var(--kbc-max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}
.kbc-status-card {
  background: var(--kbc-surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--kbc-radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  margin-bottom: 1.1rem;
}
.kbc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kbc-badge--pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fcd34d;
}
.kbc-badge--cancel {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.kbc-status-h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  color: var(--kbc-text);
  letter-spacing: -0.02em;
}
.kbc-status-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--kbc-text-muted);
  margin: 0 0 0.35rem;
}
.kbc-clipboard {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
}
.kbc-clipboard__input {
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.8rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-family: ui-monospace, monospace;
  color: var(--kbc-text);
}
.kbc-clipboard__btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid #c4b5fd;
  background: #fff;
  color: var(--kbc-primary);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.kbc-clipboard__btn:hover {
  background: var(--kbc-primary-soft);
}
.kbc-pill-note {
  font-size: 0.8rem;
  color: var(--kbc-text-muted);
  margin: 0.4rem 0 0;
  line-height: 1.45;
}
.kbc-alert-ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.kbc-form-cancel {
  margin: 0;
  display: inline;
}
.kbc-btn-danger-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  color: #b91c1c;
  background: #fff;
  border: 1px solid #f87171;
  border-radius: var(--kbc-radius-pill);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.kbc-btn-danger-outline:hover {
  background: #fef2f2;
  border-color: #dc2626;
}
.kbc-missing {
  text-align: center;
  max-width: 24rem;
  margin: 4rem auto;
  padding: 0 1.25rem;
  color: var(--kbc-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.kbc-missing a {
  color: var(--kbc-primary);
  font-weight: 600;
}
