/* ══════════════════════════════════════════
   RA Window Cleaning – assets/css/booking.css
   ══════════════════════════════════════════ */

/* ── Page hero ── */
.page-hero {
  min-height: 52vh;
  display: flex; align-items: flex-end;
  padding: 120px 5vw 70px;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 60% 80%, rgba(13,127,212,0.22) 0%, transparent 70%),
    repeating-linear-gradient(
      105deg, transparent 0px, transparent 28px,
      rgba(61,184,245,0.02) 29px, transparent 30px
    );
}
.page-hero-content { position: relative; max-width: 700px; }
.page-hero-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92; letter-spacing: 1px;
  margin: 12px 0 20px;
}
.page-hero-content h1 span { color: var(--brand-light); }
.page-hero-sub {
  font-size: 1.05rem; font-weight: 300;
  color: var(--grey); line-height: 1.65; max-width: 520px;
}

@media (max-width: 900px) {
  .page-hero { min-height: 32vh; padding: 100px 5vw 44px; }
}
@media (max-width: 600px) {
  .page-hero { padding: 90px 5vw 36px; }
  .page-hero-sub { font-size: 0.95rem; }
}

/* ── Step indicator ── */
.booking-section { padding: 0 0 100px; background: var(--dark); }

.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 44px 20px 36px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s;
  color: var(--grey);
}

.step-item.active .step-num {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(13,127,212,0.25);
}

.step-item.done .step-num {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
  font-size: 1rem;
}

.step-item.done .step-num::before { content: '✓'; }
.step-item.done .step-num span    { display: none; }

.step-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
}

.step-item.active .step-label { color: var(--brand-light); }
.step-item.done   .step-label { color: #4ade80; }

.step-connector {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin: 0 6px 22px;
  min-width: 20px;
}

/* ── Content container ── */
.booking-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.booking-panel { animation: bk-fade 0.3s ease; }
.booking-panel.hidden { display: none; }

@keyframes bk-fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 6px;
  font-weight: 700;
}

.panel-sub {
  color: var(--grey);
  margin: 0 0 28px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Property cards ── */
.property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 540px) { .property-grid { grid-template-columns: 1fr; } }

.property-card {
  background: var(--card-bg);
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 28px 20px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}

.property-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(13,127,212,0.15);
}

.property-card.selected {
  border-color: var(--brand-blue);
  background: rgba(13,127,212,0.1);
  box-shadow: 0 0 0 1px var(--brand-blue) inset;
}

.property-card.selected::after {
  content: '✓';
  position: absolute;
  top: 12px; right: 14px;
  width: 22px; height: 22px;
  background: var(--brand-blue);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.prop-icon { font-size: 2.8rem; margin-bottom: 12px; line-height: 1; }

.property-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--white);
  line-height: 1.3;
}

.prop-price {
  color: var(--brand-light);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ── Frequency ── */
.frequency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

@media (max-width: 500px) { .frequency-grid { grid-template-columns: 1fr; } }

.freq-card {
  background: var(--card-bg);
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  text-align: center;
}

.freq-card:hover { border-color: var(--brand-blue); transform: translateY(-2px); }

.freq-card.selected {
  border-color: var(--brand-blue);
  background: rgba(13,127,212,0.1);
}

.freq-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.freq-card h3 { font-size: 1rem; font-weight: 600; margin: 6px 0 8px; }

.freq-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--brand-light);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.freq-card p { font-size: 0.82rem; color: var(--grey); margin: 0; }

/* ── Add-ons ── */
.addons-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 14px;
}

.addons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

@media (max-width: 500px) { .addons-grid { grid-template-columns: 1fr; } }

.addon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.addon-item:has(input:checked) {
  border-color: var(--brand-blue);
  background: rgba(13,127,212,0.08);
}

.addon-item input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--brand-blue);
  flex-shrink: 0;
  cursor: pointer;
}

.addon-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.addon-name  { font-size: 0.9rem; font-weight: 500; }
.addon-price { color: var(--brand-light); font-weight: 600; font-size: 0.9rem; }

