.booking-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
  color: #1a1c1c;
}

html {
  scrollbar-gutter: stable;
}

.booking-title {
  font-size: clamp(1.85rem, 2vw, 2.3rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}

.booking-subtitle {
  color: #6f6770;
  margin: 0.65rem 0 2rem;
  font-size: 0.95rem;
}

.booking-card {
  background: #f3f3f3;
  border: 1px solid #e4d7e3;
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 24px rgba(54, 0, 62, 0.05);
}

.booking-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.booking-title-with-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.booking-step {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 9999px;
  display: inline-grid;
  place-items: center;
  background: #ffd6fd;
  color: #7b038d;
  font-size: 0.72rem;
  font-weight: 700;
}

.booking-field-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
  color: #736b74;
  margin-bottom: 0.38rem;
  font-weight: 700;
}

.booking-label-with-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.booking-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.booking-input,
.booking-select {
  width: 100%;
  border: 1px solid #ddd1db;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.72rem 0.82rem;
  font-size: 0.92rem;
  color: #1a1c1c;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

/* Force consistent rounding when utility/base form styles compete in the cascade. */
.booking-shell .booking-input,
.booking-shell .booking-select {
  border: 1px solid #ddd1db !important;
  background-color: #ffffff !important;
  color: #1a1c1c;
  border-radius: 12px !important;
}

/* Keep required empty fields visually consistent instead of browser/plugin invalid tint. */
.booking-shell .booking-input:required:invalid,
.booking-shell .booking-select:required:invalid {
  border-color: #ddd1db !important;
  box-shadow: none;
}

.booking-input:focus,
.booking-select:focus {
  outline: none;
  border-color: #a83db7;
  box-shadow: 0 0 0 3px rgba(168, 61, 183, 0.14);
}

.booking-shell .booking-input:focus,
.booking-shell .booking-select:focus {
  border-color: #a83db7 !important;
  box-shadow: 0 0 0 3px rgba(168, 61, 183, 0.14) !important;
}

.booking-input-error {
  border-color: #ba1a1a;
  box-shadow: 0 0 0 3px rgba(186, 26, 26, 0.12);
}

.booking-input-error:focus {
  border-color: #ba1a1a;
  box-shadow: 0 0 0 3px rgba(186, 26, 26, 0.14);
}

.booking-shell .booking-input.booking-input-error,
.booking-shell .booking-input.booking-input-error:focus {
  border-color: #ba1a1a !important;
  box-shadow: 0 0 0 3px rgba(186, 26, 26, 0.14) !important;
}

.booking-choice {
  border: 1px solid #ddd1db;
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  background: #ffffff;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.booking-choice-compact {
  min-height: 4.15rem;
  padding: 0.7rem 0.72rem;
}

.booking-choice-compact .booking-choice-title {
  font-size: 0.84rem;
  line-height: 1.35;
}

.booking-choice input {
  accent-color: #8b1e9c;
  margin-top: 0.2rem;
}

.booking-choice:has(input:checked) {
  border-color: #a83db7;
  background-color: #fcf7fd;
}

.booking-choice-title {
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.booking-tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  border-radius: 50%;
  background-color: #e2e2e2;
  color: #514250;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: help;
  transition: background-color 180ms ease;
}

.booking-tooltip-trigger:hover {
  background-color: #d4c1d1;
}

.booking-tooltip-trigger:hover + .booking-tooltip {
  opacity: 1;
  visibility: visible;
}

.booking-tooltip-trigger:focus-visible + .booking-tooltip {
  opacity: 1;
  visibility: visible;
}

.booking-tooltip {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1a1c1c;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  white-space: normal;
  width: min(420px, calc(100vw - 1.5rem));
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
  z-index: 10;
  box-shadow: 0 8px 16px rgba(26, 28, 28, 0.32);
}

.booking-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #1a1c1c;
}

.booking-accommodation-details {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 450ms ease, max-height 450ms ease, padding-top 450ms ease;
  pointer-events: none;
}

.booking-accommodation-details.is-visible {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e4d7e3;
  max-height: 1200px;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
}

.booking-info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background-color: #f3f3f3;
  border-radius: 9px;
  border: 1px solid #e4d7e3;
}

.booking-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  min-width: 1.2rem;
  color: #8b1e9c;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  flex-shrink: 0;
}

.booking-info-text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #514250;
}

.booking-payment-info {
  margin-top: 0.85rem;
}

