/* ==========================================
   Signature Housekeeping Design System
   estimator.css
   Visual Source of Truth: V1 style-v7.css & estimator-v8.css
========================================== */

/* Step Form Wrapper */
.step-form {
  display: block;
  border: 1px solid var(--taupe);
  background: rgba(255, 253, 248, 0.55);
  padding: clamp(22px, 3vw, 38px);
}

.estimate form {
  position: relative;
}

.estimate form > label {
  min-width: 0;
}

/* Progress Bar */
.step-progress {
  margin-bottom: 30px;
}

.step-progress > span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.step-progress > div {
  height: 2px;
  background: var(--taupe);
  overflow: hidden;
}

.step-progress i {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--gold);
  transition: width 0.25s ease;
}

/* Form Steps & Grids */
.form-step {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
}

.form-step.is-active {
  display: block;
}

.form-step > legend {
  float: left;
  width: 100%;
  font-family: Georgia, serif;
  font-size: 31px;
  margin: 0 0 8px;
}

.form-step > legend span {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-right: 10px;
}

.form-step > p {
  clear: both;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 25px;
}

.step-grid,
.addon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.step-grid .wide-field {
  grid-column: 1/-1;
}

.step-grid label,
.addon-grid > label {
  min-width: 0;
}

.step-grid label:nth-child(n),
.addon-grid label:nth-child(n) {
  grid-column: auto;
}

/* Addons Component */
.addons {
  grid-column: 1/-1;
  border: 1px solid #c9baa2;
  padding: 18px 20px;
  margin: 0;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #fffaf1;
}

.form-step.addons.is-active {
  display: grid;
}

.addons.is-active {
  display: block;
}

.addons legend {
  padding: 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 10px;
  font-weight: bold;
}

.addons label {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 9px;
}

.addons input {
  width: auto;
  margin: 0;
  accent-color: var(--gold);
}

.addon-grid {
  clear: both;
}

.addons .addon-grid label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 10px;
  font-weight: bold;
}

.addons .addon-grid label small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 4px;
}

.addons .check-option {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border: 1px solid #c9baa2;
  background: #fffdf8;
  padding: 14px 16px;
}

.addons .check-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
}

.addons .check-option span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-transform: none;
  letter-spacing: 0;
}

.addons .check-option span b {
  font-size: 13px;
  font-weight: 600;
}

.addons .check-option span small {
  margin: 0;
  color: var(--gold);
}

/* Estimate Result Component */
.calculate-button {
  grid-column: 1/-1;
  width: 100%;
}

.estimate-result {
  grid-column: 1/-1;
  border: 1px solid var(--gold);
  background: #fffdf8;
  padding: 28px;
  text-align: center;
}

.estimate-result[hidden] {
  display: none;
}

.estimate-result span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  color: var(--gold);
  font-weight: bold;
}

.estimate-result strong {
  display: block;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 5vw, 58px);
  margin: 12px 0;
  color: var(--deep);
}

.estimate-result p {
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
  margin: 0 auto 14px;
  max-width: 560px;
}

.estimate-result small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.estimate-result .booking-credit {
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--taupe);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #6b2e1f;
}

.form-step .estimate-result {
  margin-bottom: 26px;
}

.estimate-result + .contact-fields {
  margin-top: 4px;
}

/* Contact Fields Component */
.contact-fields {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--taupe);
  padding-top: 24px;
}

.contact-fields[hidden] {
  display: none;
}

.contact-fields h3,
.contact-fields label:nth-of-type(3),
.contact-fields label:nth-of-type(4),
.contact-fields button {
  grid-column: 1/-1;
}

.contact-fields h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  margin: 0;
}

.contact-fields button {
  width: 100%;
}

.contact-fields > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Marketing Opt-in */
.marketing-optin {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--taupe);
  padding: 14px 16px;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.marketing-optin input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 1px 0 0;
}

.marketing-optin span {
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.marketing-optin small {
  display: inline !important;
  font-size: 11px !important;
  font-weight: 400;
}

/* Status, Validation & Travel */
.consent-note {
  grid-column: 1/-1;
}

.step-form > .consent-note {
  display: block;
  margin-top: 15px;
  font-size: 10px;
  color: var(--muted);
}

.step-save-status {
  min-height: 20px;
  margin: 14px 0 -8px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
}

.field-note {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.route-status {
  display: block;
  min-height: 15px;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

.route-status.is-loading {
  color: var(--muted);
}

.route-status.is-success {
  color: #2f6b48;
}

.route-status.is-warning {
  color: #8a5a24;
}

/* Step Buttons & Actions */
.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

.step-actions .button {
  min-height: 54px;
}

.step-back {
  background: transparent;
  border: 1px solid var(--taupe);
  color: var(--ink);
}

.step-back:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.final-actions {
  justify-content: flex-start;
  margin-top: 14px;
}
