/* =========================================
   GLM RIDE BOOKING PRODUCT PAGE
   ========================================= */

body.page-template-page-glm-ride-booking {
  overflow-x: clip;
}

.rb-page {
  overflow: visible;
  background: var(--white);
}

/* ----- Hero ----- */
.rb-hero {
  padding: calc(var(--header-height) + 48px) 1.5rem 80px;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(249, 115, 22, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #FAFBFC 0%, #ffffff 100%);
}

.rb-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

.rb-hero__textcol {
  min-width: 0;
  text-align: left;
}

.rb-hero__mediacol {
  min-width: 0;
}

.rb-hero__frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8ecf0;
  box-shadow:
    0 4px 24px rgba(15, 42, 74, 0.06),
    0 24px 64px rgba(15, 42, 74, 0.1);
  background: #fff;
}

.rb-hero__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.rb-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F97316;
}

.rb-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #0F2A4A;
}

.rb-hero__desc {
  margin: 0 0 2rem;
  max-width: 540px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #475569;
}

.rb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.rb-hero__tags {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: #94a3b8;
}

/* ----- Overview (premium feature panel) ----- */
.rb-overview {
  position: relative;
  padding: clamp(64px, 8vw, 96px) 0;
  background: #fff;
}

.rb-overview__wrap {
  width: 100%;
  max-width: none;
  margin: 0;
}

.rb-overview__card {
  width: 100%;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 5vw, 4rem);
  background: #fff;
  border: none;
  border-top: 1px solid #eef0f4;
  border-bottom: 1px solid #eef0f4;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.rb-overview.is-visible .rb-overview__card {
  opacity: 1;
  transform: translateY(0);
}

.rb-overview__header {
  max-width: 680px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.rb-overview__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F97316;
}

.rb-overview__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #0F2A4A;
}

.rb-overview__desc {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #64748b;
}

.rb-overview__features {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 1.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rb-overview__feature:nth-child(11) {
  grid-column: 4 / 6;
}

.rb-overview__feature:nth-child(12) {
  grid-column: 6 / 8;
}

.rb-overview__feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.125rem;
  border-radius: 14px;
  border: 1px solid transparent;
  grid-column: span 2;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.rb-overview.is-visible .rb-overview__feature {
  opacity: 1;
  transform: translateY(0);
}

.rb-overview.is-visible .rb-overview__feature:nth-child(1)  { transition-delay: 0.08s; }
.rb-overview.is-visible .rb-overview__feature:nth-child(2)  { transition-delay: 0.12s; }
.rb-overview.is-visible .rb-overview__feature:nth-child(3)  { transition-delay: 0.16s; }
.rb-overview.is-visible .rb-overview__feature:nth-child(4)  { transition-delay: 0.20s; }
.rb-overview.is-visible .rb-overview__feature:nth-child(5)  { transition-delay: 0.24s; }
.rb-overview.is-visible .rb-overview__feature:nth-child(6)  { transition-delay: 0.28s; }
.rb-overview.is-visible .rb-overview__feature:nth-child(7)  { transition-delay: 0.32s; }
.rb-overview.is-visible .rb-overview__feature:nth-child(8)  { transition-delay: 0.36s; }
.rb-overview.is-visible .rb-overview__feature:nth-child(9)  { transition-delay: 0.40s; }
.rb-overview.is-visible .rb-overview__feature:nth-child(10) { transition-delay: 0.44s; }
.rb-overview.is-visible .rb-overview__feature:nth-child(11) { transition-delay: 0.48s; }
.rb-overview.is-visible .rb-overview__feature:nth-child(12) { transition-delay: 0.52s; }

.rb-overview__feature:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: #e8ecf0;
  box-shadow: 0 8px 24px rgba(15, 42, 74, 0.06);
}

.rb-overview.is-visible .rb-overview__feature:hover {
  transform: translateY(-3px);
}

.rb-overview__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(15, 42, 74, 0.06);
  color: #0F2A4A;
  transition: background 0.2s ease, color 0.2s ease;
}

.rb-overview__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.rb-overview__feature:hover .rb-overview__icon {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
}

