/* Sweetie — Booking Form (HubSpot form + custom quote calculator) */

/* ── Section + card ── */
.swt-book-form-section {
  padding: clamp(140px, 14vw, 200px) var(--swt-gutter) clamp(48px, 6vw, 96px);
  background:
    linear-gradient(to bottom, rgba(253,230,230,0.55) 0%, rgba(253,230,230,0.85) 100%),
    var(--swt-clouds-url) center center / cover no-repeat fixed;
}
@supports (-webkit-touch-callout: none) {
  .swt-book-form-section {
    background:
      linear-gradient(to bottom, rgba(253,230,230,0.55) 0%, rgba(253,230,230,0.85) 100%),
      var(--swt-clouds-url) center top / cover no-repeat;
  }
}
.swt-book-form-card {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 3px solid var(--swt-ink);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 56px);
  box-shadow: 10px 10px 0 var(--swt-ink);
}

/* ── Head + container ── */
#sweetie-booking-form,
#sweetie-booking-form * { box-sizing: border-box; }
#sweetie-booking-form {
  font-family: var(--swt-font-display);
  color: var(--swt-ink);
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}
#sweetie-booking-form h1 {
  font-family: var(--swt-font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--swt-ink);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
#sweetie-booking-form .sbf-subtitle {
  font-size: 16px;
  color: var(--swt-ink-soft);
  margin: 0 0 1.5rem;
}
#sweetie-booking-form .sbf-empty {
  margin: 0;
  text-align: center;
  color: var(--swt-ink-faint);
  font-family: var(--swt-font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ── Quote preview (custom UI above the form) ── */
#sweetie-booking-form .sbf-quote-preview {
  background: var(--swt-pink-tint);
  border: 2px solid var(--swt-pink);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
}
#sweetie-booking-form .sbf-quote-label {
  font-family: var(--swt-font-mono);
  font-size: 11px;
  color: var(--swt-pink-deep);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
#sweetie-booking-form .sbf-quote-amount {
  font-family: var(--swt-font-display);
  font-weight: 900;
  font-size: 38px;
  color: var(--swt-ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
#sweetie-booking-form .sbf-quote-sub {
  font-size: 13px;
  color: var(--swt-ink-soft);
  margin-top: 8px;
}
#sweetie-booking-form .sbf-floor-badge {
  display: inline-block;
  background: var(--swt-peach);
  color: var(--swt-ink);
  font-family: var(--swt-font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── HubSpot form styling (inside the card) ── */
#sweetie-booking-form .hsfc-form { display: block; }
#sweetie-booking-form .hsfc-TextField,
#sweetie-booking-form .hsfc-EmailField,
#sweetie-booking-form .hsfc-PhoneField,
#sweetie-booking-form .hsfc-DropdownField,
#sweetie-booking-form .hsfc-DateField,
#sweetie-booking-form .hsfc-NumberField {
  margin-bottom: 14px;
}
#sweetie-booking-form .hsfc-TextField .hsfc-FieldLabel,
#sweetie-booking-form .hsfc-EmailField .hsfc-FieldLabel,
#sweetie-booking-form .hsfc-PhoneField .hsfc-FieldLabel,
#sweetie-booking-form .hsfc-DropdownField .hsfc-FieldLabel,
#sweetie-booking-form .hsfc-DateField .hsfc-FieldLabel,
#sweetie-booking-form .hsfc-NumberField .hsfc-FieldLabel {
  display: block;
  font-family: var(--swt-font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--swt-ink);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
#sweetie-booking-form .hsfc-FieldLabel__RequiredIndicator { color: var(--swt-pink-deep); margin-left: 2px; }
#sweetie-booking-form .hsfc-TextInput {
  font-family: var(--swt-font-body);
  font-size: 15px;
  width: 100%;
  border: 2px solid var(--swt-ink-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--swt-ink);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
#sweetie-booking-form .hsfc-PhoneInput .hsfc-PhoneInput__FlagAndCaret {
  border: 2px solid var(--swt-ink-line);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #ffffff;
}
#sweetie-booking-form .hsfc-PhoneInput .hsfc-TextInput {
  border-radius: 0 12px 12px 0;
}
#sweetie-booking-form .hsfc-TextInput:focus {
  border-color: var(--swt-pink-deep);
  box-shadow: 0 0 0 4px rgba(244,144,144,0.18);
}
#sweetie-booking-form textarea.hs-input { min-height: 140px; resize: vertical; line-height: 1.5; }
#sweetie-booking-form select.hs-input { appearance: auto; }

/* Two-up rows when HubSpot renders side-by-side fields */
#sweetie-booking-form .hs-form .form-columns-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 100%; }
#sweetie-booking-form .hs-form .form-columns-2 .hs-form-field { margin-bottom: 0; width: 100%; }
#sweetie-booking-form .hs-form .form-columns-1 { display: block; max-width: 100%; }
#sweetie-booking-form .hs-form .form-columns-1 .hs-input { width: 100%; }
#sweetie-booking-form .hs-form .hs-fieldtype-textarea { grid-column: 1 / -1; }

/* Submit */
#sweetie-booking-form .hsfc-NavigrationRow__Buttons { display: flex; justify-content: center; margin-top: 18px; }
#sweetie-booking-form .hsfc-Button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--swt-font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 18px 36px;
  border-radius: 999px;
  border: 2px solid var(--swt-ink);
  background: var(--swt-pink);
  color: var(--swt-ink);
  box-shadow: 4px 4px 0 var(--swt-shadow-pink);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
}
#sweetie-booking-form .hsfc-Button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--swt-shadow-pink-deep);
  background: var(--swt-pink-deep);
  color: var(--swt-paper);
}

/* Errors + inline response */
#sweetie-booking-form .hs-error-msgs { list-style: none; padding: 0; margin: 6px 0 0; color: var(--swt-pink-deep); font-size: 13px; }
#sweetie-booking-form .submitted-message {
  text-align: center;
  padding: clamp(16px, 3vw, 32px);
  background: var(--swt-pink-tint);
  border: 2px solid var(--swt-ink);
  border-radius: 18px;
  color: var(--swt-ink);
  font-family: var(--swt-font-body);
}

@media (max-width: 560px) {
  #sweetie-booking-form .hs-form .form-columns-2 { grid-template-columns: 1fr; }
}

/* ── Google Places Autocomplete dropdown (rendered at document root,
   so target the pac-* classes globally — not scoped under the form). ── */
.pac-container {
  font-family: var(--swt-font-body);
  border-radius: 12px;
  border: 1px solid var(--swt-ink-line);
  box-shadow: 0 8px 24px rgba(58, 42, 42, 0.10);
  margin-top: 4px;
  overflow: hidden;
  z-index: 10001;   /* above HubSpot's form chrome */
}
.pac-item {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--swt-ink);
  cursor: pointer;
  border-top: 1px solid var(--swt-ink-line);
}
.pac-item:first-child { border-top: 0; }
.pac-item:hover,
.pac-item-selected { background: var(--swt-pink-tint); }
.pac-item-query { font-weight: 700; color: var(--swt-ink); }
.pac-icon { display: none; }
