/* Gonzalez Booking App Pro - customer-facing styles.
   Keep isolated from legacy site CSS.

   Brand colors are pulled from the main Gonzalez Cleaning site's palette
   (navy / blue / green / gold) so the booking app feels like the same brand,
   without depending on the marketing site's CSS file. */
:root {
  --gba-navy: #0b1f38;
  --gba-navy-dark: #06111e;
  --gba-blue: #1558b0;
  --gba-blue-light: #2272d4;
  --gba-green: #1f7042;
  --gba-green-mid: #28a05a;
  --gba-green-light: #3dc870;
  --gba-gold: #c8931e;

  --gba-primary: var(--gba-blue);
  --gba-primary-dark: var(--gba-navy);
  --gba-text: #0d1e30;
  --gba-muted: #6b7f99;
  --gba-surface: #ffffff;
  --gba-bg: #eef2f8;
  --gba-border: #e3e8f0;
  --gba-selected-bg: #eaf3ff;

  --gba-radius: 20px;
  --gba-radius-sm: 14px;
  --gba-ease: cubic-bezier(.22, .68, 0, 1.2);
}

* { box-sizing: border-box; }

.gba-app {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--gba-bg);
  color: var(--gba-text);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- App shell: full-bleed on mobile, centered "phone" card on desktop ---------- */
.gba-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--gba-surface);
  display: flex;
  flex-direction: column;
  position: relative;
  /* Clears the fixed Home/Gallery/Contact nav so it never covers the last
     step's content or the sticky Back/Continue footer (see .gba-footer's
     matching `bottom` offset below). */
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

@media (min-width: 560px) {
  .gba-app { display: flex; justify-content: center; padding: 32px 16px; }
  .gba-shell {
    max-width: 560px;
    /* A lower floor than before — the old 860px forced short steps (e.g.
       Frequency) into a tall box with a huge gap above the sticky footer
       (.gba-footer's margin-top:auto pushes it to the bottom of .gba-main). */
    min-height: min(640px, calc(100vh - 64px));
    border-radius: 28px;
    box-shadow: 0 24px 64px rgba(6, 17, 30, .14), 0 2px 8px rgba(6, 17, 30, .06);
    overflow: hidden;
  }
}

/* ---------- Header ---------- */
.gba-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--gba-surface);
  border-bottom: 1px solid var(--gba-border);
  padding: 14px 20px 12px;
}

.gba-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.gba-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.gba-brand-name {
  font-weight: 700;
  font-size: .92rem;
  color: var(--gba-navy);
  letter-spacing: -.01em;
}

/* ---------- Progress indicator ---------- */
.gba-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 7px;
}

.gba-progress-step {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gba-muted);
}

.gba-progress-label {
  font-size: .74rem;
  font-weight: 600;
  color: var(--gba-primary);
}

.gba-progress-track {
  height: 5px;
  border-radius: 99px;
  background: var(--gba-border);
  overflow: hidden;
}

.gba-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gba-blue), var(--gba-green-mid));
  transition: width .45s var(--gba-ease);
}

/* ---------- Main content ---------- */
.gba-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 100px;
}

.gba-step {
  animation: gba-step-in .38s var(--gba-ease);
}

@keyframes gba-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.gba-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  font-weight: 800;
  color: var(--gba-navy);
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}

.gba-subtitle {
  font-size: .89rem;
  color: var(--gba-muted);
  line-height: 1.5;
  margin: 0 0 22px;
}

/* ---------- Selectable option cards (services, frequency, ...future steps) ---------- */
.gba-option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.gba-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  background: var(--gba-surface);
  border: 1.5px solid var(--gba-border);
  border-radius: var(--gba-radius-sm);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color .2s ease, background-color .2s ease, transform .15s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.gba-option-card:hover {
  border-color: var(--gba-blue-light);
}

.gba-option-card:active {
  transform: scale(.98);
}

.gba-option-card.is-selected {
  border-color: var(--gba-primary);
  background: var(--gba-selected-bg);
  box-shadow: 0 4px 16px rgba(21, 88, 176, .14);
}

.gba-option-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #f1f5fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: background-color .2s ease, transform .2s var(--gba-ease);
}

.gba-option-card.is-selected .gba-option-icon {
  background: var(--gba-primary);
  transform: scale(1.06);
}

.gba-option-body { flex: 1; min-width: 0; }

.gba-option-name {
  font-size: .93rem;
  font-weight: 700;
  color: var(--gba-navy);
  margin: 0 0 2px;
}

.gba-option-desc {
  font-size: .78rem;
  color: var(--gba-muted);
  margin: 0;
  line-height: 1.35;
}

.gba-option-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--gba-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, background-color .2s ease, transform .2s var(--gba-ease);
}

.gba-option-card.is-selected .gba-option-check {
  border-color: var(--gba-primary);
  background: var(--gba-primary);
  transform: scale(1.08);
}

.gba-option-check svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .15s ease, transform .15s ease;
}

.gba-option-card.is-selected .gba-option-check svg {
  opacity: 1;
  transform: scale(1);
}

