/* SalClean Booking Form Styles - Integrated from user design */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Open Sans', sans-serif;
  background: hsl(210, 17%, 98%);
  color: hsl(0, 0%, 10%);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Montserrat', sans-serif; }
button { cursor: pointer; font-family: 'Open Sans', sans-serif; }
input, select { font-family: 'Open Sans', sans-serif; }

/* ─── Main Layout ─── */
.page-section {
  padding: 3.5rem 1.5rem 4rem;
  min-height: calc(100vh - 64px);
  background: hsl(210, 17%, 98%);
}
.page-section .container {
  max-width: 896px;
  margin: 0 auto;
}

/* ─── Progress Stepper ─── */
.progress-wrap { margin-bottom: 2.5rem; }
.step-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  color: hsl(210, 10%, 40%);
  transition: color 0.3s;
}
.step-label.active { color:hsl(204, 98%, 43%); }
.step-label.done { color: hsl(170, 95%, 38%); }
.step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  background: hsl(210, 17%, 95%);
  color: hsl(210, 10%, 40%);
  transition: background 0.3s, color 0.3s;
  flex-shrink: 0;
}
.step-circle.active { background:hsl(204, 98%, 43%); color: #fff; }
.step-circle.done { background: hsl(170, 95%, 38%); color: #fff; }
.step-label span.label-text { display: none; }
@media (min-width: 640px) { .step-label span.label-text { display: inline; } }

.progress-bar-track {
  height: 8px;
  background: hsl(210, 17%, 95%);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, hsl(204, 98%, 43%) 0%, hsl(170, 95%, 38%) 100%);
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 1px 4px rgba(2,131,217,.35);
}

/* ─── Price Badge ─── */
.price-badge {
  background:hsl(204, 98%, 43%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ─── Section Header Row ─── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.5rem;
}
.section-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

/* ─── Cards / Panels ─── */
.panel {
  background: hsl(0, 0%, 100%);
  border-radius: 12px;
  border: 1px solid hsl(210, 20%, 90%);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.panel h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ─── Contract Type Cards ─── */
.contract-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (max-width: 600px) { .contract-grid { grid-template-columns: 1fr; } }
.contract-card {
  background: hsl(0, 0%, 100%);
  border-radius: 12px;
  border: 2px solid hsl(210, 20%, 90%);
  padding: 1.5rem;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  width: 100%;
}
.contract-card:hover { border-color: rgba(2,132,199,0.3); }
.contract-card.selected { border-color:hsl(204, 98%, 43%); box-shadow: 0 4px 20px rgba(2,132,199,0.15); }
.contract-card-icon {
  width: 40px; height: 40px;
  margin-bottom: 0.75rem;
  color: hsl(210, 10%, 40%);
  transition: color 0.2s;
}
.contract-card.selected .contract-card-icon { color:hsl(204, 98%, 43%); }
.contract-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.25rem; color: hsl(0, 0%, 10%); }
.contract-card p { font-size: 0.875rem; color: hsl(210, 10%, 40%); margin-bottom: 0.5rem; }
.contract-card .price-hint { font-size: 0.75rem; font-weight: 600; color:hsl(204, 98%, 43%); }

/* ─── Product Preference ─── */
.pref-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 0.5rem;
  border: 2px solid hsl(210, 20%, 90%);
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  color: hsl(0, 0%, 10%);
  transition: all 0.2s;
}
.pref-btn:hover { border-color: rgba(2,132,199,0.3); }
.pref-btn.selected { border-color:hsl(204, 98%, 43%); background: rgba(2,132,199,0.05); color:hsl(204, 98%, 43%); }
.pref-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Labels & Inputs ─── */
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: hsl(0, 0%, 10%);
}
.form-input, .form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid hsl(210, 20%, 90%);
  border-radius: 0.5rem;
  background: hsl(210, 17%, 98%);
  font-size: 0.875rem;
  color: hsl(0, 0%, 10%);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Open Sans', sans-serif;
}
.form-input:focus, .form-select:focus {
  border-color:hsl(204, 98%, 43%);
  box-shadow: 0 0 0 3px rgba(2,132,199,0.1);
}
.form-input::placeholder { color: hsl(210, 10%, 40%); }
.form-group { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.input-error { border-color: hsl(0, 84%, 60%); }
.error-msg { font-size: 0.75rem; color: hsl(0, 84%, 60%); margin-top: 4px; }

/* ─── Addon Chips ─── */
.addon-chip {
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid hsl(210, 20%, 90%);
  font-size: 0.75rem;
  font-weight: 500;
  background: transparent;
  color: hsl(0, 0%, 10%);
  transition: all 0.15s;
  cursor: pointer;
}
.addon-chip:hover { border-color: rgba(2,132,199,0.3); }
.addon-chip.active { background:hsl(204, 98%, 43%); color: #fff; border-color:hsl(204, 98%, 43%); }
.addon-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ─── Counter Row ─── */
.counter-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.counter-btn {
  width: 36px; height: 36px;
  border-radius: 0.5rem;
  border: 1px solid hsl(210, 20%, 90%);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; line-height: 1;
  transition: background 0.15s;
}
.counter-btn:hover { background: hsl(210, 17%, 95%); }
.counter-val { font-size: 0.875rem; font-weight: 600; width: 32px; text-align: center; }
.counter-note { font-size: 0.75rem; color: hsl(210, 10%, 40%); }

/* ─── Yes/No Buttons ─── */
.yes-no-row { display: flex; gap: 12px; margin-top: 6px; }
.yes-no-btn {
  flex: 1;
  padding: 8px 16px;
  border-radius: 0.5rem;
  border: 2px solid hsl(210, 20%, 90%);
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  color: hsl(0, 0%, 10%);
  transition: all 0.2s;
  cursor: pointer;
}
.yes-no-btn:hover { border-color: rgba(2,132,199,0.3); }
.yes-no-btn.selected { border-color:hsl(204, 98%, 43%); background: rgba(2,132,199,0.05); color:hsl(204, 98%, 43%); }

/* ─── Date Picker ─── */
.date-picker-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid hsl(210, 20%, 90%);
  border-radius: 0.5rem;
  background: hsl(0, 0%, 100%);
  font-size: 0.875rem;
  color: hsl(210, 10%, 40%);
  cursor: pointer;
  width: 260px;
  transition: border-color 0.2s;
}
.date-picker-trigger.has-date { color: hsl(0, 0%, 10%); }
.date-picker-trigger:hover { border-color:hsl(204, 98%, 43%); }
.cal-popover {
  position: absolute;
  background: hsl(0, 0%, 100%);
  border: 1px solid hsl(210, 20%, 90%);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 100;
  width: 300px;
  display: none;
}
.cal-popover.open { display: block; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.cal-month { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.9rem; }
.cal-nav { background: none; border: 1px solid hsl(210, 20%, 90%); border-radius: 6px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cal-nav:hover { background: hsl(210, 17%, 95%); }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.7rem; color: hsl(210, 10%, 40%); font-weight: 600; margin-bottom: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cal-day:hover:not(.disabled):not(.selected) { background: hsl(210, 17%, 95%); }
.cal-day.disabled { color: hsl(210, 10%, 40%); cursor: not-allowed; opacity: 0.4; }
.cal-day.selected { background:hsl(204, 98%, 43%); color: #fff; font-weight: 700; }
.cal-day.empty { cursor: default; }
.cal-day.today:not(.selected) { font-weight: 700; color:hsl(204, 98%, 43%); }

/* ─── Dashed Callout ─── */
.callout-dashed {
  border: 2px dashed hsl(170, 95%, 38%);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  background: rgba(4,178,140,0.04);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}
.callout-dashed a { color: hsl(170, 95%, 38%); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ─── Summary Table ─── */
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 0.875rem;
  padding: 4px 0;
}
.summary-row .label { color: hsl(210, 10%, 40%); }
.summary-row .val { font-weight: 500; }
.summary-divider { border: none; border-top: 1px solid hsl(210, 20%, 90%); margin: 12px 0; }
.summary-total { font-size: 1rem; font-weight: 700; }
.summary-total .val { color:hsl(204, 98%, 43%); }

/* ─── Checkout Grid ─── */
.checkout-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 1.5rem; }

.price-breakdown {
  background: hsl(210, 17%, 95%);
  border-radius: 12px;
  border: 1px solid hsl(210, 20%, 90%);
  padding: 1.5rem;
  position: sticky;
  top: 88px;
}
.price-breakdown h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: linear-gradient(135deg, hsl(204, 98%, 43%) 0%, hsl(204, 98%, 36%) 100%); color: #fff; box-shadow: 0 2px 10px rgba(2,131,217,.3); }
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, hsl(204, 98%, 36%) 0%, hsl(204, 98%, 30%) 100%); box-shadow: 0 4px 16px rgba(2,131,217,.38); transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline { background: transparent; color: hsl(0, 0%, 10%); border: 1px solid hsl(210, 20%, 90%); }
.btn-outline:hover { background: hsl(210, 17%, 95%); }
.btn-stripe {
  width: 100%; justify-content: center;
  padding: 18px 20px;
  font-size: 1rem;
  background: hsl(210, 80%, 45%);
  color: #fff;
}
.btn-stripe:hover:not(:disabled) { background: hsl(210, 80%, 40%); }

.salclean-input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12) !important;
}

