/* RoofScour Gutter Guard Estimator — guard-estimator.css */

.rge-wrap {
  font-family: 'DM Sans', sans-serif;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(26,31,46,0.12);
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(26,31,46,0.08);
}

/* ── Header ── */
.rge-header {
  background: #1a1f2e;
  padding: 18px 28px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.rge-header-icon {
  width: 44px; height: 44px;
  background: rgba(200,131,42,0.15); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rge-header-text { flex: 1; min-width: 140px; }
.rge-header-title { font-family: 'DM Serif Display', serif; font-size: 16px; color: #f5f0e8; font-weight: 400; }
.rge-header-sub   { font-size: 12px; color: rgba(245,240,232,0.4); margin-top: 2px; }

/* ── Pills ── */
.rge-pills { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.rge-pill {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  background: rgba(245,240,232,0.1); color: rgba(245,240,232,0.35);
  transition: all 0.2s;
}
.rge-pill.active    { background: #c8832a; color: #fff; }
.rge-pill.completed { background: #1e7a6e; color: #fff; }
.rge-pill-line { width: 14px; height: 1px; background: rgba(245,240,232,0.15); }

/* ── Questions ── */
.rge-questions { padding: 30px 28px 8px; }
.rge-step { display: none; }
.rge-step.active { display: block; }
.rge-step-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #c8832a; margin-bottom: 10px; }
.rge-step-title { font-family: 'DM Serif Display', serif !important; font-size: clamp(18px, 2.5vw, 22px) !important; color: #1a1f2e !important; font-weight: 400 !important; margin: 0 0 6px !important; line-height: 1.3 !important; }
.rge-step-sub   { font-size: 13px; color: #4a5268; line-height: 1.6; margin-bottom: 20px; }

/* ── Options ── */
.rge-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.rge-options-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.rge-option {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; background: #f5f0e8;
  border: 1.5px solid rgba(26,31,46,0.1); border-radius: 10px;
  cursor: pointer; text-align: left; width: 100%;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.rge-option:hover  { border-color: rgba(200,131,42,0.4); background: #fdf3e3; transform: translateY(-1px); }
.rge-option.selected { border-color: #c8832a; background: #fdf3e3; box-shadow: 0 0 0 3px rgba(200,131,42,0.12); }
.rge-opt-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: #fff; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #4a5268; transition: all 0.15s;
}
.rge-option.selected .rge-opt-icon { background: #c8832a; color: #fff; }
.rge-opt-text strong { display: block; font-size: 13px; font-weight: 600; color: #1a1f2e; margin-bottom: 2px; }
.rge-opt-text span   { display: block; font-size: 11px; color: #4a5268; line-height: 1.4; }

/* ── Nav ── */
.rge-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 28px 22px; gap: 10px; }
.rge-nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.rge-nav-hint  { font-size: 12px; color: #888780; font-style: italic; }
.rge-btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; background: transparent; color: #4a5268;
  border: 1px solid rgba(26,31,46,0.15); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.rge-btn-back:hover { color: #1a1f2e; border-color: rgba(26,31,46,0.3); }
.rge-btn-next {
  padding: 10px 22px; background: #c8832a; color: #fff; border: none; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s, opacity 0.15s;
}
.rge-btn-next:hover    { background: #e09840; }
.rge-btn-next:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Results ── */

/* Summary bar */
.rge-summary-bar {
  background: #1a1f2e; padding: 12px 28px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  border-top: 1px solid rgba(245,240,232,0.08);
}
.rge-sum-item {
  font-size: 12px; color: rgba(245,240,232,0.55);
  background: rgba(255,255,255,0.06); padding: 4px 10px; border-radius: 20px;
}
.rge-edit-btn {
  display: inline-flex; align-items: center; gap: 5px; margin-left: auto;
  padding: 5px 12px; background: transparent; color: rgba(245,240,232,0.45);
  border: 1px solid rgba(245,240,232,0.15); border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.rge-edit-btn:hover { color: #f5f0e8; border-color: rgba(245,240,232,0.3); }

/* Current block */
.rge-current-block { padding: 20px 28px; border-bottom: 1px solid rgba(26,31,46,0.08); }
.rge-current-inner { background: #f5f0e8; border-radius: 10px; padding: 18px 22px; }
.rge-current-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #c8832a; margin-bottom: 14px; }
.rge-current-stats { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.rge-current-stat  { flex: 1; min-width: 140px; padding: 0 16px; text-align: center; }
.rge-current-stat:first-child { padding-left: 0; }
.rge-current-num { display: block; font-family: 'DM Serif Display', serif; font-size: 26px; color: #1a1f2e; line-height: 1; margin-bottom: 4px; }
.rge-current-sub { display: block; font-size: 11px; color: #4a5268; }
.rge-current-divider { width: 1px; height: 40px; background: rgba(26,31,46,0.12); margin: 0 4px; flex-shrink: 0; }

/* Results header */
.rge-results-header { padding: 20px 28px 4px; }
.rge-results-title { font-family: 'DM Serif Display', serif; font-size: 18px; color: #1a1f2e; font-weight: 400; margin-bottom: 6px; }
.rge-results-sub   { font-size: 13px; color: #4a5268; line-height: 1.6; }

/* Guard cards */
.rge-guard-cards {
  display: grid; grid-template-columns: 1fr; gap: 0;
  padding: 0 28px 16px;
}
.rge-guard-card {
  background: #fff; border-radius: 0; border: 1px solid rgba(26,31,46,0.08);
  border-top: none; padding: 16px 18px; position: relative;
}
.rge-guard-card:first-child { border-top: 1px solid rgba(26,31,46,0.08); border-radius: 10px 10px 0 0; }
.rge-guard-card:last-child  { border-radius: 0 0 10px 10px; }
.rge-card-best { border: 2px solid #1e7a6e !important; border-radius: 10px !important; margin-bottom: 4px; background: #f8fefe; }

.rge-guard-badge {
  display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 2px 9px; border-radius: 4px; margin-bottom: 8px;
}
.rge-guard-card-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.rge-guard-name    { font-size: 15px; font-weight: 700; line-height: 1; }
.rge-guard-lifespan{ font-size: 11px; color: #888780; }
.rge-guard-desc    { font-size: 12px; color: #4a5268; line-height: 1.6; margin: 0 0 8px; }
.rge-guard-warning {
  font-size: 11px; color: #854F0B; background: #fdf3e3;
  padding: 5px 10px; border-radius: 5px; margin-bottom: 10px; line-height: 1.5;
}
.rge-guard-numbers {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  background: #f5f0e8; border-radius: 8px; padding: 10px 14px; margin-bottom: 10px;
}
.rge-guard-num-item { flex: 1; min-width: 110px; text-align: center; padding: 4px 8px; }
.rge-guard-num-val  { display: block; font-family: 'DM Serif Display', serif; font-size: 18px; color: #1a1f2e; line-height: 1; margin-bottom: 2px; }
.rge-guard-num-label{ display: block; font-size: 10px; color: #888780; line-height: 1.3; }
.rge-guard-num-div  { width: 1px; height: 32px; background: rgba(26,31,46,0.1); flex-shrink: 0; }
.rge-guard-footer   { display: flex; align-items: center; gap: 8px; font-size: 12px; flex-wrap: wrap; }
.rge-footer-sep     { color: rgba(26,31,46,0.25); }
.rge-be-good  { color: #0F6E56; font-size: 12px; }
.rge-be-slow  { color: #854F0B; font-size: 12px; }
.rge-be-never { color: #A32D2D; font-size: 12px; }
.rge-saving-pos { color: #0F6E56; font-size: 12px; }
.rge-saving-neg { color: #A32D2D; font-size: 12px; }

/* Chart */
.rge-chart-section { padding: 20px 28px; border-top: 1px solid rgba(26,31,46,0.08); }
.rge-chart-title   { font-family: 'DM Serif Display', serif; font-size: 16px; color: #1a1f2e; font-weight: 400; margin-bottom: 4px; }
.rge-chart-sub     { font-size: 12px; color: #4a5268; margin-bottom: 18px; }
.rge-chart         { display: flex; flex-direction: column; gap: 10px; }
.rge-bar-row { display: flex; align-items: center; gap: 10px; }
.rge-bar-label { font-size: 12px; color: #1a1f2e; font-weight: 500; width: 105px; flex-shrink: 0; text-align: right; }
.rge-bar-track { flex: 1; height: 22px; background: rgba(26,31,46,0.06); border-radius: 4px; overflow: hidden; }
.rge-bar { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.rge-bar-baseline { background: rgba(26,31,46,0.35); }
.rge-bar-val { font-size: 12px; color: #1a1f2e; font-weight: 600; width: 68px; flex-shrink: 0; }
.rge-val-better { color: #0F6E56; }

/* Recommendation */
.rge-recommendation { padding: 0 28px 20px; }
.rge-rec {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; border-radius: 10px;
}
.rge-rec-positive { background: #e4f5f0; }
.rge-rec-neutral  { background: #f5f0e8; }
.rge-rec-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.rge-rec strong { display: block; font-size: 14px; font-weight: 600; color: #1a1f2e; margin-bottom: 6px; }
.rge-rec p { font-size: 13px; color: #4a5268; line-height: 1.6; margin: 0; }

/* Actions */
.rge-actions { padding: 0 28px 20px; }
.rge-btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; background: transparent; color: #4a5268;
  border: 1px solid rgba(26,31,46,0.15); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.rge-btn-secondary:hover { color: #1a1f2e; border-color: rgba(26,31,46,0.3); }

/* CTA */
.rge-cta { background: #1a1f2e; padding: 18px 28px; }
.rge-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rge-cta-text { display: flex; flex-direction: column; gap: 3px; }
.rge-cta-text strong { font-size: 14px; font-weight: 600; color: #f5f0e8; }
.rge-cta-text span   { font-size: 12px; color: rgba(245,240,232,0.4); }
.rge-btn-primary {
  display: inline-block; padding: 11px 20px; background: #c8832a; color: #fff !important;
  border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none !important; transition: background 0.15s; white-space: nowrap;
}
.rge-btn-primary:hover { background: #e09840; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .rge-header    { padding: 14px 16px; }
  .rge-questions { padding: 22px 16px 8px; }
  .rge-nav       { padding: 10px 16px 18px; }
  .rge-guard-cards, .rge-current-block, .rge-results-header,
  .rge-chart-section, .rge-recommendation, .rge-actions, .rge-cta { padding-left: 16px; padding-right: 16px; }
  .rge-options-2col { grid-template-columns: 1fr; }
  .rge-pills     { display: none; }
  .rge-current-divider { display: none; }
  .rge-current-stat { padding: 8px 0; }
  .rge-cta-inner { flex-direction: column; align-items: flex-start; }
  .rge-btn-primary { width: 100%; text-align: center; }
  .rge-bar-label { width: 80px; font-size: 11px; }
  .rge-guard-num-div { display: none; }
  .rge-guard-numbers { flex-direction: column; gap: 8px; }
  .rge-guard-num-item { text-align: left; padding: 0; }
}