.rb-overview__feature-body {
  min-width: 0;
}

.rb-overview__feature-title {
  margin: 0 0 0.375rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0F2A4A;
  transition: color 0.2s ease;
}

.rb-overview__feature:hover .rb-overview__feature-title {
  color: #062b4f;
}

.rb-overview__feature-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #64748b;
}

/* ----- Showcase sections ----- */
.rb-showcase {
  padding: clamp(64px, 8vw, 112px) 0;
}

.rb-showcase:nth-child(odd) {
  background: #F8FAFC;
}

.rb-showcase:nth-child(even) {
  background: #fff;
}

.rb-showcase__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(2rem, 5vw, 4rem);
}

.rb-showcase__textcol {
  min-width: 0;
}

.rb-showcase__mediacol {
  min-width: 0;
}

.rb-showcase__frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8ecf0;
  box-shadow: 0 12px 40px rgba(15, 42, 74, 0.08);
  background: #fff;
}

.rb-showcase__frame img {
  display: block;
  width: 100%;
  height: auto;
}

#rb-driver-portal .rb-showcase__mediacol--dual {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.875rem;
  align-items: stretch;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

#rb-driver-portal .rb-showcase__mediacol--dual .rb-showcase__frame {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 240px;
  height: 500px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

#rb-driver-portal .rb-showcase__mediacol--dual .rb-showcase__frame img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: top center;
}

.rb-showcase__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F97316;
}

.rb-showcase__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0F2A4A;
}

.rb-showcase__desc {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #64748b;
}

.rb-showcase__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
}

.rb-showcase__points li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #334155;
}

.rb-showcase__points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #F97316;
  font-weight: 700;
  font-size: 0.8125rem;
}

/* ----- Payments ----- */
.rb-payments {
  padding: clamp(64px, 8vw, 96px) 1.5rem;
  background: #fff;
}

.rb-payments__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 clamp(2rem, 5vw, 4rem);
}

.rb-payments__mediacol {
  min-width: 0;
}

.rb-payments__frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8ecf0;
  box-shadow: 0 12px 40px rgba(15, 42, 74, 0.08);
  background: #fff;
}

.rb-payments__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.rb-payments__content {
  min-width: 0;
  text-align: left;
}

.rb-payments__header {
  margin-bottom: 0;
}

.rb-payments__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #0F2A4A;
}

.rb-payments__desc {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #64748b;
}

.rb-payments__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.rb-payments__card {
  padding: 2rem 1.5rem;
  background: #F8FAFC;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  text-align: left;
}

.rb-payments__card-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F2A4A;
}

.rb-payments__card-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #64748b;
}

/* ----- Services ----- */
.rb-services {
  position: relative;
  padding: clamp(64px, 8vw, 96px) 1.5rem;
  background: #fff;
  overflow: hidden;
}

.rb-services::before {
  content: '';
  position: absolute;
  top: -8%;
  right: -4%;
  width: min(42vw, 520px);
  height: 72%;
  background-image:
    linear-gradient(rgba(15, 42, 74, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 42, 74, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 15%, transparent 72%);
  pointer-events: none;
}

.rb-services__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.rb-services__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.rb-services__title {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #0F2A4A;
}

.rb-services__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.rb-services__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 1.75rem 1.5rem;
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(15, 42, 74, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rb-services__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 42, 74, 0.08);
}

.rb-services__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  background: #f1f5f9;
  border-radius: 10px;
  color: #334155;
}

.rb-services__icon svg {
  display: block;
}

.rb-services__card-title {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.rb-services__card-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #94a3b8;
}

/* ----- Five booking styles tabs ----- */
.rb-styles {
  padding: clamp(64px, 8vw, 112px) clamp(1.5rem, 4vw, 3rem);
  background: #f8fafc;
}

