/* ============================================================
   Purple Window Cleaning — multi-step estimate funnel
   Standalone page (page-estimate.php). main.css is NOT loaded here,
   so this file is self-contained.
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --accent: #6B2FA3;
  --accent-dark: #552093;
  --text: #16101f;
  --muted: #777;
  --border: #e2e2e2;
  --bg: #f5f6f8;
  --ok: #16a34a;
  --err: #dc2626;
}
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  padding: 24px 16px;
  min-height: 100vh;
}
.card {
  background: #fff;
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  overflow: hidden;
  align-self: flex-start;
}

/* Embedded in the homepage CTA (iframe, ?embed=1): fill the frame, no page chrome */
body.embed { background: transparent; padding: 0; min-height: 0; display: block; }
body.embed .card { max-width: none; box-shadow: none; border-radius: 16px; }

/* Header + progress */
.head { padding: 24px 28px 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.3px;
  margin-bottom: 16px;
  text-decoration: none;
}
.brand svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-logo { width: 20px; height: 20px; display: block; flex: 0 0 auto; }
.progress { height: 5px; background: #eceef3; border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.progress-bar { height: 100%; background: var(--accent); width: 16%; transition: width 0.3s ease; border-radius: 999px; }
.step-count { font-size: 12px; color: var(--muted); text-align: right; padding-bottom: 20px; }

/* Body */
.body { padding: 8px 28px 28px; }
.step { display: none; animation: fade 0.25s ease; }
.step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.q-title { font-size: 21px; font-weight: 700; color: var(--text); margin-bottom: 6px; letter-spacing: -0.3px; }
.q-sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }

/* Inputs */
.field { margin-bottom: 16px; }
.label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 7px; }
.label .opt { color: var(--muted); font-weight: 400; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=time], textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  transition: border 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 72px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(107,47,163,0.14); }

/* Honeypot — hidden from humans, visible to bots */
.hp { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Multi-select row list */
.picklist { display: grid; gap: 10px; }
.pick { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: #fff; transition: all 0.15s; font-size: 15px; font-weight: 600; color: var(--text); }
.pick:hover { border-color: #c8aee0; }
.pick.selected { border-color: var(--accent); background: #f6f1fb; box-shadow: 0 0 0 1px var(--accent) inset; }
.pick .box { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; border: 1.6px solid #c8aee0; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.pick.selected .box { background: var(--accent); border-color: var(--accent); }
.pick .box svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.pick.selected .box svg { opacity: 1; }
.pick .pick-txt { display: flex; flex-direction: column; gap: 2px; }
.pick .pick-sub { font-size: 12px; font-weight: 400; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Big choice buttons */
.choices { display: grid; gap: 12px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice { border: 1.5px solid var(--border); border-radius: 12px; padding: 20px 16px; cursor: pointer; text-align: center; transition: all 0.15s; background: #fff; font-size: 15px; font-weight: 600; color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
/* Residential discount tile — promo pill above the icon */
.choice--deal { position: relative; }
.deal-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; margin-bottom: 2px; box-shadow: 0 3px 8px rgba(107,47,163,0.28); }
.choice--deal.selected .deal-badge { background: var(--accent-dark); }
.choice .ico { display: flex; align-items: center; justify-content: center; }
.choice .ico svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.choice .desc { font-size: 12px; font-weight: 400; color: var(--muted); }
.choice:hover { border-color: #c8aee0; }
.choice.selected { border-color: var(--accent); background: #f6f1fb; box-shadow: 0 0 0 1px var(--accent) inset; }
.choice.selected .ico svg { stroke: var(--accent-dark); }

/* Service list revealed after choosing a property type (merged step) */
.svc-reveal { display: none; }
.svc-reveal.show { display: block; animation: fade 0.25s ease; }
.svc-reveal-title { font-size: 15px; font-weight: 700; color: var(--text); margin: 24px 0 12px; }

/* Window type grid */
.win-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 4px; }
.win { border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 8px; cursor: pointer; text-align: center; transition: all 0.15s; background: #fff; }
.win:hover { border-color: #c8aee0; }
.win.selected { border-color: var(--accent); background: #f6f1fb; box-shadow: 0 0 0 1px var(--accent) inset; }
.win svg { width: 44px; height: 44px; margin-bottom: 6px; }
.win-name { font-size: 11px; font-weight: 600; color: #333; line-height: 1.25; }
.win-stroke { stroke: var(--accent); stroke-width: 2.1; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.win-glass { fill: #f0e8f8; }

/* Media upload */
.uploader { margin-top: 18px; }
.rec { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #f6f1fb; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; }
.dz-hint { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.dropzone { border: 1.5px dashed #c8aee0; border-radius: 12px; padding: 22px 16px; text-align: center; cursor: pointer; transition: all 0.15s; background: #faf7fd; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: #f6f1fb; }
.dropzone svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.dropzone .dz-main { font-size: 14px; font-weight: 600; color: #444; }
.dropzone .dz-main span { color: var(--accent); }
.dropzone .dz-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.thumb { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--border); background: #f0e8f8; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .badge { position: absolute; left: 5px; bottom: 5px; background: rgba(22,16,31,0.72); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: 0.4px; padding: 2px 5px; border-radius: 5px; }
.thumb .rm { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(22,16,31,0.72); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; padding: 0; }
.thumb .rm:hover { background: var(--accent); }

/* Timing */
.timing { display: grid; gap: 10px; }
.timing .choice { flex-direction: row; justify-content: flex-start; padding: 15px 18px; gap: 12px; }
.timing .choice .ico svg { width: 22px; height: 22px; }
.custom-date { display: none; margin-top: 14px; padding: 16px; background: #f9fafc; border-radius: 12px; }
.custom-date.show { display: block; }

/* Footer nav + error */
.form-err { display: none; margin-top: 16px; padding: 11px 14px; border-radius: 10px; background: #fdeaea; color: var(--err); font-size: 13px; font-weight: 600; }
.nav { display: flex; gap: 10px; margin-top: 24px; }
.btn { flex: 1; border: none; border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.btn-next { background: var(--accent); color: #fff; }
.btn-next:hover { background: var(--accent-dark); }
.btn-next:disabled { background: #c3ccdd; cursor: not-allowed; }
.btn-back { flex: 0 0 auto; background: #f0f1f5; color: #555; padding: 14px 20px; }
.btn-back:hover { background: #e5e7ee; }

/* Success */
.success { text-align: center; padding: 20px 0; }
.success .check { width: 64px; height: 64px; background: #eafaf0; color: var(--ok); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.success .check svg { width: 34px; height: 34px; stroke: var(--ok); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.success h2 { font-size: 22px; margin-bottom: 10px; }
.success p { color: var(--muted); font-size: 15px; }
.summary { text-align: left; background: #f9fafc; border-radius: 12px; padding: 16px 18px; margin-top: 22px; font-size: 13px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border-bottom: 1px solid #eef0f4; }
.summary-row:last-child { border-bottom: none; }
.summary-row .k { color: var(--muted); }
.summary-row .v { font-weight: 600; text-align: right; }