.booking-stay-dates-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 1.25rem;
  background-color: #f3f3f3;
  border-radius: 9px;
  border: 1px solid #e4d7e3;
}

.booking-stay-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
  color: #736b74;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.booking-stay-dates-text {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1c1c;
  letter-spacing: -0.01em;
}

.booking-accommodation-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.booking-total {
  margin: 0.8rem 0 1rem;
  border-radius: 10px;
  border: 1px solid #e4d7e3;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7ebfa 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.booking-payment-summary {
  margin-top: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #e4d7e3;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.7rem 0.9rem;
}

.booking-cost-summary {
  padding: 0;
}

.booking-cost-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.2rem 0;
}

.booking-cost-summary-key {
  font-size: 0.75rem;
  color: #736b74;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.booking-cost-summary-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #3a2d39;
}

.booking-payment-summary .booking-total {
  margin: 0.5rem 0 0;
  border: 0;
  border-top: 1px solid #e6dbe7;
  border-radius: 0;
  background: transparent;
  padding: 0.75rem 0 0;
}

.booking-total-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: #736b74;
  font-weight: 700;
}

.booking-total-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #7b038d;
  letter-spacing: -0.01em;
}

.booking-submit {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #a83db7 0%, #8b1e9c 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: filter 180ms ease, transform 180ms ease;
}

.booking-consent-block {
  margin: 0.75rem 0 0.9rem;
}

.booking-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #514250;
}

.booking-consent-label input {
  margin-top: 0.16rem;
  accent-color: #8b1e9c;
}

.booking-placeholder-link {
  color: #7b038d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.booking-placeholder-link:hover {
  opacity: 0.85;
}

.booking-consent-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #ba1a1a;
  font-weight: 600;
}

.booking-consent-error.is-visible {
  display: block;
}

.booking-submit:hover {
  filter: brightness(1.04);
}

.booking-submit:active {
  transform: translateY(1px);
}

.booking-submit:disabled {
  background: linear-gradient(180deg, #c9bcc9 0%, #b4a7b4 100%);
  color: #f8f5f8;
  cursor: not-allowed;
  opacity: 0.9;
  filter: none;
  box-shadow: none;
}

.booking-submit:disabled:hover,
.booking-submit:disabled:active {
  filter: none;
  transform: none;
}

.booking-submit-status {
  margin-top: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  line-height: 1.4;
  min-height: 2.3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.booking-submit-status.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.booking-submit-status.is-info {
  background: #f8f0fb;
  border-color: #e4d7e3;
  color: #514250;
}

.booking-submit-status.is-success {
  background: #ecfdf3;
  border-color: #a6f4c5;
  color: #027a48;
}

.booking-submit-status.is-error {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}

.booking-legal {
  text-align: center;
  margin-top: 0.6rem;
  font-size: 0.7rem;
  color: #786f79;
}

.booking-hidden {
  display: none;
}

.booking-date-error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #ba1a1a;
  font-weight: 600;
}

.booking-date-error.is-visible {
  display: block;
}

.booking-course-price {
  align-self: end;
}

.booking-accommodation-price {
  margin-top: 0.9rem;
}

.booking-accommodation-bottom-grid .booking-accommodation-price {
  margin-top: 0;
  align-self: stretch;
}

.booking-course-price-box {
  border: 1px solid #e4d7e3;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f0fb 100%);
  padding: 0.85rem 0.95rem;
}

.booking-course-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.22rem 0;
}

.booking-course-price-key {
  font-size: 0.75rem;
  color: #6f6770;
}

.booking-course-price-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1c1c;
  text-align: right;
}

.booking-course-price-total-row {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e6dbe7;
}

.booking-course-price-total {
  font-size: 1rem;
  font-weight: 800;
  color: #7b038d;
  letter-spacing: -0.01em;
}

@media (max-width: 720px) {
  .booking-grid,
  .booking-grid-3 {
    grid-template-columns: 1fr;
  }

  /* Keep tooltips fully visible on small screens by anchoring to the viewport. */
  .booking-tooltip {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    top: auto;
    transform: none;
    width: auto;
    max-width: none;
    z-index: 999;
  }

  .booking-tooltip::after {
    display: none;
  }

  .booking-accommodation-details.is-visible {
    max-height: 1800px;
  }

  .booking-choice-compact {
    min-height: auto;
  }

  .booking-accommodation-bottom-grid {
    grid-template-columns: 1fr;
  }

  .booking-course-price {
    align-self: auto;
  }
}
