@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

.qcb-section,
.qcb-section * {
  box-sizing: border-box;
  font-family: 'Tajawal', Arial, sans-serif;
}

.qcb-section {
  position: relative;
  padding: 70px 0;
  background:
    radial-gradient(circle at top right, rgba(215, 25, 32, .10), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  overflow: hidden;
}

.qcb-container {
  width: min(1200px, calc(100% - 28px));
  margin: auto;
}

.qcb-section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 28px;
}

.qcb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(215, 25, 32, .09);
  color: var(--qcb-primary, #d71920);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
}

.qcb-section-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -.4px;
}

.qcb-section-head p {
  margin: 14px auto 0;
  color: #64748b;
  font-size: 17px;
  line-height: 1.9;
}

.qcb-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.qcb-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 145px;
  min-height: 50px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
}

.qcb-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(15, 23, 42, .10);
}

.qcb-tab.is-active {
  background: var(--qcb-primary, #d71920);
  color: #fff;
  border-color: var(--qcb-primary, #d71920);
}

.qcb-tab-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.16);
}

.qcb-tab-panel {
  display: none;
}

.qcb-tab-panel.is-active {
  display: block;
}

.qcb-slider-wrap {
  position: relative;
}

.qcb-slider-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 12px 5px 26px;
  scrollbar-width: none;
  direction: ltr;
}

.qcb-slider-track::-webkit-scrollbar {
  display: none;
}

.qcb-car-card {
  direction: rtl;
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 270px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.qcb-car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .14);
  border-color: rgba(215, 25, 32, .20);
}

.qcb-car-image {
  height: 205px;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}

.qcb-car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.qcb-car-card:hover .qcb-car-image img {
  transform: scale(1.06);
}

.qcb-no-image {
  height: 100%;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-weight: 800;
}

.qcb-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(17, 24, 39, .82);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.qcb-car-content {
  padding: 18px;
}

.qcb-car-content h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 900;
}

.qcb-car-content p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
  min-height: 50px;
  margin: 0 0 14px;
}

.qcb-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  padding: 11px 12px;
  margin-bottom: 14px;
}

.qcb-card-meta span {
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
}

.qcb-card-meta strong {
  color: var(--qcb-primary, #d71920);
  font-size: 14px;
  font-weight: 900;
  text-align: left;
}

.qcb-hidden-price {
  color: #111827 !important;
}

.qcb-book-btn,
.qcb-details-btn,
.qcb-primary,
.qcb-secondary,
.qcb-print-btn {
  font-family: inherit;
}

.qcb-card-actions {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 10px;
}

.qcb-book-btn,
.qcb-details-btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.qcb-book-btn {
  color: #fff;
  background: var(--qcb-primary, #d71920);
  box-shadow: 0 14px 30px rgba(215, 25, 32, .22);
}

.qcb-details-btn {
  color: #111827;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
}

.qcb-book-btn:hover,
.qcb-details-btn:hover {
  transform: translateY(-2px);
}

.qcb-book-btn:hover {
  box-shadow: 0 18px 35px rgba(215, 25, 32, .30);
}

.qcb-details-btn:hover {
  color: var(--qcb-primary, #d71920);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .10);
}

.qcb-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-55%);
  width: 48px;
  height: 48px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .12);
}

.qcb-prev { right: -10px; }
.qcb-next { left: -10px; }

.qcb-empty {
  direction: rtl;
  width: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd5e1;
  background: #fff;
  border-radius: 22px;
  color: #64748b;
  font-weight: 800;
}


.qcb-details-modal {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.qcb-details-modal.is-open {
  display: flex;
}

.qcb-details-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(8px);
}

.qcb-details-box {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 34px);
  overflow-y: auto;
  background: #fff;
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 35px 90px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.32);
}

.qcb-details-body {
  display: grid;
  gap: 18px;
}

.qcb-details-hero {
  position: relative;
  min-height: 280px;
  border-radius: 26px;
  overflow: hidden;
  background: #f1f5f9;
}

