.splashbacks-calc-wrapper *, .splashbacks-calc-wrapper *::before, .splashbacks-calc-wrapper *::after { box-sizing: border-box; margin: 0; padding: 0; }

.splashbacks-calc-wrapper {
  --bg: #ffffff;
  --bg-secondary: #f7f7f5;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #a0a0a0;
  --border: rgba(0,0,0,0.12);
  --border-hover: rgba(0,0,0,0.25);
  --border-strong: rgba(0,0,0,0.4);
  --radius-md: 8px;
  --radius-lg: 12px;
  --accent: #1a1a1a;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  width: 100%;
  display: flex;
  justify-content: center;
}

.calc-outer {
  width: 100%;
  max-width: 600px;
  background: var(--bg);
  border-radius: 16px;
  border: 0.5px solid var(--border);
  padding: 2.5rem 2rem;
}

.brand {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.calc-outer h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 1.2;
}

.subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.trust-badges {
  display: flex;
  gap: 16px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-tertiary);
  flex-shrink: 0;
}

.progress-bar {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.step-row {
  display: flex;
  gap: 8px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.step-pill {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  border: 0.5px solid var(--border);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.step-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.step-content { display: none; }
.step-content.active { display: block; }

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 2rem;
}

.type-card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--bg);
  text-align: left;
}

.type-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-secondary);
}

.type-card.selected {
  border: 1.5px solid var(--accent);
  background: var(--bg-secondary);
}

.type-icon {
  display: block;
  width: 24px; height: 24px;
  border-radius: 50%;
  margin-bottom: 8px;
}

.type-name {
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.type-hint {
  font-size: 11px;
  color: var(--text-tertiary);
}

.dim-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1rem;
}

.dim-field label {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}

.dim-input-wrap {
  display: flex;
  align-items: center;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.15s;
}

.dim-input-wrap:focus-within {
  border-color: var(--border-strong);
}

.dim-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  width: 100%;
}

.dim-unit {
  padding: 0 12px;
  font-size: 12px;
  color: var(--text-tertiary);
  border-left: 0.5px solid var(--border);
  height: 40px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.area-display {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: right;
  margin-bottom: 1.5rem;
}

.finish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 1.5rem;
}

.finish-btn {
  padding: 10px 8px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.finish-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-secondary);
}

.finish-btn.selected {
  border: 1.5px solid var(--accent);
  color: var(--text);
  background: var(--bg-secondary);
}

.warning-box {
  background: #fffbeb;
  border: 0.5px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12px;
  color: #92400e;
  margin-bottom: 1rem;
  display: none;
  line-height: 1.5;
}

.addons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 2rem;
}

.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}

.addon-row:hover { background: var(--bg-secondary); }
.addon-row.selected { border: 1.5px solid var(--accent); }

.addon-info { flex: 1; }
.addon-name { font-size: 13px; font-weight: 500; }
.addon-desc { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.addon-price { font-size: 13px; color: var(--text-secondary); margin-right: 12px; flex-shrink: 0; }

.addon-check {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 0.5px solid var(--border-hover);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.addon-check.checked {
  background: var(--accent);
  border-color: var(--accent);
}

.addon-check.checked::after {
  content: '';
  width: 10px; height: 6px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.summary-card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background: var(--bg-secondary);
  margin-bottom: 1rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
  color: var(--text-secondary);
}

.summary-line.total {
  border-top: 0.5px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}

.summary-line.total span:last-child {
  font-family: 'Playfair Display', serif;
}

.caveat {
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.next-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s;
  margin-top: 0.5rem;
}

.next-btn:hover { opacity: 0.85; }
.next-btn:disabled { opacity: 0.3; cursor: default; }

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-primary {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s;
  text-decoration: none;
  display: block;
}

.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  padding: 14px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  border: 0.5px solid var(--border-hover);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
  text-decoration: none;
  display: block;
}

.btn-secondary:hover { background: var(--bg-secondary); }

.back-btn {
  font-size: 13px;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  padding: 0;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.back-btn:hover { color: var(--text); }

.panels-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 2rem;
}

@media (max-width: 480px) {
  .calc-outer { padding: 1.5rem 1rem; }
  .calc-outer h1 { font-size: 22px; }
  .cta-row { grid-template-columns: 1fr; }
  .dim-row { grid-template-columns: 1fr; }
}
