/* Public booking-form renderer styles. Lifted verbatim from the
   delawarepoolservice.com static site so the YAPS-rendered form is
   pixel-identical to the static one. Brand colors are scoped to
   .public-booking-page so they don't leak into admin/portal views. */

.public-booking-page {
  --navy:      #0b2d48;
  --navy-dark: #071e30;
  --navy-mid:  #0f3d60;
  --aqua:      #5bc8f0;
  --aqua-dark: #39acd8;
  --white:     #ffffff;
  --muted:     #7aaec8;
  --muted-dim: #4a7a9b;
  background: var(--navy-dark);
  color: var(--white);
  min-height: 100vh;
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.public-booking-page *, .public-booking-page *::before, .public-booking-page *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

.book-progress {
  background: var(--navy-dark);
  padding: 0 5vw 16px;
  max-width: min(960px, 90vw);
  margin: 0 auto;
}

.book-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}

.book-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--aqua), var(--aqua-dark));
  border-radius: 99px;
  transition: width 0.4s ease;
}

.book-progress-label {
  font-size: 0.75rem;
  color: var(--muted-dim);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Form card */
.book-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  color: #1a2a3a;
}

@media (max-width: 600px) {
  .book-card {
    margin: 0 -2vw;
    padding: 24px 20px;
    border-radius: 12px;
  }
}

/* Steps */
.book-step {
  display: none;
}

.book-step.active {
  display: block;
  animation: bookFadeUp 0.3s ease;
}

@keyframes bookFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.book-step-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 6px;
  text-align: center;
}

.book-step-sub {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 28px;
  line-height: 1.55;
  text-align: center;
}

.book-step-sub strong {
  color: #1a2a3a;
}

/* Form fields */
.book-field {
  margin-bottom: 20px;
}

.book-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a2a3a;
  margin-bottom: 6px;
}

.book-field input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #dde5f0;
  border-radius: 3px;
  outline: none;
  margin: 8px 0 0;
}

.book-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--aqua);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.book-field input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--aqua);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.book-field input[type="text"],
.book-field input[type="tel"],
.book-field input[type="email"],
.book-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #dde5f0;
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: #1a2a3a;
  background: #f4f7fb;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.book-field input:focus,
.book-field select:focus {
  outline: none;
  border-color: var(--aqua);
  background: #fff;
}

.book-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.book-field input::placeholder {
  color: #94a3b8;
}

.book-field-hint {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 5px;
}

/* Radio / Checkbox tiles */
.book-tile-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.book-tile {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid #dde5f0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.book-tile:hover {
  border-color: var(--aqua);
  background: #f0faff;
}

.book-tile.selected {
  border-color: var(--aqua);
  background: #e8f8ff;
}

.book-tile input[type="radio"],
.book-tile input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.book-tile-dot {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 2px solid #dde5f0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.book-tile.selected .book-tile-dot {
  border-color: var(--aqua);
  background: var(--aqua);
}

.book-tile-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  display: none;
}

.book-tile.selected .book-tile-dot::after {
  display: block;
}

.book-tile-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 5px;
  border: 2px solid #dde5f0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.book-tile.selected .book-tile-check {
  border-color: var(--aqua);
  background: var(--aqua);
}

.book-tile-check::after {
  content: '\2713';
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: none;
}

.book-tile.selected .book-tile-check::after {
  display: block;
}

.book-tile-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a2a3a;
}

.book-tile-desc {
  font-size: 0.85rem;
  color: #1a2a3a;
  margin-top: 4px;
  line-height: 1.55;
  opacity: 0.8;
}

.book-tile-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--navy);
  white-space: nowrap;
}

/* Week grid */
.book-week-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (min-width: 480px) {
  .book-week-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

.book-week-tile {
  padding: 14px 12px;
  border: 1.5px solid #dde5f0;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.book-week-tile:hover:not(.full) {
  border-color: var(--aqua);
  background: #f0faff;
}

.book-week-tile.selected {
  border-color: var(--aqua);
  background: #e8f8ff;
}

.book-week-tile.full {
  opacity: 0.4;
  cursor: not-allowed;
}

.book-week-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a2a3a;
}