.gba-note {
  font-size: .74rem;
  color: var(--gba-muted);
  text-align: center;
  margin: 4px 0 0;
}

.gba-section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gba-muted);
  margin: 0 0 10px;
}

/* Small text-link toggle: "View All Services", "Show more times", etc. */
.gba-link-btn {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 10px 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--gba-primary);
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gba-link-btn:hover { text-decoration: underline; }

/* ---------- Form fields (Property Details / Address) ---------- */
.gba-field-group {
  margin-bottom: 22px;
}

.gba-field-group:last-child {
  margin-bottom: 12px;
}

.gba-field-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gba-navy);
  margin-bottom: 9px;
}

.gba-field-optional {
  font-weight: 500;
  color: var(--gba-muted);
  font-size: .75rem;
  margin-left: 5px;
}

.gba-field-error {
  display: block;
  margin-top: 7px;
  font-size: .76rem;
  color: #c1121f;
}

.gba-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 360px) {
  .gba-form-row { grid-template-columns: 1fr; }
}

.gba-input,
.gba-textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1.5px solid var(--gba-border);
  border-radius: 12px;
  font: inherit;
  font-size: .92rem;
  color: var(--gba-text);
  background: #fff;
  transition: border-color .2s ease;
}

.gba-textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.4;
}

.gba-input:focus,
.gba-textarea:focus {
  outline: none;
  border-color: var(--gba-primary);
}

.gba-input::placeholder,
.gba-textarea::placeholder {
  color: #a7b3c4;
}

/* ---------- Chip group (Property choices) ---------- */
.gba-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.gba-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 99px;
  border: 1.5px solid var(--gba-border);
  background: #fff;
  color: var(--gba-navy);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.gba-chip:hover {
  border-color: var(--gba-blue-light);
}

.gba-chip:active {
  transform: scale(.97);
}

.gba-chip.is-selected {
  border-color: var(--gba-primary);
  background: var(--gba-primary);
  color: #fff;
}

/* ---------- Extras mini-cards ---------- */
.gba-extras-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gba-extra-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 14px;
  background: var(--gba-surface);
  border: 1.5px solid var(--gba-border);
  border-radius: var(--gba-radius-sm);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color .2s ease, background-color .2s ease, transform .15s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.gba-extra-card:hover { border-color: var(--gba-blue-light); }
.gba-extra-card:active { transform: scale(.98); }

.gba-extra-card.is-selected {
  border-color: var(--gba-primary);
  background: var(--gba-selected-bg);
  box-shadow: 0 4px 16px rgba(21, 88, 176, .14);
}

.gba-extra-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f1f5fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.gba-extra-card.is-selected .gba-extra-icon {
  background: var(--gba-primary);
}

.gba-extra-label {
  flex: 1;
  min-width: 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gba-navy);
}

.gba-extra-price {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gba-primary);
  flex-shrink: 0;
}

.gba-extra-card.is-selected .gba-extra-price { color: var(--gba-primary); }

.gba-extra-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--gba-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, background-color .2s ease;
}

.gba-extra-card.is-selected .gba-extra-check {
  border-color: var(--gba-primary);
  background: var(--gba-primary);
}

.gba-extra-check svg {
  width: 11px;
  height: 11px;
  opacity: 0;
  transition: opacity .15s ease;
}

.gba-extra-card.is-selected .gba-extra-check svg { opacity: 1; }

/* "No Extras" — intentionally quieter than the paid extras above it. */
.gba-extra-card.is-none {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  min-height: 50px;
  opacity: .8;
}

.gba-extra-card.is-none .gba-extra-label {
  font-weight: 500;
  color: var(--gba-muted);
}

.gba-extra-card.is-none.is-selected {
  border-style: solid;
  opacity: 1;
}

/* ---------- Counter (Bedrooms / Bathrooms) ---------- */
.gba-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 180px;
  padding: 6px;
  border: 1.5px solid var(--gba-border);
  border-radius: var(--gba-radius-sm);
}

.gba-counter-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  border: none;
  background: #f1f5fb;
  color: var(--gba-navy);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.gba-counter-btn:not(:disabled):hover {
  background: var(--gba-selected-bg);
}

.gba-counter-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.gba-counter-value {
  min-width: 28px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gba-navy);
}

/* ---------- Calendar (Date step) ---------- */
.gba-calendar {
  margin-bottom: 4px;
}

.gba-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gba-cal-nav-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1.5px solid var(--gba-border);
  background: #fff;
  color: var(--gba-navy);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.gba-cal-nav-btn:not(:disabled):hover {
  border-color: var(--gba-blue-light);
}

.gba-cal-nav-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.gba-cal-label {
  font-size: .92rem;
  font-weight: 700;
  color: var(--gba-navy);
}

.gba-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.gba-cal-weekdays span {
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  color: var(--gba-muted);
  text-transform: uppercase;
}

