/* Samro Sites — Quote Builder. Brand tokens mirrored from samrosites.com */
:root {
  --gold: #C9A84C;
  --gold-light: #E8D5A3;
  --gold-dark: #A68B3C;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --navy: #0A1628;
  --navy-light: #162A4A;
  --black: #050505;
  --black-soft: #0D0D0D;
  --text: #F2F0EA;
  --sub: #9AA3B2;
  --line: rgba(255, 255, 255, 0.08);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background:
    radial-gradient(ellipse 900px 600px at 80% -10%, rgba(22, 42, 74, 0.55), transparent 60%),
    radial-gradient(ellipse 700px 500px at 10% 110%, var(--gold-glow), transparent 60%),
    var(--black);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Top bar ── */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.wordmark { text-decoration: none; letter-spacing: 0.18em; font-size: 15px; }
.wm-samro { font-weight: 700; color: var(--text); }
.wm-sites { font-weight: 300; color: var(--gold); margin-left: 6px; }

.topbar-label {
  font-size: 12px;
  color: var(--sub);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Layout ── */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 4vw, 64px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 56px) 120px;
}

.intro { margin-bottom: 56px; }

.intro h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  margin-bottom: 18px;
}

.intro .accent { color: var(--gold); font-style: italic; }

.intro p { color: var(--sub); font-size: 16px; line-height: 1.65; max-width: 54ch; }

/* ── Steps ── */
.step { margin-bottom: 64px; scroll-margin-top: 40px; }

.step-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.step h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 8px;
}

.step-note { color: var(--sub); font-size: 14px; line-height: 1.6; max-width: 58ch; }

.step-head { margin-bottom: 24px; }

/* ── Client fields ── */
.client-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 560px;
}

.field label {
  display: block;
  font-size: 12.5px;
  color: var(--sub);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 15px;
  transition: border-color 0.2s;
}

.field input:focus { outline: none; border-color: var(--gold); }

/* ── Choice cards ── */
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.choices--stack { grid-template-columns: 1fr; max-width: 560px; }

.choice {
  position: relative;
  text-align: left;
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.choice:hover { border-color: var(--gold-dark); transform: translateY(-1px); }

.choice strong { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 5px; }

.choice span { display: block; font-size: 13.5px; color: var(--sub); line-height: 1.5; }

.choice-price {
  position: absolute;
  top: 20px;
  right: 22px;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  color: var(--gold);
}

.choice.selected {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(201, 168, 76, 0.10), var(--black-soft) 55%);
}

.choice.selected strong { color: var(--gold-light); }

.choice:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── Steppers ── */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px;
}

.stepper-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.stepper-btn:hover { border-color: var(--gold); color: var(--gold); }

.stepper-value { min-width: 90px; text-align: center; font-size: 15px; font-weight: 500; }

.stepper--small .stepper-btn { width: 34px; height: 34px; font-size: 16px; }
.stepper--small .stepper-value { min-width: 76px; font-size: 14px; }

.substep {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  max-width: 560px;
}

.substep-text strong { display: block; font-size: 15.5px; margin-bottom: 4px; }
.substep-text span { font-size: 13.5px; color: var(--sub); }

.care-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--gold-light);
  background: var(--gold-glow);
  border: 1px solid var(--gold-dark);
  border-radius: 10px;
  padding: 12px 16px;
  max-width: 560px;
  line-height: 1.55;
}

/* ── Submit ── */
.submit-btn {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  border: none;
  border-radius: 99px;
  padding: 17px 40px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px var(--gold-glow); }
.submit-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.submit-status { margin-top: 14px; font-size: 14px; color: var(--sub); min-height: 20px; }
.submit-status.ok { color: #7ED9A0; }
.submit-status.err { color: #F08A8A; }

/* ── Summary ── */
.summary { position: relative; }

.summary-card {
  position: sticky;
  top: 28px;
  background: linear-gradient(170deg, var(--navy) 0%, var(--black-soft) 70%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}

.summary-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 18px;
}

.summary-lines { list-style: none; margin-bottom: 20px; }

.summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.summary-lines li span:first-child { color: var(--sub); }
.summary-lines li span:last-child { font-weight: 500; white-space: nowrap; }
.summary-lines li.discount span { color: var(--gold); }
.summary-lines li.empty { color: var(--sub); border-bottom: none; font-style: italic; }

.summary-total { border-top: 1px solid var(--line); padding-top: 16px; }

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.total-row span { color: var(--sub); font-size: 13.5px; }
.total-row strong { font-family: var(--serif); font-size: 30px; color: var(--gold-light); }
.total-row--monthly strong { font-size: 20px; color: var(--text); }

.summary-foot { font-size: 12px; color: var(--sub); margin-top: 14px; line-height: 1.5; }

/* ── Mobile ── */
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; padding-bottom: 160px; }

  .summary {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
  }

  .summary-card {
    position: static;
    border-radius: 18px 18px 0 0;
    padding: 16px 20px;
  }

  .summary-lines { display: none; }
  .summary-card h3 { display: none; }
  .summary-foot { display: none; }
  .summary-total { border-top: none; padding-top: 0; display: flex; gap: 28px; }
  .total-row { margin-bottom: 0; }
  .total-row strong { font-size: 22px; }

  .client-grid { grid-template-columns: 1fr; }
}

[hidden] { display: none !important; }

.total-row strong { font-variant-numeric: lining-nums; }

.care-highlight {
  margin-top: 14px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--gold);
  max-width: 58ch;
  line-height: 1.6;
}

.care-ten {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35em;
  color: var(--gold-light);
  padding: 0 2px;
}