.rb-styles__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.rb-styles__header {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.rb-styles__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.rb-styles__title {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #0F2A4A;
  letter-spacing: -0.02em;
}

.rb-styles__desc {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #64748b;
}

.rb-styles__panel {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

.rb-styles__cards {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.rb-styles__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 1rem 1.125rem;
  text-align: left;
  font-family: inherit;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.rb-styles__card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 42, 74, 0.06);
}

.rb-styles__card.is-active {
  background: rgba(6, 43, 79, 0.06);
  border-color: rgba(6, 43, 79, 0.22);
  box-shadow: 0 6px 20px rgba(6, 43, 79, 0.08);
}

.rb-styles__card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.rb-styles__card.is-active .rb-styles__card-num {
  color: #fff;
  background: var(--navy, #062B4F);
}

.rb-styles__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.rb-styles__card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.rb-styles__card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0F2A4A;
}

.rb-styles__card-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

.rb-styles__card-chevron {
  flex-shrink: 0;
  color: #cbd5e1;
  transition: color 0.2s, transform 0.2s;
}

.rb-styles__card.is-active .rb-styles__card-chevron {
  color: var(--navy, #062B4F);
}

.rb-styles__tab-type {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.rb-styles__tab-type--pricing {
  background: #ffedd5;
  color: #ea580c;
}

.rb-styles__tab-type--quote {
  background: rgba(6, 43, 79, 0.12);
  color: var(--navy, #062B4F);
}

.rb-styles__content {
  position: relative;
  min-height: 420px;
}

.rb-styles__pane {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
  animation: rbFadeIn 0.35s ease;
}

.rb-styles__pane.is-active {
  display: grid;
}

.rb-styles__pane--stacked.is-active {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.rb-styles__pane--stacked .rb-styles__preview {
  order: -1;
  width: 100%;
  max-width: none;
}

.rb-styles__pane--stacked .rb-styles__detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.rb-styles__pane--stacked .rb-styles__detail-meta {
  grid-column: 1;
  grid-row: 1;
}

.rb-styles__pane--stacked .rb-styles__pane-title {
  grid-column: 1;
  grid-row: 2;
}

.rb-styles__pane--stacked .rb-styles__pane-desc {
  grid-column: 1;
  grid-row: 3;
  margin-bottom: 0;
}

.rb-styles__pane--stacked .rb-styles__features {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  margin-bottom: 0;
}

.rb-styles__pane--stacked .rb-styles__access {
  grid-column: 1;
  grid-row: 4;
  max-width: 100%;
}

@keyframes rbFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rb-styles__detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.rb-styles__detail-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.rb-styles__pane-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

.rb-styles__pane-badge--pricing {
  background: #ffedd5;
  color: #ea580c;
}

.rb-styles__pane-badge--quote {
  background: rgba(6, 43, 79, 0.12);
  color: var(--navy, #062B4F);
}

.rb-styles__pane-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #0F2A4A;
  letter-spacing: -0.02em;
}

.rb-styles__pane-desc {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #64748b;
}

.rb-styles__features {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rb-styles__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #334155;
}

.rb-styles__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.1rem;
  color: #fff;
  background: #0F2A4A;
  border-radius: 50%;
}

.rb-styles__access {
  width: 100%;
  max-width: 320px;
  font: inherit;
  cursor: pointer;
}

.rb-styles__preview-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

/* ----- Product flow ----- */
.rb-flow {
  padding: clamp(64px, 8vw, 96px) 1.5rem;
  background: #0F2A4A;
  text-align: center;
}

.rb-flow__inner {
  max-width: 480px;
  margin: 0 auto;
}

.rb-flow__title {
  margin: 0 0 2.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
}

.rb-flow__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rb-flow__step {
  padding: 0.875rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.rb-flow__step-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}

.rb-flow__arrow {
  padding: 0.375rem 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.5);
  list-style: none;
}

/* ----- Final CTA ----- */
.rb-cta {
  padding: clamp(64px, 8vw, 96px) 1.5rem clamp(80px, 10vw, 112px);
  background: #0F2A4A;
  text-align: center;
}

.rb-cta__inner {
  max-width: 640px;
  margin: 0 auto;
}

.rb-cta__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #fff;
}

.rb-cta__desc {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
}

.rb-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.rb-cta__btn {
  background: #fff;
  color: #0F2A4A;
  border: none;
  cursor: pointer;
  font: inherit;
}

.rb-cta__btn:hover {
  background: #f1f5f9;
  color: #0F2A4A;
}

.rb-cta__explore {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.rb-cta__explore:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ----- Access modal ----- */
.rb-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.rb-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.rb-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 23, 42, 0.55);
  cursor: pointer;
}

.rb-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 2rem 1.75rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(15, 42, 74, 0.2);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.rb-modal.is-open .rb-modal__dialog {
  transform: translateY(0);
}

.rb-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.rb-modal__close:hover {
  background: #e2e8f0;
  color: #0F2A4A;
}

.rb-modal__badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F97316;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 4px;
}

