/* ================================================================
 * BOOKING PAGE + THANK-YOU PAGE
 * Scoped to: body.em-booking-page, body.em-thankyou-page
 * Depends on tours.css for .em-archive-hero (enqueued together)
 * ================================================================ */

.em-booking-page,
.em-thankyou-page {
  background: var(--em-bg);
  color: var(--em-ink);
}

/* ---------------------------------------------------------------
 * BOOKING SECTION
 * ------------------------------------------------------------- */
.em-booking-section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.em-booking-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3.5rem;
  align-items: start;
}

/* ---------------------------------------------------------------
 * FORM CONTAINER
 * ------------------------------------------------------------- */
.em-booking-form-wrap {
  background: #fff;
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 4px 40px rgba(28, 24, 19, .07);
}

.em-booking-form-wrap > h2 {
  font-family: var(--em-font-head);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--em-ink);
  margin: 0 0 1.8rem;
}

/* Form layout */
.em-booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.em-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.em-form-divider {
  font-family: var(--em-font-head);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--em-muted);
  border-top: 1px solid rgba(28, 24, 19, .1);
  padding-top: 1.2rem;
  margin-top: .2rem;
}

/* ---------------------------------------------------------------
 * FORM FIELD GROUPS
 * ------------------------------------------------------------- */
.em-field-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.em-field-group label {
  font-family: var(--em-font-head);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--em-muted);
}

.em-field-group label .req {
  color: var(--em-gold);
  margin-left: .2rem;
}

.em-field-group input,
.em-field-group select,
.em-field-group textarea {
  font-family: var(--em-font-body);
  font-size: .95rem;
  color: var(--em-ink);
  background: var(--em-bg);
  border: 1.5px solid rgba(28, 24, 19, .16);
  border-radius: 12px;
  padding: .85rem 1.1rem;
  width: 100%;
  transition: border-color .25s, box-shadow .25s, background .2s;
  appearance: none;
  -webkit-appearance: none;
}

/* Custom select arrow */
.em-field-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6f5f' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
  cursor: pointer;
}

.em-field-group input:focus,
.em-field-group select:focus,
.em-field-group textarea:focus {
  outline: none;
  border-color: var(--em-gold);
  box-shadow: 0 0 0 3px rgba(192, 136, 58, .12);
  background: #fff;
}

.em-field-group input.has-error,
.em-field-group select.has-error,
.em-field-group textarea.has-error {
  border-color: #d94f4f;
  box-shadow: 0 0 0 3px rgba(217, 79, 79, .1);
}

.em-field-error {
  font-size: .75rem;
  color: #d94f4f;
  font-family: var(--em-font-body);
}

.em-field-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

/* Date inputs — style the calendar icon on Webkit */
.em-field-group input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: .5;
  cursor: pointer;
}

/* ---------------------------------------------------------------
 * SUBMIT BUTTON
 * ------------------------------------------------------------- */
.em-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  width: 100%;
  padding: 1.1rem 2rem;
  border-radius: 999px;
  background: var(--em-ink);
  color: var(--em-bg);
  font-family: var(--em-font-head);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  border: none;
  cursor: pointer;
  transition: background .3s, transform .3s var(--em-ease);
  margin-top: .4rem;
}

.em-submit-btn:hover:not(:disabled) {
  background: var(--em-gold);
  transform: translateY(-2px);
}

.em-submit-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------
 * FORM STATUS MESSAGE
 * ------------------------------------------------------------- */
.em-form-status {
  display: none;
  padding: .95rem 1.2rem;
  border-radius: 12px;
  font-size: .88rem;
  line-height: 1.5;
  font-family: var(--em-font-body);
}

.em-form-status.is-success {
  display: block;
  background: rgba(42, 125, 116, .1);
  color: var(--em-teal);
  border: 1px solid rgba(42, 125, 116, .25);
}

.em-form-status.is-error {
  display: block;
  background: rgba(217, 79, 79, .08);
  color: #b83232;
  border: 1px solid rgba(217, 79, 79, .22);
}

/* ---------------------------------------------------------------
 * BOOKING SIDEBAR
 * ------------------------------------------------------------- */
