:root {
  --navy: #0d2853;
  --navy-deep: #081a38;
  --orange: #ff8a24;
  --orange-hover: #ed7610;
  --white: #ffffff;
  --background: #f3f6fb;
  --text: #182842;
  --muted: #69778d;
  --border: #dfe6ef;
  --success: #16794b;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Arial, sans-serif;
  line-height: 1.6;
}

button, input, select, textarea {
  font: inherit;
}

.booking-page {
  width: min(1180px, calc(100% - 40px));
  margin: 48px auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 65px rgba(13, 40, 83, 0.1);
}

.booking-intro {
  background: #0d2853;
  color: var(--white);
  padding: 52px 40px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 62px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
}

.brand b {
  color: var(--orange);
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 2px solid var(--orange);
  border-radius: 12px;
  color: var(--orange);
  font-size: 15px;
}

.eyebrow {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.booking-intro h1 {
  font-size: clamp(32px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin: 17px 0;
}

.booking-intro h1 span {
  color: var(--orange);
}

.booking-intro > p {
  color: #d4deee;
  font-size: 15px;
  margin: 0 0 34px;
}

.benefit {
  display: flex;
  gap: 15px;
  margin: 13px 0;
}

.benefit-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--orange);
  border: 1px solid rgba(255, 138, 36, 0.45);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.benefit h3 {
  font-size: 14px;
  margin: 0 0 4px;
}

.benefit p {
  margin: 0;
  color: #bdcce1;
  font-size: 12px;
}

.intro-footer {
  margin-top: auto;
  padding-top: 42px;
  color: #bdcce1;
  font-size: 12px;
}

.booking-panel {
  padding: 43px 42px;
  min-width: 0;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 25px;
}

.panel-heading h2 {
  color: var(--navy);
  font-size: 29px;
  letter-spacing: -0.8px;
  margin: 5px 0;
}

.panel-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.duration {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff2e6;
  color: #a84e00;
  font-size: 12px;
  font-weight: 700;
}

.field {
  margin-bottom: 19px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field label,
.slot-heading label {
  display: block;
  font-size: 12px;
  color: var(--navy);
  font-weight: 750;
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  background: #fff;
  outline: none;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 36, 0.13);
}

.field textarea {
  resize: vertical;
}

.field small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.slot-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.slot-heading > span {
  color: var(--muted);
  font-size: 10px;
}

.slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.slot {
  padding: 10px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.slot:hover {
  border-color: var(--orange);
  background: #fff9f3;
}

.slot.selected {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.slot:focus-visible,
.submit-button:focus-visible {
  outline: 3px solid rgba(255, 138, 36, 0.5);
  outline-offset: 3px;
}

.slot-placeholder {
  color: var(--muted);
  font-size: 12px;
  grid-column: 1 / -1;
}

.notice {
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 9px;
  font-size: 12px;
}

.notice.error {
  color: var(--error);
  background: #fff0ef;
}

.notice.info {
  color: var(--navy);
  background: #eef4ff;
}

.submit-button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--orange);
  color: white;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.submit-button:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.submit-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.privacy-note {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  margin: 13px 0 0;
}

.success-panel {
  text-align: center;
  padding: 35px 0 10px;
}

.success-icon {
  margin: 0 auto 17px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4f7ed;
  color: var(--success);
  font-size: 30px;
}

.success-panel h2 {
  color: var(--navy);
}

.success-panel p {
  font-size: 13px;
  color: var(--muted);
}

.reference-box {
  background: var(--background);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.reference-box span {
  color: var(--muted);
  font-size: 11px;
}

.reference-box strong {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 13px;
}

.reference-box button,
.back-link {
  color: #b95700;
  font-size: 12px;
  font-weight: 750;
}

.reference-box button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.back-link {
  display: inline-block;
  margin-top: 10px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 850px) {
  .booking-page {
    width: min(650px, calc(100% - 28px));
    grid-template-columns: 1fr;
    margin: 24px auto;
  }

  .booking-intro {
    padding: 32px 26px;
  }

  .brand {
    margin-bottom: 30px;
  }

  .booking-intro h1 {
    font-size: 34px;
  }

  .intro-footer {
    padding-top: 25px;
  }

  .booking-panel {
    padding: 32px 26px;
  }
}

@media (max-width: 480px) {
  .booking-page {
    width: calc(100% - 20px);
    margin: 10px auto;
    border-radius: 15px;
  }

  .booking-intro {
    padding: 27px 20px;
  }

  .booking-panel {
    padding: 26px 18px;
  }

  .panel-heading h2 {
    font-size: 25px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duration {
    font-size: 10px;
  }
}