/* Santa Bopa — layout mechanics theme.json can't express. Everything else
   (colors, spacing, fonts) is already baked into the Home page's block
   markup as inline styles, so this stays deliberately small. */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #faf7f2;
}

img {
  max-width: 100%;
  height: auto;
}

.santabopa-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.santabopa-page-title {
  color: #660b0b;
  font-size: 32px;
}

/* Kill the three original page-content booking buttons entirely (their
   hrefs are unreliable — one is missing "mailto:", others just scroll).
   The floating "Book a Visit" button + modal below is the only booking
   entry point now. */
a.wp-block-button__link[href="#booking"],
a.wp-block-button__link[href$="#booking"],
a.wp-block-button__link[href^="mailto:"],
a.wp-block-button__link[href*="mailto"],
a.wp-block-button__link[href*="santabopa.com?subject"] {
  display: none !important;
}

/* Booking modal + floating trigger */

.sb-booking-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  border: none;
  border-radius: 50px;
  background: #9b1b1b;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.sb-booking-fab:hover {
  background: #7d1515;
}

.sb-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sb-modal[hidden] {
  display: none !important;
}

.sb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 40, 24, 0.65);
}

.sb-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
}

.sb-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #5c5552;
  cursor: pointer;
}

.sb-modal-title {
  color: #660b0b;
  font-size: 24px;
  margin: 0 0 6px;
}

.sb-modal-subtitle {
  color: #5c5552;
  font-size: 14px;
  margin: 0 0 20px;
}

.sb-form-row {
  margin-bottom: 16px;
}

.sb-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2b2625;
  margin-bottom: 4px;
}

.sb-optional {
  font-weight: 400;
  color: #5c5552;
}

.sb-required {
  color: #9b1b1b;
  font-weight: 700;
}

.sb-form-row input,
.sb-form-row select,
.sb-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}

.sb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sb-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sb-form-actions {
  margin-top: 20px;
}

.sb-btn-primary {
  width: 100%;
  border: none;
  border-radius: 50px;
  background: #9b1b1b;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px;
  cursor: pointer;
}

.sb-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sb-form-status {
  min-height: 20px;
  font-size: 14px;
  margin-top: 12px;
}

.sb-form-status.is-success {
  color: #1b4332;
}

.sb-form-status.is-error {
  color: #9b1b1b;
}

@media (max-width: 480px) {
  .sb-form-grid {
    grid-template-columns: 1fr;
  }
}
