.booking-confirmation-card,
.booking-confirmation-card *,
.booking-next-step,
.waiver-hero.is-booking-follow-up .section,
.waiver-form,
.waiver-form * {
  box-sizing: border-box;
}

.booking-confirmation-card,
.booking-next-step,
.waiver-hero.is-booking-follow-up .section,
.waiver-form label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.booking-next-step {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  overflow: hidden;
  border: 2px solid #28ad78;
  border-radius: 18px;
  background: linear-gradient(145deg, #effff7 0%, #f5fbff 100%);
  box-shadow: 0 14px 32px rgba(20, 96, 68, 0.1);
}

.booking-next-step .eyebrow,
.booking-next-step h3,
.booking-next-step p {
  margin: 0;
}

.booking-next-step h3 {
  color: #123f31;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.booking-waiver-next {
  justify-self: start;
  max-width: 100%;
  min-height: 48px;
  white-space: normal;
  text-align: center;
}

.booking-next-step-note {
  color: #315c4d;
  font-size: 0.95rem;
  font-weight: 700;
}

.booking-confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.waiver-hero.is-booking-follow-up {
  background: linear-gradient(135deg, #effff7 0%, #eef6ff 100%);
}

.waiver-hero.is-booking-follow-up .section {
  max-width: 960px;
}

.waiver-booking-reference {
  display: inline-block;
  max-width: 100%;
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  color: #23483b;
  font-size: 0.92rem;
}

.waiver-form input,
.waiver-form select,
.waiver-form textarea,
.signature-pad {
  max-width: 100%;
}

@media (max-width: 900px) {
  .booking-confirmation-actions .btn {
    flex: 1 1 220px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .waiver-hero.is-booking-follow-up .hero-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .booking-next-step {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 14px;
  }

  .booking-waiver-next,
  .booking-confirmation-actions .btn,
  .waiver-hero.is-booking-follow-up .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .booking-confirmation-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .waiver-layout,
  .waiver-layout > *,
  .waiver-form .form-grid,
  .waiver-form label {
    min-width: 0;
  }

  .waiver-form input:not([type="checkbox"]),
  .waiver-form select,
  .waiver-form textarea {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .booking-next-step h3 {
    font-size: 1.22rem;
  }

  .booking-next-step,
  .waiver-booking-reference {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
