/* Consultation booking modal — intake + GHL calendar */

.sectem-booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 18, 36, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.sectem-booking-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sectem-booking-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(94vh, 920px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(8, 18, 36, 0.35);
  overflow: hidden;
  transform: translateY(12px) scale(0.985);
  transition: transform 0.22s ease;
}

.sectem-booking-overlay.is-open .sectem-booking-dialog {
  transform: translateY(0) scale(1);
}

.sectem-booking-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  background: linear-gradient(180deg, #f7f9fc 0%, #fff 100%);
}

.sectem-booking-header h2 {
  margin: 0;
  font-family: "DM Sans", "DM Sans Fallback", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b1f3a;
  line-height: 1.3;
}

.sectem-booking-header p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(11, 31, 58, 0.72);
}

.sectem-booking-close {
  /* Beat theme `button` padding so the X stays a centered circle. */
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(11, 31, 58, 0.06) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #0b1f3a !important;
  font-size: 1.35rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sectem-booking-close span {
  display: block;
  line-height: 1;
  color: inherit !important;
  transform: translateY(-1px); /* Optical center for the × glyph */
}

.sectem-booking-close:hover,
.sectem-booking-close:focus-visible {
  background: rgba(11, 31, 58, 0.12) !important;
  color: #0b1f3a !important;
  outline: none;
  transform: none !important;
}

.sectem-booking-close:hover span,
.sectem-booking-close:focus-visible span {
  color: #0b1f3a !important;
}

.sectem-booking-steps {
  display: flex;
  gap: 8px;
  padding: 10px 20px 0;
}

.sectem-booking-steps span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(11, 31, 58, 0.45);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 31, 58, 0.04);
}

.sectem-booking-steps span.is-active {
  color: #0b1f3a;
  background: rgba(96, 180, 249, 0.22);
}

.sectem-booking-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.sectem-booking-form {
  padding: 14px 20px 20px;
}

.sectem-booking-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.sectem-booking-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sectem-booking-field--wide {
  grid-column: 1 / -1;
}

.sectem-booking-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0b1f3a;
}

.sectem-booking-field input,
.sectem-booking-field select,
.sectem-booking-field textarea {
  width: 100%;
  border: 1px solid rgba(11, 31, 58, 0.16);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: #0b1f3a;
  background: #fff;
  box-sizing: border-box;
}

.sectem-booking-field textarea {
  resize: vertical;
  min-height: 84px;
}

.sectem-booking-field input:focus,
.sectem-booking-field select:focus,
.sectem-booking-field textarea:focus {
  outline: 3px solid rgba(96, 180, 249, 0.45);
  outline-offset: 1px;
  border-color: #60b4f9;
}

.sectem-booking-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.sectem-booking-status {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: rgba(11, 31, 58, 0.75);
}

.sectem-booking-status.is-error {
  color: #9b2c2c;
}

.sectem-booking-submit,
.sectem-booking-back {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  min-height: 48px;
  padding: 0 1.25rem !important;
  border: 0;
  border-radius: 8px !important;
  font: inherit;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
  box-shadow: none !important;
  background-image: none !important;
  transform: none !important;
}

.sectem-booking-submit {
  width: 100%;
  background: #fbe984 !important;
  /* Theme `button:hover` forces white — keep navy on yellow for contrast. */
  color: #0b1f3a !important;
}

.sectem-booking-submit:hover,
.sectem-booking-submit:focus,
.sectem-booking-submit:focus-visible,
.sectem-booking-submit:active {
  background: #fff6b8 !important;
  color: #0b1f3a !important;
  opacity: 1 !important;
  transform: none !important;
}

.sectem-booking-submit:hover span,
.sectem-booking-submit:focus span,
.sectem-booking-submit:focus-visible span,
.sectem-booking-submit span {
  color: #0b1f3a !important;
}

.sectem-booking-submit:disabled {
  opacity: 0.65 !important;
  cursor: wait;
}

.sectem-booking-back {
  margin: 0 20px 16px !important;
  background: transparent !important;
  color: #0b1f3a !important;
  border: 1px solid rgba(11, 31, 58, 0.18) !important;
}

.sectem-booking-back:hover,
.sectem-booking-back:focus-visible {
  background: rgba(11, 31, 58, 0.05) !important;
  color: #0b1f3a !important;
}

.sectem-booking-calendar-hint {
  margin: 0 20px 10px;
  color: rgba(11, 31, 58, 0.7);
  font-size: 0.92rem;
  line-height: 1.45;
}

.sectem-booking-privacy {
  margin: 12px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(11, 31, 58, 0.65);
}

.sectem-booking-privacy a {
  color: #182f57;
  font-weight: 600;
}

.sectem-booking-body {
  position: relative;
  min-height: min(62vh, 580px);
  background: #f4f7fb;
}

.sectem-booking-iframe {
  display: block;
  width: 100%;
  height: min(62vh, 580px);
  border: 0;
  background: #fff;
}

.sectem-booking-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: rgba(11, 31, 58, 0.65);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sectem-booking-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

body.sectem-booking-open {
  overflow: hidden;
}

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

  .sectem-booking-overlay {
    padding: 0;
    align-items: stretch;
  }

  .sectem-booking-dialog {
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }

  .sectem-booking-body,
  .sectem-booking-iframe {
    min-height: 0;
    height: 55vh;
  }
}
