.booking-workflow {
  --sc8-green: #078b43;
  --sc8-green-dark: #075f31;
  --sc8-orange: #ff8500;
  --sc8-cream: #fff9ef;
  --sc8-text: #17251c;
  --sc8-muted: #5c6b61;
  position: relative;
  isolation: isolate;
  min-height: 720px;
  margin-top: 120px;
  overflow: visible;
  background: var(--sc8-cream);
}
.booking-workflow__background {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(255,249,239,.98) 0%, rgba(255,249,239,.90) 43%, rgba(255,249,239,.22) 74%, rgba(255,249,239,.03) 100%),
    url("../images/how-to-book/how-to-book-bg.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}
.booking-workflow::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 115px;
  background: linear-gradient(to bottom, transparent, rgba(255,249,239,.94));
  pointer-events: none;
}
.booking-workflow__container {
  width: min(1240px, calc(100% - 48px));
  min-height: 720px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(390px, .94fr) minmax(430px, 1.06fr);
  align-items: center;
  gap: clamp(34px, 6vw, 100px);
}
.booking-workflow__content {
  position: relative;
  z-index: 3;
  max-width: 590px;
  padding-block: 72px;
}
.booking-workflow__eyebrow {
  margin: 0 0 9px;
  color: var(--sc8-green);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.booking-workflow__title {
  margin: 0 0 34px;
  color: var(--sc8-green-dark);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: .95;
  letter-spacing: -.055em;
}
.booking-workflow__title span { color: var(--sc8-orange); }

.booking-steps { position: relative; display: grid; gap: 20px; }
.booking-steps::before {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 42px;
  left: 37px;
  border-left: 3px dotted rgba(7,139,67,.48);
}
.booking-step {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: center;
}
.booking-step__visual { position: relative; z-index: 1; width: 80px; min-height: 70px; }
.booking-step__icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 2px solid var(--sc8-green);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 24px rgba(4,103,48,.11);
}
.booking-step__icon img { width: 43px; height: 43px; display: block; }
.booking-step__number {
  position: absolute;
  top: 2px;
  right: 0;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 3px solid var(--sc8-cream);
  border-radius: 50%;
  color: #fff;
  background: var(--sc8-green-dark);
  font-size: .82rem;
  font-weight: 800;
}
.booking-step h3 { margin: 0 0 5px; font-size: 1.1rem; line-height: 1.25; }
.booking-step p { max-width: 430px; margin: 0; color: var(--sc8-muted); font-size: .94rem; line-height: 1.5; }
.booking-workflow__button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 0 98px;
  padding: 15px 23px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--sc8-orange), #ee5817);
  box-shadow: 0 13px 30px rgba(238,88,23,.24);
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.booking-workflow__button:hover,
.booking-workflow__button:focus-visible { transform: translateY(-3px); box-shadow: 0 17px 38px rgba(238,88,23,.32); }

.booking-phone-stage {
  position: relative;
  z-index: 5;
  align-self: stretch;
  min-height: 720px;
  perspective: 1600px;
  pointer-events: none;
}
.booking-phone-stage__glow {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,177,91,.20), transparent 69%);
  filter: blur(10px);
  transform: translateX(-50%);
}
.booking-phone {
  position: absolute;
  top: -135px;
  left: 50%;
  width: clamp(300px, 31vw, 465px);
  max-width: none;
  height: auto;
  display: block;
  filter: drop-shadow(28px 38px 28px rgba(17,46,28,.26));
  transform-origin: center;
  animation: sc8-phone-float 5.6s ease-in-out infinite;
  will-change: transform;
}
@keyframes sc8-phone-float {
  0%, 100% { transform: translateX(-48%) translateY(0) rotateY(-11deg) rotateX(2deg) rotateZ(1.5deg); }
  50% { transform: translateX(-48%) translateY(-16px) rotateY(-8deg) rotateX(.5deg) rotateZ(.5deg); }
}

@media (max-width: 1024px) {
  .booking-workflow { margin-top: 88px; }
  .booking-workflow__container { grid-template-columns: .98fr 1.02fr; gap: 22px; }
  .booking-phone { top: -82px; width: clamp(280px, 38vw, 390px); }
  .booking-workflow__button { margin-left: 98px; }
}
@media (max-width: 767px) {
  .booking-workflow { min-height: auto; margin-top: 65px; overflow: hidden; }
  .booking-workflow__background {
    background-image:
      linear-gradient(to bottom, rgba(255,249,239,.99) 0%, rgba(255,249,239,.94) 58%, rgba(255,249,239,.40) 100%),
      url("../images/how-to-book/how-to-book-bg.webp");
    background-position: 60% bottom;
  }
  .booking-workflow__container { width: min(100% - 30px, 620px); min-height: auto; grid-template-columns: 1fr; gap: 0; }
  .booking-workflow__content { max-width: none; padding: 56px 0 24px; }
  .booking-step { grid-template-columns: 72px 1fr; gap: 14px; }
  .booking-step__visual { width: 72px; }
  .booking-step__icon { width: 62px; height: 62px; }
  .booking-step__icon img { width: 39px; height: 39px; }
  .booking-steps::before { left: 33px; }
  .booking-workflow__button { margin-left: 86px; }
  .booking-phone-stage { min-height: 540px; }
  .booking-phone { top: 8px; width: min(81vw, 365px); }
  @keyframes sc8-phone-float {
    0%, 100% { transform: translateX(-50%) translateY(0) rotateY(-8deg) rotateX(1deg) rotateZ(1deg); }
    50% { transform: translateX(-50%) translateY(-10px) rotateY(-6deg) rotateX(0) rotateZ(.25deg); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .booking-phone { animation: none; }
}