.gba-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.gba-cal-day {
  aspect-ratio: 1;
  min-height: 40px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: #f7f9fc;
  color: var(--gba-navy);
  font-family: inherit;
  font-weight: 600;
  font-size: .86rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.gba-cal-day:not(:disabled):hover {
  border-color: var(--gba-blue-light);
}

.gba-cal-day:not(:disabled):active {
  transform: scale(.93);
}

.gba-cal-day:disabled {
  background: transparent;
  color: #c7d0dc;
  cursor: not-allowed;
}

.gba-cal-day.is-selected {
  background: var(--gba-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(21, 88, 176, .32);
}

/* ---------- Time slots (Time step) ---------- */
.gba-time-group { margin-bottom: 20px; }
.gba-time-group:last-child { margin-bottom: 0; }

.gba-time-group-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gba-muted);
  margin: 0 0 10px;
}

.gba-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gba-time-slot {
  min-height: 56px;
  border-radius: 14px;
  border: 1.5px solid var(--gba-border);
  background: #fff;
  color: var(--gba-navy);
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.gba-time-slot:hover {
  border-color: var(--gba-blue-light);
}

.gba-time-slot:active {
  transform: scale(.97);
}

.gba-time-slot.is-selected {
  border-color: var(--gba-primary);
  background: var(--gba-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(21, 88, 176, .28);
}

/* ---------- Summary list (placeholder steps) ---------- */
.gba-summary-list {
  width: 100%;
  margin-top: 8px;
  padding: 4px 16px;
  background: #f7f9fc;
  border: 1px dashed var(--gba-border);
  border-radius: var(--gba-radius-sm);
  text-align: left;
}

.gba-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gba-border);
}

.gba-summary-row:last-child {
  border-bottom: none;
}

.gba-summary-label {
  font-size: .78rem;
  color: var(--gba-muted);
  flex-shrink: 0;
}

.gba-summary-value {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gba-navy);
  text-align: right;
}

/* ---------- Sticky footer / CTA ---------- */
.gba-footer {
  position: sticky;
  /* Sits just above the fixed Home/Gallery/Contact nav, not behind it. */
  bottom: calc(78px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 22%);
  padding: 18px 20px 18px;
  margin-top: auto;
}

.gba-footer-row {
  display: flex;
  gap: 10px;
}

.gba-footer-row .gba-btn-secondary {
  flex: 0 0 auto;
  width: auto;
  padding: 0 20px;
}

.gba-footer-row .gba-btn-primary {
  flex: 1;
}

.gba-footer-row-solo .gba-btn-secondary {
  flex: 1;
  width: 100%;
}

.gba-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gba-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.gba-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--gba-green), var(--gba-green-mid), var(--gba-green-light));
  box-shadow: 0 8px 22px rgba(31, 112, 66, .32);
}

.gba-btn-primary:not(:disabled):hover { transform: translateY(-1px); }
.gba-btn-primary:not(:disabled):active { transform: translateY(0) scale(.98); }

.gba-btn-primary:disabled {
  cursor: not-allowed;
  opacity: .45;
  box-shadow: none;
}

.gba-btn-secondary {
  color: var(--gba-navy);
  background: #fff;
  border: 1.5px solid var(--gba-border);
}

.gba-btn-secondary:hover { border-color: var(--gba-blue-light); }
.gba-btn-secondary:active { transform: scale(.98); }

/* ---------- Centered panel (Confirmation) ---------- */
.gba-panel-centered {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 10px 40px;
}

.gba-badge-circle {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gba-selected-bg);
  color: var(--gba-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.gba-badge-circle.is-success {
  background: linear-gradient(135deg, var(--gba-green), var(--gba-green-mid), var(--gba-green-light));
  color: #fff;
  box-shadow: 0 8px 22px rgba(31, 112, 66, .32);
}

/* ---------- Review sections (Step 9) ---------- */
.gba-review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 4px;
}

.gba-review-card {
  background: var(--gba-surface);
  border: 1.5px solid var(--gba-border);
  border-radius: var(--gba-radius-sm);
  padding: 14px 16px;
}

.gba-review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.gba-review-card-title {
  margin: 0;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gba-muted);
}

.gba-review-edit {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 2px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gba-primary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gba-review-edit:hover {
  text-decoration: underline;
}

.gba-review-line {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gba-navy);
  line-height: 1.45;
}

.gba-review-line + .gba-review-line {
  margin-top: 3px;
}

/* ---------- Bottom app nav (Home / Gallery / Contact) ----------
   Matches the main app shell's nav styling. No "Book" tab (already inside
   booking) and no exit tab (Home already serves that purpose). */
.gba-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--gba-border);
  box-shadow: 0 -4px 18px rgba(6, 17, 30, .06);
  display: flex;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
}

@media (min-width: 560px) {
  .gba-bottom-nav { max-width: 560px; }
}

.gba-bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 50px;
  padding: 6px 4px;
  border: none;
  background: none;
  color: var(--gba-muted);
  text-decoration: none;
  font-family: inherit;
  transition: color .18s ease, transform .15s var(--gba-ease);
}

.gba-bottom-nav-btn:hover { color: var(--gba-primary); }
.gba-bottom-nav-btn:active { transform: scale(.92); }

.gba-bottom-nav-ico { width: 21px; height: 21px; }
.gba-bottom-nav-label { font-size: .64rem; font-weight: 700; }