.book-week-avail {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

.book-week-avail.low {
  color: #f59e0b;
}

.book-week-avail.full-text {
  color: #ef4444;
}

.book-week-tile.asap-tile {
  border-color: var(--aqua);
  border-style: dashed;
}

.book-week-tile.asap-tile:hover {
  background: #f0faff;
}

.book-week-tile.asap-tile.selected {
  background: #e8f8ff;
  border-style: solid;
}

/* Checklist */
.book-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.book-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid #dde5f0;
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.book-check-item:hover {
  border-color: var(--aqua);
}

.book-check-item.checked {
  border-color: #22c55e;
  background: #f0fdf4;
}

.book-check-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.book-check-box {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  border: 2px solid #dde5f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 700;
  color: white;
}

.book-check-item.checked .book-check-box {
  background: #22c55e;
  border-color: #22c55e;
}

.book-check-text {
  font-size: 0.875rem;
  color: #1a2a3a;
  line-height: 1.5;
}

.book-check-text strong {
  color: var(--navy);
}

/* Buttons */
.book-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.book-btn {
  padding: 13px 28px;
  border-radius: 9px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, opacity 0.15s;
}

.book-btn:active {
  transform: scale(0.98);
}

.book-btn-primary {
  background: linear-gradient(135deg, var(--navy), #1a4a7a);
  color: white;
  flex: 1;
}

.book-btn-primary:hover {
  opacity: 0.9;
}

.book-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.book-btn-back {
  background: #f4f7fb;
  color: #64748b;
  border: 1.5px solid #dde5f0;
}

.book-btn-back:hover {
  border-color: #94a3b8;
  color: #1a2a3a;
}

.book-btn-pay {
  background: linear-gradient(135deg, #0f5132, #157347);
  color: white;
  flex: 1;
  font-size: 1rem;
}

.book-btn-pay:hover {
  opacity: 0.9;
}

.book-btn-pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Error messages */
.book-error {
  font-size: 0.82rem;
  color: #ef4444;
  margin-top: 6px;
  margin-bottom: 12px;
}

/* Info/warning boxes */
.book-info-box {
  background: #f4f7fb;
  border-left: 3px solid var(--aqua);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: #1a2a3a;
  line-height: 1.6;
}

.book-info-box strong {
  color: var(--navy);
}

.book-warning-box {
  background: #fff7ed;
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.6;
}

.book-warning-box strong {
  color: #92400e;
}

.book-never-box {
  background: #fff7ed;
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.6;
}

.book-never-box strong {
  color: #92400e;
}

/* Cable note */
.book-cable-note {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 9px;
  padding: 14px 16px;
  font-size: 0.875rem;
  color: #92400e;
  margin-top: 12px;
  line-height: 1.6;
}

.book-cable-note strong {
  color: #92400e;
}

/* Disqualifier screen */
.book-disq {
  text-align: center;
  padding: 24px 0;
}

.book-disq-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.book-disq-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}

.book-disq-body {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto;
}

/* Summary table */
.book-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.book-summary-table td {
  padding: 9px 0;
  font-size: 0.9rem;
  color: #1a2a3a;
  border-bottom: 1px solid #dde5f0;
}

.book-summary-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.book-summary-table tr.total td {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: none;
  padding-top: 16px;
}

/* Stripe card element */
#card-element {
  padding: 13px 14px;
  border: 1.5px solid #dde5f0;
  border-radius: 8px;
  background: #f4f7fb;
  margin-bottom: 6px;
  transition: border-color 0.2s;
}

#card-element.StripeElement--focus {
  border-color: var(--aqua);
  background: #fff;
}

#card-errors {
  font-size: 0.82rem;
  color: #ef4444;
  min-height: 20px;
  margin-bottom: 16px;
}

/* Tip tiles */
.book-tip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.book-tip-tile {
  padding: 12px 8px;
  border: 1.5px solid #dde5f0;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.book-tip-tile:hover {
  border-color: var(--aqua);
}

.book-tip-tile.selected {
  border-color: var(--aqua);
  background: #e8f8ff;
}

.book-tip-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2a3a;
}

.book-tip-amount {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

/* Section label in booking */
.book-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 10px;
}

/* Success screen */
.book-success {
  text-align: center;
  padding: 16px 0;
}

.book-success-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.book-success-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}

.book-success-body {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.7;
}

.book-success-body strong {
  color: #1a2a3a;
}

/* Two-column layout */
.book-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .book-two-col { grid-template-columns: 1fr; }
  .book-tip-grid { grid-template-columns: repeat(2, 1fr); }
}

.book-divider {
  border: none;
  border-top: 1px solid #dde5f0;
  margin: 24px 0;
}

/* Add-on section label */
.book-addon-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

/* Policy box */
.book-policy-box {
  background: #f4f7fb;
  border: 1.5px solid #dde5f0;
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: #1a2a3a;
  line-height: 1.6;
}

.book-policy-box strong {
  color: var(--navy);
}

/* SMS consent */
.book-consent {
  background: #f4f7fb;
  border-left: 3px solid var(--aqua);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  margin: 20px 0;
  font-size: 0.85rem;
  color: #1a2a3a;
  line-height: 1.6;
}

.book-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}

.book-consent input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
}

/* Stripe secure text */
.book-secure-text {
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 16px;
}

/* Scheduling info within form */
.book-sched-info {
  line-height: 1.7;
  color: #1a2a3a;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.book-sched-info p {
  margin-bottom: 12px;
}

.book-sched-info strong {
  color: var(--navy);
}

/* ---- Section + inner wrapper (lifted from static styles.css 895–905) ---- */
.public-booking-page .booking-section {
  background: var(--navy-dark);
  padding: 0 0 60px;
}
.public-booking-page .booking-inner {
  max-width: min(960px, 90vw);
  margin: 0 auto;
  padding: 0 5vw;
}

/* ---- Dev/beta overlay (lifted from dev_mode.js styles) ---- */
.yaps-dev-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
  color: #fff; text-align: center;
  padding: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
}
.yaps-dev-banner.dev  { background: #f59e0b; }
.yaps-dev-banner.beta { background: #ef4444; }
.public-booking-page.dev-overlay  { padding-top: 28px; outline: 8px solid #f59e0b; outline-offset: -3px; }
.public-booking-page.beta-overlay { padding-top: 28px; outline: 8px solid #ef4444; outline-offset: -3px; }
.yaps-dev-nav {
  position: fixed; bottom: 10px; right: 10px; z-index: 99999;
  display: flex; gap: 4px; flex-wrap: wrap; max-width: 320px;
}
.yaps-dev-nav button {
  padding: 4px 8px; font-size: 11px; background: #1a2a3a; color: #fff;
  border: 1px solid #f59e0b; border-radius: 4px; cursor: pointer;
}
.yaps-dev-nav.beta button { border-color: #ef4444; }
.yaps-dev-nav button.reset { background: #ef4444; border-color: transparent; }