.em-booking-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: sticky;
  top: 100px;
}

.em-bsidebar-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: 0 2px 24px rgba(28, 24, 19, .07);
}

.em-bsidebar-card__label {
  font-family: var(--em-font-head);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--em-muted);
  margin-bottom: .8rem;
}

.em-bsidebar-card__title {
  font-family: var(--em-font-head);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--em-ink);
  margin-bottom: .4rem;
  line-height: 1.1;
}

.em-bsidebar-card__sub {
  font-size: .83rem;
  color: var(--em-muted);
  margin-bottom: 1.2rem;
  line-height: 1.55;
}

/* WhatsApp button in sidebar */
.em-bsidebar-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: .85rem 1.2rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-family: var(--em-font-head);
  font-weight: 600;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: background .3s;
  text-decoration: none;
}

.em-bsidebar-wa-btn:hover {
  background: #1da851;
  color: #fff;
}

/* Contact list */
.em-bsidebar-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 0;
  margin: 0;
}

.em-bsidebar-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .84rem;
  color: var(--em-ink);
  line-height: 1.45;
}

.em-bsidebar-contact-list li svg {
  color: var(--em-gold);
  flex-shrink: 0;
  margin-top: .1rem;
}

/* Trust badges grid */
.em-trust-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}

.em-trust-item {
  text-align: center;
  padding: .85rem .5rem;
  background: var(--em-bg);
  border-radius: 12px;
}

.em-trust-item__num {
  font-family: var(--em-font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--em-gold);
  line-height: 1;
  margin-bottom: .2rem;
}

.em-trust-item__label {
  font-family: var(--em-font-head);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--em-muted);
}

/* ================================================================
 * THANK-YOU PAGE
 * ================================================================ */
.em-thankyou-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
  background: var(--em-bg);
}

.em-thankyou-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Animated gold check circle */
.em-check-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--em-gold), var(--em-gold-d));
  display: grid;
  place-items: center;
  margin: 0 auto 2rem;
  animation: em-pop .5s var(--em-ease) both;
}

@keyframes em-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.em-check-circle svg {
  color: #fff;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: em-check-draw .4s .45s ease forwards;
}

@keyframes em-check-draw {
  to { stroke-dashoffset: 0; }
}

.em-thankyou-inner .em-subtitle {
  justify-content: center;
}

.em-thankyou-inner h1 {
  font-family: var(--em-font-head);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: .98;
  color: var(--em-ink);
  margin: .6rem 0 1.2rem;
}

.em-thankyou-inner h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--em-gold);
  font-family: Georgia, serif;
  text-transform: none;
  letter-spacing: 0;
}

.em-thankyou-inner > p {
  font-size: 1rem;
  color: var(--em-muted);
  line-height: 1.65;
  max-width: 440px;
  margin: 0 auto 2rem;
}

/* Next steps row */
.em-next-steps {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 2rem;
}

.em-next-step {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: var(--em-muted);
  font-family: var(--em-font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.em-next-step svg {
  color: var(--em-gold);
  flex-shrink: 0;
}

/* CTA buttons */
.em-thankyou-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.em-thankyou-wa {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-family: var(--em-font-head);
  font-size: .88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: background .3s;
  text-decoration: none;
}

.em-thankyou-wa:hover {
  background: #1da851;
  color: #fff;
}

.em-thankyou-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid rgba(28, 24, 19, .2);
  color: var(--em-ink);
  font-family: var(--em-font-head);
  font-size: .88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: border-color .3s, color .3s;
  text-decoration: none;
}

.em-thankyou-back:hover {
  border-color: var(--em-gold);
  color: var(--em-gold);
}

/* ================================================================
 * RESPONSIVE
 * ================================================================ */
@media (max-width: 960px) {
  .em-booking-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .em-booking-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    order: -1;
  }
  .em-bsidebar-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .em-form-row {
    grid-template-columns: 1fr;
  }
  .em-booking-sidebar {
    display: flex;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .em-check-circle,
  .em-check-circle svg {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
  .em-submit-btn {
    transition: none !important;
  }
}