.rb-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0F2A4A;
}

.rb-modal__text {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #64748b;
}

.rb-modal__field {
  margin-bottom: 1rem;
}

.rb-modal__label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.rb-modal__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #0F2A4A;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rb-modal__textarea {
  resize: vertical;
  min-height: 80px;
}

.rb-modal__input:focus {
  outline: none;
  border-color: #F97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.rb-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.rb-modal__submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #062b4f;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.rb-modal__submit:hover {
  background: #041e38;
}

.rb-modal__dismiss {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rb-modal__dismiss:hover {
  color: #0F2A4A;
  border-color: #cbd5e1;
  background: #f8fafc;
}

/* ----- Scroll reveal ----- */
.rb-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rb-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .rb-overview__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }

  .rb-overview__feature {
    grid-column: auto;
  }

  .rb-services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rb-showcase__points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .rb-styles__pane.is-active {
    grid-template-columns: 1fr;
  }

  .rb-styles__preview {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .rb-hero {
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 48px;
  }

  .rb-hero__inner {
    grid-template-columns: 1fr;
  }

  .rb-hero__textcol {
    text-align: center;
  }

  .rb-hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .rb-hero__actions {
    justify-content: center;
  }

  .rb-showcase__inner {
    grid-template-columns: 1fr;
  }

  .rb-showcase__inner {
    padding: 0 1.25rem;
  }

  #rb-driver-portal .rb-showcase__mediacol--dual {
    max-width: 100%;
  }

  #rb-driver-portal .rb-showcase__mediacol--dual .rb-showcase__frame {
    max-width: none;
    height: 380px;
  }

  .rb-styles__panel {
    grid-template-columns: 1fr;
  }

  .rb-styles__pane.is-active {
    grid-template-columns: 1fr;
  }

  .rb-styles__access {
    max-width: none;
  }

  .rb-styles__preview {
    order: -1;
  }

  .rb-styles__pane--stacked .rb-styles__detail {
    grid-template-columns: 1fr;
  }

  .rb-styles__pane--stacked .rb-styles__detail-meta,
  .rb-styles__pane--stacked .rb-styles__pane-title,
  .rb-styles__pane--stacked .rb-styles__pane-desc,
  .rb-styles__pane--stacked .rb-styles__features,
  .rb-styles__pane--stacked .rb-styles__access {
    grid-column: 1;
    grid-row: auto;
  }

  .rb-styles__pane--stacked .rb-styles__features {
    margin-bottom: 1.25rem;
  }

  .rb-payments__inner {
    grid-template-columns: 1fr;
    padding: 0 1.25rem;
  }

  .rb-payments__mediacol {
    order: -1;
  }

  .rb-payments__grid {
    grid-template-columns: 1fr;
  }

  .rb-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rb-overview__features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .rb-overview__feature {
    grid-column: auto;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .rb-overview__card {
    padding: 1.75rem 1.25rem;
  }

  .rb-overview__header {
    margin-bottom: 2rem;
  }

  .rb-cta__actions {
    flex-direction: column;
  }

  .rb-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .rb-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .rb-hero,
  .rb-overview,
  .rb-showcase,
  .rb-payments,
  .rb-services,
  .rb-styles,
  .rb-flow,
  .rb-cta {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .rb-services__grid {
    grid-template-columns: 1fr;
  }

  .rb-modal {
    padding: 1rem;
    align-items: flex-end;
  }

  .rb-modal__dialog {
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rb-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .rb-overview__card,
  .rb-overview__feature {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .rb-overview__feature:hover {
    transform: none;
  }

  .rb-styles__pane {
    animation: none;
  }
}