.addon-skylights {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  grid-column: 1 / -1;
}

.skylight-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.sky-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--brand-blue);
  background: transparent;
  color: var(--brand-light);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1;
}

.sky-btn:hover { background: var(--brand-blue); color: #fff; }

#skylight-count {
  font-size: 1.3rem;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
}

/* ── Live price display ── */
.price-display {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13,127,212,0.1);
  border: 2px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.price-label { color: var(--grey); font-size: 0.9rem; }

.price-total {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-left: auto;
}

.price-freq { color: var(--grey); font-size: 0.82rem; }

/* ── Calendar ── */
.calendar-wrap {
  background: var(--dark-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 420px;
  margin: 0 auto 16px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cal-month {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
}

.cal-nav {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none; color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}

.cal-nav:hover { background: var(--brand-blue); }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 4px;
  margin-bottom: 6px;
  text-align: center;
}

.cal-weekdays span {
  font-size: 0.68rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 0;
}

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

.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.12s;
  border: 2px solid transparent;
}

.cal-day:hover:not(.disabled):not(.empty) { background: rgba(13,127,212,0.3); }
.cal-day.today  { border-color: var(--brand-blue); }
.cal-day.selected { background: var(--brand-blue); color: #fff; font-weight: 700; border-color: var(--brand-blue); }
.cal-day.disabled { color: rgba(255,255,255,0.18); cursor: not-allowed; }
.cal-day.empty  { cursor: default; }

.selected-date-display {
  text-align: center;
  color: var(--brand-light);
  font-weight: 600;
  min-height: 36px;
  padding: 8px;
  font-size: 0.95rem;
}

/* ── Details form ── */
.booking-form { margin-bottom: 8px; }

.booking-form .form-group { margin-bottom: 16px; }

.booking-form label {
  display: block;
  font-size: 0.83rem;
  color: var(--grey);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.booking-form input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.booking-form input:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: rgba(13,127,212,0.06);
}

.booking-form input::placeholder { color: rgba(255,255,255,0.22); }

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

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

/* ── Confirm summary ── */
.confirm-summary {
  background: var(--dark-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 16px;
}

.summary-row:last-child { border-bottom: none; padding-top: 16px; }

.summary-label { color: var(--grey); font-size: 0.88rem; }
.summary-value { font-weight: 600; font-size: 0.92rem; text-align: right; max-width: 65%; }

.summary-total { margin-top: 4px; }
.summary-total .summary-label { color: var(--white); font-weight: 700; font-size: 0.95rem; }
.summary-total .summary-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--brand-light);
  letter-spacing: 0.04em;
}

/* ── GoCardless info ── */
.gocardless-info {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.06);
}

.gc-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.gocardless-info p { font-size: 0.85rem; color: var(--grey); margin: 0; line-height: 1.65; }
.gocardless-info strong { color: var(--white); }

/* ── Nav buttons ── */
.booking-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Success screen ── */
.booking-success {
  text-align: center;
  padding: 48px 24px;
  max-width: 520px;
  margin: 0 auto;
}

.success-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.booking-success h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 12px;
}

.booking-success p {
  color: var(--grey);
  line-height: 1.7;
  margin: 0 0 12px;
  font-size: 0.97rem;
}

.booking-success p strong { color: var(--white); }

.success-booking-summary {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0 28px;
}

.success-booking-summary span {
  background: rgba(13,127,212,0.15);
  border: 1px solid var(--brand-blue);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-light);
}

.success-gc-btn {
  font-size: 1.05rem;
  padding: 16px 36px;
  display: inline-flex;
  margin: 0 auto;
}

.success-note {
  font-size: 0.85rem !important;
  margin-top: 20px !important;
}

.success-note a { color: var(--brand-light); }

/* ── Responsive tweaks ── */
@media (max-width: 480px) {
  .booking-steps { padding: 32px 12px 24px; }
  .step-label    { display: none; }
  .step-connector { min-width: 12px; }
  .booking-content { padding: 0 16px; }
  .price-total { font-size: 1.8rem; }
}