.salclean-field-error,
.salclean-form-error {
  color: #b91c1c;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

.salclean-form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 10px 12px;
}
.btn-row { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.btn-row-right { justify-content: flex-end; }

/* ─── Step panels ─── */
.step-panel { display: none; }
.step-panel.active { display: block; }

/* ─── Spinner ─── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Success / Confirmation State ─── */
.confirm-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 2rem 1rem 4rem;
}
.confirm-card {
  background: hsl(0, 0%, 100%);
  border-radius: 16px;
  border: 1px solid hsl(210, 20%, 90%);
  padding: 2.5rem 2rem;
  max-width: 674px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.confirm-check-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid hsl(170, 95%, 38%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
}
.confirm-check-icon svg { color: hsl(170, 95%, 38%); }
.confirm-title {
  font-size: 1.75rem; font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.75rem;
}
.confirm-tracking-row {
  display: inline-flex; align-items: center; gap: 10px;
  background: hsl(170, 95%, 38%);
  color: #fff;
  padding: 8px 18px;
  border-radius: 9999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.confirm-track-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.875rem;
  color:hsl(204, 98%, 43%);
  font-weight: 600;
  text-decoration: none;
  margin-left: 10px;
}
.confirm-track-link:hover { text-decoration: underline; }
.confirm-subtitle {
  font-size: 0.875rem;
  color: hsl(210, 10%, 40%);
  margin-bottom: 1.5rem;
}
.confirm-order-box {
  background: hsl(210, 17%, 95%);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  margin-bottom: 1.5rem;
}
.confirm-order-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.confirm-order-header h3 {
  font-size: 1rem; font-weight: 700;
}
.confirm-copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 0.5rem;
  border: 1px solid hsl(210, 20%, 90%);
  background: hsl(0, 0%, 100%);
  font-size: 0.75rem; font-weight: 500;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  transition: background 0.15s;
}
.confirm-copy-btn:hover { background: hsl(210, 20%, 90%); }
.confirm-meta-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; margin-bottom: 6px;
}
.confirm-meta-row svg { color: hsl(210, 10%, 40%); flex-shrink: 0; margin-top: 1px; }
.confirm-meta-row strong { font-weight: 600; }
.confirm-line-items { margin-top: 1rem; }
.confirm-line-row {
  display: flex; justify-content: space-between;
  font-size: 0.875rem; padding: 3px 0;
  color: hsl(210, 10%, 40%);
}
.confirm-addons-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em;
  color: hsl(210, 10%, 40%);
  text-transform: uppercase;
  margin-top: 8px; margin-bottom: 2px;
}
.confirm-divider { border: none; border-top: 1px solid hsl(210, 20%, 90%); margin: 10px 0; }
.confirm-total-row {
  display: flex; justify-content: space-between;
  font-size: 1rem; font-weight: 700; padding: 2px 0;
}
.confirm-total-row .total-amt { color:hsl(204, 98%, 43%); }
.confirm-btn-row {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap;
}

/* ─── Postcode Autocomplete ─── */
.postcode-wrap { position: relative; }
.postcode-dropdown {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: hsl(0, 0%, 100%);
  border: 1px solid hsl(210, 20%, 90%);
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  display: none;
}
.postcode-dropdown.open { display: block; }
.postcode-option {
  padding: 10px 12px;
  font-size: 0.875rem;
  cursor: pointer;
  border-bottom: 1px solid hsl(210, 17%, 95%);
  transition: background 0.1s;
}
.postcode-option:last-child { border-bottom: none; }
.postcode-option:hover { background: hsl(210, 17%, 95%); }

/* scrollbar — keep this last */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: hsl(210, 17%, 95%); }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 4px; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .price-breakdown { position: static; }
}
@media (max-width: 767px) {
  .page-section {
    padding: 2.5rem 0.5rem 2rem;
  }
  .confirm-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0rem;
  }
  .confirm-card {
    padding: 2.5rem 1rem;
  }
  .confirm-order-header h3 {
    font-size: 15px;
  }
  .confirm-line-row {
    font-size: 13px;
  }
  .confirm-title {
    font-size: 20px;
  }
}