.qcb-details-main-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.qcb-details-title-box {
  position: absolute;
  right: 18px;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
  backdrop-filter: blur(12px);
}

.qcb-car-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.qcb-car-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.qcb-details-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(215, 25, 32, .10);
  color: var(--qcb-primary, #d71920);
  font-size: 13px;
  font-weight: 900;
}

.qcb-details-title-box h3 {
  margin: 7px 0 0;
  color: #111827;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.25;
  font-weight: 900;
}

.qcb-details-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.qcb-details-info-grid div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
}

.qcb-details-info-grid strong,
.qcb-details-text h4,
.qcb-details-gallery h4 {
  display: block;
  margin: 0 0 8px;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
}

.qcb-details-info-grid span {
  color: #64748b;
  font-weight: 800;
}

.qcb-details-text {
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 18px;
  background: #fff;
}

.qcb-details-text p {
  margin: 0 0 10px;
  color: #475569;
  font-size: 15px;
  line-height: 1.9;
}

.qcb-details-gallery > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.qcb-details-gallery a {
  display: block;
  height: 130px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.qcb-details-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.qcb-details-gallery a:hover img {
  transform: scale(1.05);
}

body.qcb-modal-open {
  overflow: hidden;
}

.qcb-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.qcb-modal.is-open {
  display: flex;
}

.qcb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(8px);
}

.qcb-modal-box {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 34px);
  overflow-y: auto;
  background: #fff;
  border-radius: 30px;
  padding: 25px;
  box-shadow: 0 35px 90px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.32);
}

.qcb-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.qcb-modal-head {
  padding-left: 45px;
  margin-bottom: 16px;
}

.qcb-modal-head span {
  color: var(--qcb-primary, #d71920);
  font-size: 14px;
  font-weight: 900;
}

.qcb-modal-head h3 {
  margin: 5px 0 0;
  color: #111827;
  font-size: 28px;
  font-weight: 900;
}

.qcb-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 22px;
}

.qcb-steps span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 900;
  border: 1px solid #e2e8f0;
}

