@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --bg: #f3f3f3;
  --bg-accent: #f3f3f3;
  --ink: #333;
  --muted: #333;
  --line: #d8e3ef;
  --brand: #01636d;
  --brand-dark: #01636d;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.calculator {
  background: var(--card);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 18px 40px rgba(15, 35, 60, 0.08);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}

.field {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.label {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f9fbfe;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: #b8cce5;
  box-shadow: 0 0 0 3px rgba(184, 204, 229, 0.35);
}

.hint {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.radio-group {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}

.radio input {
  position: absolute;
  opacity: 0;
}

.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #b1c3d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.radio input:checked + .dot {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(1, 99, 109, 0.15);
}

.cta-row {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.cta {
  border: none;
  padding: 14px 38px;
  border-radius: 26px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(1, 99, 109, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(1, 99, 109, 0.45);
}

.results {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.results.hidden {
  display: none;
}

.results h2 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 20px;
  font-size: 22px;
}

.service-note {
  margin: 6px 0 32px;
  font-size: 14px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.result-card {
  background: #f7fafc;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #e2edf7;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-card strong {
  font-size: 20px;
}

.result-card.wide {
  grid-column: span 2;
}

.disclaimer {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.disclaimer p {
  margin: 0 0 8px;
}

.disclaimer ul {
  margin: 0;
  padding-left: 18px;
}

.disclaimer li {
  margin-bottom: 6px;
}

.disclaimer a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .calculator {
    padding: 28px 22px;
  }

  .result-card.wide {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .cta {
    width: 100%;
  }
}
