/*
 * Booking modal styles.
 *
 * The modal is appended to <body> by js/booking-modal.js so Framer's React
 * reconciliation cannot reach it. All selectors are namespaced under .gs-bm-*
 * to avoid colliding with any Framer-generated classes.
 *
 * Accessibility: focus trap is handled in JS; reduced-motion users get an
 * instant fade-in via the @media block at the bottom.
 */

.gs-bm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 22, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.gs-bm-overlay[data-open="1"] {
  opacity: 1;
  pointer-events: auto;
}

.gs-bm-card {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(10, 16, 22, 0.45);
  padding: 32px 28px 28px;
  transform: translateY(12px);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: inherit;
  color: #0a1016;
}

.gs-bm-overlay[data-open="1"] .gs-bm-card {
  transform: translateY(0);
}

.gs-bm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  background: rgba(10, 16, 22, 0.05);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #0a1016;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease;
}

.gs-bm-close:hover {
  background: rgba(10, 16, 22, 0.12);
}

.gs-bm-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.gs-bm-subtitle {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(10, 16, 22, 0.65);
}

/* Mode 2 summary — shown above the form when the modal was opened from a
   pricing card's GET STARTED button. Carries the locked plan name + price so
   the user can see what they're booking even though the dropdowns are hidden. */
.gs-bm-summary {
  margin: -6px 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(10, 95, 56, 0.06);
  border: 1px solid rgba(10, 95, 56, 0.18);
  font-size: 14px;
  line-height: 1.45;
  color: #0a1016;
}

.gs-bm-summary strong {
  font-weight: 700;
  color: #073e25;
}

.gs-bm-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gs-bm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gs-bm-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(10, 16, 22, 0.7);
}

.gs-bm-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(10, 16, 22, 0.18);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  color: #0a1016;
  font-family: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.gs-bm-input:focus {
  outline: none;
  border-color: #0a1016;
  box-shadow: 0 0 0 3px rgba(10, 16, 22, 0.08);
}

.gs-bm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

/* Hour | Minute pair under the "Preferred time" label. Two equal columns
   stay side-by-side at every viewport so the field never feels scattered —
   the dropdown chevron and centred text keep the two parts visually paired. */
.gs-bm-time-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gs-bm-time-part {
  padding-left: 12px;
  padding-right: 28px;
  text-align: center;
  text-align-last: center;
  background-position: right 10px center;
}

.gs-bm-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230a1016' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
  cursor: pointer;
}

.gs-bm-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.45;
}

.gs-bm-fielderror {
  font-size: 12px;
  color: #b3261e;
  margin: 2px 0 0;
  min-height: 0;
}

.gs-bm-submit {
  margin-top: 6px;
  width: 100%;
  padding: 14px 22px;
  background: #0a1016;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.gs-bm-submit:hover:not(:disabled) {
  background: #1d2632;
  transform: translateY(-1px);
}

.gs-bm-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.gs-bm-error {
  background: rgba(179, 38, 30, 0.06);
  border: 1px solid rgba(179, 38, 30, 0.25);
  color: #b3261e;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.gs-bm-success {
  text-align: center;
  padding: 12px 4px 6px;
}

.gs-bm-success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #0a1016;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
}

.gs-bm-success h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.gs-bm-success p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(10, 16, 22, 0.7);
}

.gs-bm-hidden {
  display: none !important;
}

@media (max-width: 520px) {
  .gs-bm-card {
    padding: 26px 20px 22px;
    border-radius: 16px;
  }
  /* Mobile: Date drops to its own row, but Hour | Minute stays paired so
     the time picker keeps reading as one field. */
  .gs-bm-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gs-bm-time-pair {
    gap: 8px;
  }
  .gs-bm-title {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gs-bm-overlay,
  .gs-bm-card,
  .gs-bm-submit {
    transition: none;
  }
}
