:root {
  --mda-tbp-emerald: #063f34;
  --mda-tbp-navy: #071a2f;
  --mda-tbp-black: #070706;
  --mda-tbp-gold: #c6a15b;
  --mda-tbp-gold-soft: #ead7ac;
  --mda-tbp-pearl: #fbf8f0;
  --mda-tbp-cream: #fffdf8;
  --mda-tbp-muted: #6d675c;
  --mda-tbp-line: rgba(198, 161, 91, 0.28);
  --mda-tbp-shadow: 0 26px 70px rgba(7, 26, 47, 0.12);
}

.mda-tbp-booking,
.mda-tbp-booking * {
  box-sizing: border-box;
}

.mda-tbp-booking {
  overflow: hidden;
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--mda-tbp-line);
  border-radius: 34px;
  color: var(--mda-tbp-black);
  background: var(--mda-tbp-cream);
  box-shadow: var(--mda-tbp-shadow);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mda-tbp-intro {
  padding: clamp(32px, 6vw, 64px);
  background:
    radial-gradient(circle at 84% 10%, rgba(198, 161, 91, 0.26), transparent 30%),
    linear-gradient(135deg, #102943 0%, #071a2f 58%, #070706 100%);
}

.mda-tbp-kicker {
  margin: 0 0 12px;
  color: #f6df9f;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mda-tbp-intro h2 {
  max-width: 850px;
  margin: 0;
  color: #fff4c4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.mda-tbp-intro > p:not(.mda-tbp-kicker) {
  max-width: 780px;
  margin: 20px 0 0;
  color: rgba(251, 248, 240, 0.84);
  font-size: 1.08rem;
  line-height: 1.75;
}

.mda-tbp-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.mda-tbp-facts span {
  padding: 16px 18px;
  border: 1px solid rgba(234, 215, 172, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.mda-tbp-facts strong,
.mda-tbp-facts small {
  display: block;
}

.mda-tbp-facts strong {
  color: #fffdf8;
  font-size: 0.98rem;
}

.mda-tbp-facts small {
  margin-top: 4px;
  color: rgba(251, 248, 240, 0.66);
}

.mda-tbp-form {
  padding: clamp(26px, 6vw, 64px);
  background:
    linear-gradient(90deg, rgba(198, 161, 91, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #fffdf8, #fbf8f0);
  background-size: 84px 84px, auto;
}

.mda-tbp-section-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 0 0 24px;
}

.mda-tbp-section-head:not(:first-of-type) {
  margin-top: 46px;
}

.mda-tbp-section-head > span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--mda-tbp-navy);
  background: linear-gradient(135deg, #f6df9f, var(--mda-tbp-gold));
  font-weight: 900;
}

.mda-tbp-section-head h3 {
  margin: 0;
  color: var(--mda-tbp-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -0.025em;
}

.mda-tbp-section-head p {
  margin: 7px 0 0;
  color: var(--mda-tbp-muted);
  line-height: 1.55;
}

.mda-tbp-grid {
  display: grid;
  gap: 18px;
}

.mda-tbp-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mda-tbp-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mda-tbp-grid + .mda-tbp-grid {
  margin-top: 18px;
}

.mda-tbp-field {
  display: grid;
  gap: 8px;
}

.mda-tbp-field--full {
  margin-top: 18px;
}

.mda-tbp-field > span {
  color: var(--mda-tbp-navy);
  font-size: 0.88rem;
  font-weight: 850;
}

.mda-tbp-field b {
  color: #a52f23;
}

.mda-tbp-field small {
  color: var(--mda-tbp-muted);
  font-weight: 500;
}

.mda-tbp-field input,
.mda-tbp-field select,
.mda-tbp-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid rgba(198, 161, 91, 0.32);
  border-radius: 15px;
  color: var(--mda-tbp-navy);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mda-tbp-field textarea {
  min-height: 130px;
  resize: vertical;
}

.mda-tbp-field input:focus,
.mda-tbp-field select:focus,
.mda-tbp-field textarea:focus {
  border-color: rgba(198, 161, 91, 0.7);
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.12);
}

.mda-tbp-review {
  margin-top: 30px;
  padding: 22px 24px;
  border: 1px solid rgba(198, 161, 91, 0.32);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(234, 215, 172, 0.2), rgba(255, 255, 255, 0.8));
}

.mda-tbp-review strong {
  color: var(--mda-tbp-emerald);
}

.mda-tbp-review p {
  margin: 7px 0 0;
  color: var(--mda-tbp-muted);
  line-height: 1.65;
}

.mda-tbp-agreement {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--mda-tbp-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: #4f544f;
  font-weight: 700;
  line-height: 1.55;
}

.mda-tbp-agreement input {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-top: 2px;
  accent-color: var(--mda-tbp-gold);
}

.mda-tbp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
}

.mda-tbp-submit {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border: 1px solid rgba(255, 244, 196, 0.45);
  border-radius: 999px;
  color: var(--mda-tbp-navy);
  background: linear-gradient(135deg, #fff4c4 0%, #f3d98a 40%, var(--mda-tbp-gold) 100%);
  box-shadow: 0 16px 38px rgba(198, 161, 91, 0.26);
  font-weight: 950;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mda-tbp-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(198, 161, 91, 0.34);
}

.mda-tbp-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.mda-tbp-message {
  margin: 0;
  color: var(--mda-tbp-muted);
  font-weight: 700;
}

.mda-tbp-message.is-error {
  color: #a52f23;
}

.mda-tbp-success {
  padding: clamp(44px, 8vw, 90px) 24px;
  text-align: center;
  background: linear-gradient(180deg, #fffdf8, #fbf8f0);
}

.mda-tbp-success > span {
  display: inline-flex;
  width: 68px;
  height: 68px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #071a2f;
  background: linear-gradient(135deg, #f6df9f, #c6a15b);
  font-size: 2rem;
  font-weight: 900;
}

.mda-tbp-success h3 {
  margin: 24px 0 12px;
  color: var(--mda-tbp-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.mda-tbp-success p {
  max-width: 680px;
  margin: 0 auto 18px;
  color: var(--mda-tbp-muted);
  line-height: 1.7;
}

.mda-tbp-success strong {
  color: var(--mda-tbp-emerald);
}

.mda-tbp-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 780px) {
  .mda-tbp-facts,
  .mda-tbp-grid--2,
  .mda-tbp-grid--3 {
    grid-template-columns: 1fr;
  }

  .mda-tbp-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mda-tbp-submit {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .mda-tbp-booking {
    border-radius: 24px;
  }

  .mda-tbp-intro,
  .mda-tbp-form {
    padding: 26px 20px;
  }

  .mda-tbp-section-head {
    gap: 12px;
  }

  .mda-tbp-section-head > span {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mda-tbp-booking *,
  .mda-tbp-booking *::before,
  .mda-tbp-booking *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