.qcb-steps span.is-active {
  background: var(--qcb-primary, #d71920);
  color: #fff;
  border-color: var(--qcb-primary, #d71920);
}

.qcb-form-step {
  display: none;
}

.qcb-form-step.is-active {
  display: block;
}

.qcb-form-step h4 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 900;
  color: #111827;
}

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

.qcb-form-grid .full {
  grid-column: 1 / -1;
}

.qcb-booking-form label {
  display: block;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

.qcb-booking-form input[type="text"],
.qcb-booking-form input[type="tel"],
.qcb-booking-form input[type="date"],
.qcb-booking-form input[type="datetime-local"],
.qcb-booking-form input[type="month"],
.qcb-booking-form input[type="file"] {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #111827;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.qcb-booking-form input:focus {
  border-color: var(--qcb-primary, #d71920);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, .10);
}

.qcb-booking-unit-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 16px;
  padding: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.qcb-date-hour,
.qcb-date-month {
  display: none;
}

.qcb-payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.qcb-payment-card {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  min-height: 120px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
  cursor: pointer;
}

.qcb-payment-card input {
  margin-top: 4px;
  accent-color: var(--qcb-primary, #d71920);
}

.qcb-payment-card strong {
  display: block;
  color: #111827;
  font-size: 15px;
  margin-bottom: 6px;
}

.qcb-payment-card small {
  display: block;
  color: #64748b;
  font-size: 13px;
  line-height: 1.75;
}

.qcb-review-box {
  display: grid;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
  margin-top: 14px;
  color: #334155;
}

.qcb-review-box strong {
  color: #111827;
  font-size: 16px;
}

.qcb-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.qcb-primary,
.qcb-secondary {
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.qcb-primary {
  background: var(--qcb-primary, #d71920);
  color: #fff;
  box-shadow: 0 12px 25px rgba(215, 25, 32, .20);
}

.qcb-secondary {
  background: #f1f5f9;
  color: #111827;
}

.qcb-submit-btn {
  display: none;
}

.qcb-form-message {
  margin-top: 12px;
  font-weight: 800;
}

.qcb-form-message.is-error {
  color: #b91c1c;
}

.qcb-form-message.is-success,
.qcb-success-note {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 900;
  margin-bottom: 14px;
}

.qcb-receipt-result {
  display: none;
}

.qcb-receipt {
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.qcb-status {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 900;
  margin-bottom: 10px;
}

.qcb-receipt h2 {
  margin: 0 0 8px;
  font-size: 27px;
  font-weight: 900;
  color: #111827;
}

.qcb-receipt .muted {
  color: #64748b;
  line-height: 1.8;
}

.qcb-receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.qcb-receipt-grid div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  color: #111827;
}

.qcb-receipt-grid strong {
  display: block;
  color: #64748b;
  margin-bottom: 3px;
}

.qcb-print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 44px;
  border-radius: 14px;
  padding: 10px 18px;
  color: #fff !important;
  background: var(--qcb-primary, #d71920);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .qcb-car-card {
    flex-basis: calc((100% - 36px) / 3);
  }
}

@media (max-width: 780px) {
  .qcb-section { padding: 48px 0; }
  .qcb-section-head h2 { font-size: 30px; }
  .qcb-section-head p { font-size: 15px; }
  .qcb-car-card { flex-basis: calc((100% - 18px) / 2); min-width: 245px; }
  .qcb-slider-arrow { width: 42px; height: 42px; font-size: 30px; }
  .qcb-prev { right: 0; }
  .qcb-next { left: 0; }
  .qcb-modal,
  .qcb-details-modal { padding: 10px; align-items: flex-end; }
  .qcb-modal-box,
  .qcb-details-box { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; padding: 20px; }
  .qcb-form-grid,
  .qcb-payment-options,
  .qcb-receipt-grid,
  .qcb-details-info-grid { grid-template-columns: 1fr; }
  .qcb-modal-head h3 { font-size: 23px; }
  .qcb-details-main-img { height: 240px; }
  .qcb-details-gallery > div { grid-template-columns: repeat(2, 1fr); }
  .qcb-details-title-box { position: relative; right: auto; left: auto; bottom: auto; margin: -55px 12px 0; }
}

@media (max-width: 520px) {
  .qcb-container { width: min(100% - 18px, 1200px); }
  .qcb-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .qcb-tab { min-width: 0; width: 100%; min-height: 46px; font-size: 14px; }
  .qcb-slider-track { gap: 12px; padding-inline: 2px; }
  .qcb-car-card { flex-basis: 86%; min-width: 86%; border-radius: 22px; }
  .qcb-car-image { height: 185px; }
  .qcb-car-content h3 { font-size: 19px; }
  .qcb-form-actions { position: sticky; bottom: -20px; background: #fff; padding-top: 12px; z-index: 5; }
  .qcb-primary, .qcb-secondary { flex: 1; padding-inline: 10px; }
  .qcb-card-actions { grid-template-columns: 1fr; }
  .qcb-details-main-img { height: 210px; }
  .qcb-details-title-box { align-items: flex-start; }
  .qcb-car-logo { width: 54px; height: 54px; flex-basis: 54px; }
  .qcb-details-gallery a { height: 110px; }
}

/* v1.2 — availability, premium booking popup and printable receipt */
.qcb-modal-box {
  width: min(920px, 100%);
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 40px 120px rgba(2, 6, 23, .35);
}

.qcb-modal-head {
  position: relative;
  margin: 0;
  padding: 30px 34px 64px 80px;
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,.22), transparent 32%),
    linear-gradient(135deg, var(--qcb-primary, #d71920), #111827 82%);
  color: #fff;
  overflow: hidden;
}

.qcb-modal-head:after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  left: -60px;
  bottom: -95px;
  border-radius: 50%;
  border: 32px solid rgba(255,255,255,.08);
}

.qcb-modal-head span,
.qcb-modal-head h3 {
  position: relative;
  z-index: 1;
  color: #fff;
}

.qcb-modal-head span {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
}

.qcb-modal-head h3 {
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.25;
}

.qcb-close {
  z-index: 9;
  top: 18px;
  left: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 28px rgba(15,23,42,.18);
}

.qcb-steps {
  position: relative;
  z-index: 2;
  margin: -36px auto 20px;
  width: min(640px, calc(100% - 34px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 20px 55px rgba(15, 23, 42, .16);
  backdrop-filter: blur(14px);
}

.qcb-steps span {
  width: 100%;
  height: auto;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 18px;
  background: #f8fafc;
  color: #64748b;
}

.qcb-steps span b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-size: 13px;
}

.qcb-steps span small {
  font-size: 12px;
  font-weight: 900;
}

.qcb-steps span.is-active {
  background: rgba(215, 25, 32, .10);
  color: var(--qcb-primary, #d71920);
  border-color: rgba(215, 25, 32, .22);
}

.qcb-steps span.is-active b {
  background: var(--qcb-primary, #d71920);
  color: #fff;
}

.qcb-booking-form {
  padding: 0 28px 28px;
}

.qcb-form-step {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 14px 35px rgba(15,23,42,.06);
}

.qcb-form-step h4 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.qcb-form-step h4:before {
  content: "";
  width: 10px;
  height: 28px;
  border-radius: 999px;
  background: var(--qcb-primary, #d71920);
}

.qcb-booking-form input[type="text"],
.qcb-booking-form input[type="tel"],
.qcb-booking-form input[type="date"],
.qcb-booking-form input[type="datetime-local"],
.qcb-booking-form input[type="month"],
.qcb-booking-form input[type="file"] {
  min-height: 54px;
  border-radius: 17px;
  background: #f8fafc;
}

.qcb-payment-card {
  position: relative;
  min-height: 136px;
  background: linear-gradient(180deg,#ffffff,#f8fafc);
  box-shadow: 0 12px 32px rgba(15,23,42,.06);
}

.qcb-payment-card:has(input:checked) {
  border-color: rgba(215, 25, 32, .42);
  background: rgba(215, 25, 32, .06);
}

.qcb-availability-message:not(:empty) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 16px;
  padding: 12px 14px;
  margin: 2px 0 14px;
  font-weight: 900;
  line-height: 1.7;
}

.qcb-availability-message.is-checking {
  color: #075985;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.qcb-availability-message.is-success {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.qcb-availability-message.is-error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.qcb-form-actions {
  padding-inline: 2px;
}

.qcb-primary:disabled,
.qcb-secondary:disabled {
  opacity: .65;
  cursor: not-allowed;
  box-shadow: none;
}

.qcb-receipt {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 30px;
  padding: 0;
  box-shadow: 0 24px 65px rgba(15, 23, 42, .12);
}

.qcb-receipt-watermark {
  position: absolute;
  left: 26px;
  top: 118px;
  font-size: 72px;
  line-height: 1;
  font-weight: 900;
  color: rgba(15,23,42,.035);
  transform: rotate(-12deg);
  pointer-events: none;
}

.qcb-receipt-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(135deg, #111827, var(--qcb-primary, #d71920));
  color: #fff;
}

.qcb-receipt-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qcb-receipt-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  color: var(--qcb-primary, #d71920);
  font-size: 25px;
  overflow: hidden;
}

.qcb-receipt-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.qcb-receipt-brand strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.qcb-receipt-brand small,
.qcb-receipt-number span {
  display: block;
  color: rgba(255,255,255,.78);
  font-weight: 800;
}

.qcb-receipt-number {
  text-align: left;
}

.qcb-receipt-number strong {
  display: block;
  font-size: 25px;
  font-weight: 900;
}

.qcb-receipt-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px 22px 8px;
}

.qcb-receipt-strip > img {
  width: 150px;
  height: 110px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.qcb-receipt-strip h2 {
  margin: 4px 0 6px;
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 900;
  color: #111827;
}

.qcb-receipt-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 22px;
}

.qcb-receipt-grid div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
  color: #111827;
  min-height: 72px;
}

.qcb-receipt-grid div.wide {
  grid-column: 1 / -1;
}

.qcb-receipt-grid strong {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 5px;
}

.qcb-receipt-footer {
  position: relative;
  z-index: 1;
  margin: 0 22px 18px;
  padding: 15px;
  border-radius: 20px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.qcb-receipt-footer p {
  margin: 0 0 5px;
  font-weight: 900;
}

.qcb-receipt-footer span {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.qcb-receipt-actions {
  position: relative;
  z-index: 1;
  padding: 0 22px 22px;
}

.qcb-print-btn {
  border: 0;
  cursor: pointer;
}

@media (max-width: 780px) {
  .qcb-modal-head { padding: 26px 24px 58px 72px; }
  .qcb-steps { grid-template-columns: 1fr 1fr 1fr; gap: 7px; width: calc(100% - 20px); }
  .qcb-steps span { min-height: 56px; border-radius: 15px; }
  .qcb-steps span small { font-size: 11px; }
  .qcb-booking-form { padding: 0 16px 22px; }
  .qcb-form-step { padding: 16px; border-radius: 22px; }
  .qcb-receipt-strip { grid-template-columns: 1fr; }
  .qcb-receipt-strip > img { width: 100%; height: 180px; }
}

@media (max-width: 520px) {
  .qcb-modal-box { border-radius: 28px 28px 0 0; }
  .qcb-modal-head h3 { font-size: 24px; }
  .qcb-steps { margin-top: -32px; }
  .qcb-steps span b { width: 23px; height: 23px; }
  .qcb-receipt-header { align-items: flex-start; flex-direction: column; }
  .qcb-receipt-number { text-align: right; }
  .qcb-receipt-grid { grid-template-columns: 1fr; margin-inline: 16px; }
  .qcb-receipt-footer, .qcb-receipt-actions { margin-inline: 16px; padding-inline: 0; }
}

/* v1.3 — full booking page, no popups */
.qcb-book-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.qcb-card-actions-single {
  grid-template-columns: 1fr;
}

.qcb-booking-page,
.qcb-booking-page * {
  box-sizing: border-box;
  font-family: 'Tajawal', Arial, sans-serif;
}

.qcb-booking-page {
  position: relative;
  min-height: 100vh;
  padding: 48px 0 70px;
  background:
    radial-gradient(circle at top right, rgba(215, 25, 32, .12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(17, 24, 39, .08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%);
  overflow: hidden;
}

.qcb-booking-page-bg {
  position: absolute;
  inset: auto -120px -220px auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  border: 58px solid rgba(215, 25, 32, .06);
  pointer-events: none;
}

.qcb-booking-container {
  position: relative;
  width: min(1220px, calc(100% - 28px));
  margin: auto;
}

.qcb-booking-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.qcb-booking-topbar a,
.qcb-booking-topbar span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
}

.qcb-booking-topbar a {
  color: #111827;
  background: #fff;
  border: 1px solid #e5e7eb;
  text-decoration: none !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .07);
}

.qcb-booking-topbar span {
  color: var(--qcb-primary, #d71920);
  background: rgba(215, 25, 32, .09);
  border: 1px solid rgba(215, 25, 32, .14);
}

.qcb-booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr);
  gap: 22px;
  align-items: start;
}

.qcb-booking-car-panel,
.qcb-booking-form-panel {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 34px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .10);
  overflow: hidden;
}

.qcb-booking-form-panel {
  position: sticky;
  top: 18px;
  padding-bottom: 24px;
}

.qcb-booking-hero-img {
  position: relative;
  min-height: 340px;
  background: #f1f5f9;
  overflow: hidden;
}

.qcb-booking-hero-img img,
.qcb-booking-hero-img .qcb-no-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: grid;
  place-items: center;
}

.qcb-booking-hero-img span {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .82);
  color: #fff;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.qcb-booking-car-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -42px 22px 0;
  padding: 17px;
  background: rgba(255,255,255,.95);
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, .14);
  backdrop-filter: blur(14px);
}

.qcb-booking-brand-logo {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  border: 1px solid #e5e7eb;
  background: #fff;
  overflow: hidden;
}

.qcb-booking-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.qcb-booking-car-head small,
.qcb-page-form-head span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--qcb-primary, #d71920);
  background: rgba(215, 25, 32, .09);
  font-weight: 900;
  font-size: 13px;
}

.qcb-booking-car-head h1,
.qcb-page-form-head h2 {
  margin: 9px 0 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 900;
}

.qcb-booking-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 22px;
}

.qcb-booking-info-grid div {
  min-height: 92px;
  padding: 16px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.qcb-booking-info-grid strong {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.qcb-booking-info-grid span {
  display: block;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.6;
}

.qcb-booking-description,
.qcb-booking-gallery {
  margin: 0 22px 22px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.qcb-booking-description h2,
.qcb-booking-gallery h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.qcb-booking-description p,
.qcb-booking-description li {
  color: #475569;
  font-size: 15px;
  line-height: 1.95;
}

.qcb-booking-description p:last-child {
  margin-bottom: 0;
}

.qcb-booking-gallery > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.qcb-booking-gallery a {
  display: block;
  height: 126px;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.qcb-booking-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.qcb-booking-gallery a:hover img {
  transform: scale(1.05);
}

.qcb-page-form-head {
  padding: 28px 28px 64px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.20), transparent 30%),
    linear-gradient(135deg, #111827 0%, var(--qcb-primary, #d71920) 100%);
}

.qcb-page-form-head span {
  color: #fff;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
}

.qcb-page-form-head h2 {
  color: #fff;
  font-size: clamp(26px, 4vw, 38px);
}

.qcb-page-form-head p {
  margin: 12px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.9;
}

.qcb-booking-form-panel .qcb-steps {
  margin-top: -38px;
}

.qcb-booking-form-panel .qcb-booking-form {
  padding: 0 24px 0;
}

.qcb-booking-form-panel .qcb-form-step {
  min-height: 260px;
}

.qcb-booking-form-panel .qcb-receipt-result {
  padding: 0 24px;
}

.qcb-booking-empty {
  width: min(760px, calc(100% - 28px));
  margin: 60px auto;
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #991b1b;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}

@media (max-width: 1050px) {
  .qcb-booking-layout {
    grid-template-columns: 1fr;
  }
  .qcb-booking-form-panel {
    position: static;
  }
}

@media (max-width: 780px) {
  .qcb-booking-page { padding: 26px 0 45px; }
  .qcb-booking-container { width: min(100% - 18px, 1220px); }
  .qcb-booking-topbar { flex-direction: column; align-items: stretch; }
  .qcb-booking-topbar a,
  .qcb-booking-topbar span { justify-content: center; }
  .qcb-booking-car-panel,
  .qcb-booking-form-panel { border-radius: 26px; }
  .qcb-booking-hero-img,
  .qcb-booking-hero-img img,
  .qcb-booking-hero-img .qcb-no-image { min-height: 240px; height: 260px; }
  .qcb-booking-car-head { margin: -32px 14px 0; padding: 13px; border-radius: 22px; }
  .qcb-booking-brand-logo { width: 58px; height: 58px; flex-basis: 58px; }
  .qcb-booking-info-grid { grid-template-columns: 1fr; padding: 16px; }
  .qcb-booking-description,
  .qcb-booking-gallery { margin: 0 16px 16px; padding: 16px; }
  .qcb-booking-gallery > div { grid-template-columns: repeat(2, 1fr); }
  .qcb-page-form-head { padding: 22px 18px 58px; }
  .qcb-booking-form-panel .qcb-booking-form { padding: 0 14px; }
  .qcb-booking-form-panel .qcb-receipt-result { padding: 0 14px; }
}

@media (max-width: 520px) {
  .qcb-booking-car-head { align-items: flex-start; }
  .qcb-booking-car-head h1 { font-size: 24px; }
  .qcb-booking-gallery a { height: 108px; }
  .qcb-booking-form-panel .qcb-form-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 12px 0 0;
    z-index: 5;
  }
}
