/* ── Pebble IT Brand Variables ─────────────────────────────────────────── */
:root {
  --navy: #042C53;
  --teal: #0F6E56;
  --teal-light: #E1F5EE;
  --teal-text: #085041;
  --coral: #D85A30;
  --blue: #185FA5;
  --blue-light: #E6F1FB;
  --amber: #854F0B;
  --amber-light: #FAEEDA;
  --green-bg: #EAF3DE;
  --green-text: #3B6D11;
  --red-bg: #FCEBEB;
  --red-text: #A32D2D;
  --border: #D0CEC7;
  --grey-bg: #F5F4F1;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* Remove number input spinners globally */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: #FAFAF8;
  color: #1a1a1a;
}

.container-xl {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-circle--teal-fill  { width: 280px; height: 280px; background: #0F6E56; opacity: 0.18; top: -60px; right: -60px; }
.hero-circle--teal-ring  { width: 160px; height: 160px; border: 2px solid #5DCAA5; opacity: 0.22; top: 80px; right: 80px; }
.hero-circle--coral-fill { width: 110px; height: 110px; background: #D85A30; opacity: 0.13; bottom: 40px; right: 120px; }
.hero-circle--blue-ring  { width: 220px; height: 220px; border: 1.5px solid #378ADD; opacity: 0.18; bottom: -60px; left: -80px; }
.hero-circle--blue-fill  { width: 90px; height: 90px; background: #185FA5; opacity: 0.20; top: 80px; left: 260px; }

.hero-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
}

.hero-logo { height: 28px; }
.hero-logo-link { text-decoration: none; }
.hero-nav-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5DCAA5;
}

.hero-content { max-width: 680px; }

.hero-tag-line {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5DCAA5;
  margin-bottom: 12px;
}

.hero-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-subheading {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  margin-bottom: 28px;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: white;
  font-size: 0.8125rem;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Stats strip ──────────────────────────────────────────────────────── */
.stats-strip {
  background: var(--grey-bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--navy);
}

.stat-label {
  font-size: 0.8125rem;
  color: #666;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  margin: 0 20px;
}

/* ── Main content ──────────────────────────────────────────────────────── */
.main-content {
  padding: 48px 24px;
}

.choose-section {
  text-align: center;
  margin-bottom: 32px;
}

.choose-heading {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.choose-subheading {
  font-size: 1rem;
  color: #555;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Choice strips ──────────────────────────────────────────────────────── */
.choice-strips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.choice-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.1s;
}

.choice-strip:hover {
  box-shadow: 0 4px 16px rgba(4,44,83,0.10);
  border-color: var(--teal);
  transform: translateY(-1px);
}

.choice-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
}

.choice-icon--blue  { background: var(--blue-light); color: var(--blue); }
.choice-icon--teal  { background: var(--teal-light); color: var(--teal); }
.choice-icon--neutral { background: var(--grey-bg); color: #666; }

.choice-body { flex: 1; }

.choice-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.choice-description {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.5;
}

.choice-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.time-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.time-badge--teal    { background: var(--teal-light); color: var(--teal-text); }
.time-badge--neutral { background: var(--grey-bg);    color: #555; }

.choice-chevron {
  color: var(--border);
  font-size: 1.25rem;
}

/* ── What to expect ──────────────────────────────────────────────────────── */
.what-to-expect {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.expect-item {
  display: flex;
  gap: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
}

.expect-number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.expect-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.expect-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.expect-text {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 48px 0;
}

.footer-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.footer-circle--teal  { width: 180px; height: 180px; background: #0F6E56; opacity: 0.15; top: -40px; right: 100px; }
.footer-circle--coral { width: 100px; height: 100px; background: #D85A30; opacity: 0.10; bottom: -20px; right: 40px; }
.footer-circle--blue  { width: 140px; height: 140px; border: 1.5px solid #378ADD; opacity: 0.15; bottom: -40px; left: 60px; }

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo { height: 24px; }
.footer-logo-link { text-decoration: none; }

.footer-credential {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  background: var(--coral);
  color: white;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background 0.2s;
}
.btn-cta:hover { background: #C04E27; }

/* ── Page header (choice pages) ─────────────────────────────────────────── */
.page-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.page-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.page-header-logo {
  height: 28px;
  display: block;
}

.page-header-badge-wrap {
  justify-self: end;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}
.back-link:hover { color: var(--teal); }

.page-header-badge {
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-header-badge--teal   { background: var(--teal-light); color: var(--teal-text); }
.page-header-badge--neutral { background: var(--grey-bg); color: #555; }

/* ── Form page layout ──────────────────────────────────────────────────── */
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

.form-page {
  padding: 32px 24px 64px;
  flex: 1;
}

.form-page--narrow { max-width: 700px; }

/* Choice 1: single centred column */
.choice1-centered {
  max-width: 925px;
  margin: 0 auto;
}

/* Choice 2: lower form + results section — centred at 925px matching choice1 */
.choice2-lower-centered {
  max-width: 925px;
  margin: 40px auto 0;
}

.form-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}


.form-col { min-width: 0; }
.results-col { min-width: 0; position: sticky; top: 20px; }

.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 0.9375rem;
  color: #555;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── Form fields ─────────────────────────────────────────────────────────── */
.field-group { margin-bottom: 20px; }

.field-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.field-group input[type="text"],
.field-group input[type="number"],
.field-group input[type="email"],
.field-group input[type="tel"],
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9375rem;
  background: white;
  color: #1a1a1a;
  transition: border-color 0.2s;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,110,86,0.10);
}

.field-hint  { font-size: 0.8125rem; color: #888; margin-top: 4px; display: block; }
.field-label-sm { font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; }

.optional-tag {
  font-size: 0.75rem;
  font-weight: 400;
  color: #888;
  margin-left: 4px;
}

.input-currency {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

.input-currency:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,110,86,0.10);
}

.currency-prefix {
  background: var(--grey-bg);
  border-right: 1px solid var(--border);
  padding: 9px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.input-currency input {
  border: none !important;
  box-shadow: none !important;
  flex: 1;
  padding: 9px 12px;
}

/* ── Toggle groups ────────────────────────────────────────────────────────── */
.toggle-group {
  border: none;
  padding: 0;
  margin-bottom: 20px;
}

.toggle-group legend {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  display: block;
}

.toggle-row {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.toggle-row--wrap { flex-wrap: wrap; }

.toggle-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.toggle-opt input[type="radio"],
.toggle-opt input[type="checkbox"] {
  accent-color: var(--teal);
  cursor: pointer;
}

/* ── Toggle buttons (pill style) ──────────────────────────────────────────── */
.toggle-row .toggle-opt {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.875rem;
  transition: background 0.15s, border-color 0.15s;
}

.toggle-row .toggle-opt:has(input:checked) {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.toggle-row .toggle-opt input[type="radio"] { display: none; }

/* ── Checkboxes ────────────────────────────────────────────────────────────── */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 0.875rem;
}

/* 24×24 checkboxes everywhere on choice pages */
input[type="checkbox"] {
  accent-color: var(--teal);
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Preserve vertical alignment within checkbox-item grid cells */
.checkbox-item input[type="checkbox"] {
  margin-top: 2px;
}

.checkbox-item strong { display: block; font-size: 0.8125rem; }
.checkbox-item small  { display: block; font-size: 0.75rem; color: #888; line-height: 1.4; }

.checkbox-row { display: flex; gap: 20px; flex-wrap: wrap; }

/* ── Hardware product age buckets ──────────────────────────────────────────── */
.hw-item-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

/* Age picker: fixed to viewport so it's always visible regardless of column */
.age-bucket-group {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  /* top is set by JS */
}

.age-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.age-opt {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  cursor: pointer;
}

.age-opt input[type="radio"] {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  accent-color: var(--teal);
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

.age-bucket-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: 0;
  margin-left: 6px;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
}
.age-bucket-close:hover { color: var(--red-text); }

.hidden { display: none !important; }

/* ── Product details collapsible ──────────────────────────────────────────── */
.product-checkboxes {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.product-checkboxes summary {
  padding: 12px 16px;
  background: var(--grey-bg);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  user-select: none;
}

.product-checkboxes .checkbox-grid {
  padding: 12px 16px;
}

/* ── Complexity panel ─────────────────────────────────────────────────────── */
.complexity-panel {
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.complexity-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.complexity-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--teal);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
}

.complexity-title { font-size: 0.9375rem; font-weight: 700; color: var(--teal-text); }
.complexity-body  { font-size: 0.875rem; color: var(--teal-text); line-height: 1.6; }

/* ── Privacy / disclaimers ─────────────────────────────────────────────────── */
.privacy-statement {
  background: var(--grey-bg);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.privacy-statement .ti { color: var(--teal); flex-shrink: 0; margin-top: 2px; }

.dsql-privacy {
  font-size: 0.8125rem;
  color: #888;
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

/* ── Target state ──────────────────────────────────────────────────────────── */
.target-state-group { margin-top: 4px; }

/* ── Calculate button ─────────────────────────────────────────────────────── */
.calculate-action { margin-top: 24px; }

.btn-calculate {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  padding: 13px 28px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  width: 100%;
  justify-content: center;
}

.btn-calculate:hover:not(:disabled) { background: var(--teal); }
.btn-calculate:disabled { opacity: 0.45; cursor: not-allowed; }

.indicative-disclaimer {
  font-size: 0.75rem;
  color: #999;
  margin-top: 10px;
  line-height: 1.5;
}

/* ── HTMX spinner ─────────────────────────────────────────────────────────── */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-flex; }
.htmx-request.htmx-indicator  { display: inline-flex; }

.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Results panel ─────────────────────────────────────────────────────────── */
.results-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

/* ── Headline cards ──────────────────────────────────────────────────────── */
.headlines-section { margin-bottom: 28px; }

.headline-cards {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}
.headline-cards--3 { grid-template-columns: repeat(3, 1fr); }
.headline-cards--4 { grid-template-columns: repeat(4, 1fr); }
.headline-cards--5 { grid-template-columns: repeat(5, 1fr); }

.headline-card {
  background: var(--navy);
  color: white;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Colour classes — fill, border width and border colour all from cost_assumptions.yaml */
.headline-card--pass    { background: var(--card-pass,    #C8E6C9); border: var(--card-border-width, 0.75px) solid var(--card-pass-border,    #C8E6C9); }
.headline-card--neutral { background: var(--card-neutral, #E3F2FD); border: var(--card-border-width, 0.75px) solid var(--card-neutral-border, #E3F2FD); }
.headline-card--fail    { background: var(--card-fail,    #FADADD); border: var(--card-border-width, 0.75px) solid var(--card-fail-border,    #FADADD); }

/* Override text colours for light pastel card backgrounds */
.headline-card--pass    .headline-label,
.headline-card--neutral .headline-label,
.headline-card--fail    .headline-label { color: rgba(4,44,83,0.65); }
.headline-card--pass    .headline-value,
.headline-card--neutral .headline-value,
.headline-card--fail    .headline-value { color: #042C53; }
.headline-card--pass    .headline-sub,
.headline-card--neutral .headline-sub,
.headline-card--fail    .headline-sub   { color: rgba(4,44,83,0.55); }

.headline-label { font-size: 0.6875rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.5px; }
.headline-value { font-size: 1.25rem; font-weight: 800; color: white; }
.headline-value.value--negative::before { content: "-"; }
.headline-sub { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

/* ── ROI tables ──────────────────────────────────────────────────────────── */
.results-table-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.roi-table-wrap { overflow-x: auto; margin-bottom: 4px; }

.roi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.roi-table th {
  background: var(--navy);
  color: white;
  padding: 8px 10px;
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}
.roi-table th:first-child { text-align: left; }

.roi-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
  text-align: right;
  white-space: nowrap;
}
.roi-table td:first-child { text-align: left; font-weight: 600; color: var(--navy); }

.row-oracle td { background: #FAFAFA; }
.row-psql  td { background: white; }

.cell-positive { background: var(--green-bg) !important; color: var(--green-text); font-weight: 700; }
.cell-negative { background: var(--red-bg)   !important; color: var(--red-text);   font-weight: 700; }

.roi-table .total-col        { background: var(--navy) !important; color: white !important; font-weight: 700; }
/* Preserve green/red colouring on diff-row totals */
.roi-table td.total-col.cell-positive { background: var(--green-bg) !important; color: var(--green-text) !important; }
.roi-table td.total-col.cell-negative { background: var(--red-bg)   !important; color: var(--red-text)   !important; }

.table-footnote { font-size: 0.75rem; color: #888; margin-top: 4px; margin-bottom: 16px; }
.year1-note { font-size: 0.6875rem; color: #888; }

/* ── Hardware reminder ─────────────────────────────────────────────────────── */
.hardware-reminder {
  background: var(--amber-light);
  border-left: 3px solid var(--amber);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 16px 0;
  display: flex;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--amber);
  line-height: 1.6;
}

/* ── Email capture ─────────────────────────────────────────────────────────── */
.email-capture-section {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.email-capture-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.email-capture-subtitle {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
}

.pdf-caveat {
  font-size: 0.8125rem;
  color: #888;
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.btn-get-report {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: white;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  justify-content: center;
}
.btn-get-report:hover:not(:disabled) { background: #C04E27; }
.btn-get-report:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Report sending status strip ─────────────────────────────────────────── */
.report-sending-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 13px 18px;
  background: #E1F5EE;
  border: 1px solid #5DCAA5;
  border-left: 4px solid #0F6E56;
  border-radius: 6px;
  font-size: 14px;
  color: #085041;
  font-weight: 500;
  /* Hidden by default — slides in when visible class is added */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 250ms ease, opacity 200ms ease, margin-top 200ms ease;
  margin-top: 0;
}

.report-sending-strip--visible {
  max-height: 80px;
  opacity: 1;
  margin-top: 12px;
}

/* Spinner — CSS-only rotating ring */
.report-sending-spinner {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #5DCAA5;
  border-top-color: #0F6E56;
  border-radius: 50%;
  animation: rss-spin 0.75s linear infinite;
}

@keyframes rss-spin {
  to { transform: rotate(360deg); }
}

.consent-field {
  background: var(--blue-light);
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: #1a3c6b;
  line-height: 1.5;
}

.consent-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Confirmation panel ──────────────────────────────────────────────────── */
.confirmation-panel {
  text-align: center;
  padding: 32px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.confirmation-icon { font-size: 3rem; color: var(--teal); margin-bottom: 16px; }
.confirmation-title { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.confirmation-body  { font-size: 0.9375rem; color: #555; line-height: 1.6; margin-bottom: 12px; }
.confirmation-ref   { font-size: 0.8125rem; color: #888; }
.confirmation-ref code { background: var(--grey-bg); padding: 2px 6px; border-radius: 4px; font-family: monospace; }

/* ── Choice 2 full-width row builder layout ─────────────────────────────── */
.choice2-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.choice2-top-text { flex: 1; }

/* Row builders sit above the 2-col grid, spanning full container width */
.row-builders-wrap {
  width: 95vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 36px;
  padding: 0 2.5vw;
}

/* ── Row builder ───────────────────────────────────────────────────────────── */
.row-builder-section { margin-bottom: 32px; }

.section-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.template-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.template-lov {
  min-width: 300px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  background: white;
  flex: 1;
}

.btn-clear {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.8125rem;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
}
.btn-clear:hover { border-color: var(--red-text); color: var(--red-text); }

.template-error {
  background: var(--red-bg);
  border: 1px solid var(--red-text);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: var(--red-text);
  margin-bottom: 10px;
}

.row-builder-table-wrap { overflow-x: auto; }

.row-builder-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 8px;
  table-layout: auto;
}

.row-builder-table th {
  background: var(--grey-bg);
  color: var(--navy);
  padding: 9px 10px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

/* Column minimum widths — product names are long */
.row-builder-table th.col-product    { min-width: 230px; }
.row-builder-table th.col-metric     { width: 1%; text-align: center; white-space: nowrap; }
.row-builder-table th.col-qty        { min-width: 90px; width: 90px; text-align: center; }
.row-builder-table th.col-price      { min-width: 105px; width: 105px; }
.row-builder-table th.col-annual     { min-width: 115px; width: 115px; }
.row-builder-table th.col-renewal    { min-width: 115px; width: 115px; }
.row-builder-table th.col-year       { min-width: 105px; width: 105px; }
.row-builder-table th.col-waste      { min-width: 56px; width: 56px; text-align: center; }
.row-builder-table th.col-licset     { min-width: 95px; width: 95px; }
.row-builder-table th.col-remove     { width: 36px; }

.row-builder-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

/* Plain inputs in table cells — !important overrides Pico.css form element padding */
.input-sm {
  width: 100%;
  padding: 3px 5px !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  font-size: 0.875rem !important;
  background: white !important;
  margin: 0 !important;
}

.input-sm:focus {
  outline: none !important;
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 2px rgba(15,110,86,0.10) !important;
}


/* Tighter padding on metric toggle pills inside tables */
/* Match metric toggle pill height/padding exactly to the Product select */
.row-builder-table .toggle-row.tight .toggle-opt {
  padding: 3px 5px !important;
  font-size: 0.875rem !important;
  line-height: inherit !important;
  margin: 0 !important;
}

/* Pico.css overrides specifically for table cell selects and inputs */
.row-builder-table input,
.row-builder-table select {
  padding: 3px 5px !important;
  margin: 0 !important;
  font-size: 0.875rem !important;
  height: auto !important;
  min-height: unset !important;
}

/* Right-align numeric inputs in tables */
.row-builder-table input[inputmode="numeric"] {
  text-align: right !important;
}

/* Keep the currency wrapper for the main form fields (choice1 / email capture) */
.input-currency-sm {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
}
.input-currency-sm .currency-prefix {
  padding: 5px 6px;
  font-size: 0.75rem;
  background: var(--grey-bg);
}
.input-currency-sm input {
  border: none !important;
  padding: 5px 6px;
  font-size: 0.8125rem;
  min-width: 80px;
}

.center-cell {
  text-align: center;
  vertical-align: middle;
}

.center-cell input[type="checkbox"] {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  display: block !important;
  margin: 0 auto !important;
  cursor: pointer;
}

.btn-remove-row {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 1rem;
}
.btn-remove-row:hover { color: var(--red-text); }

.btn-add-row {
  background: white;
  border: 1px dashed var(--teal);
  border-radius: 6px;
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.btn-add-row:hover { background: var(--teal-light); }

.running-total {
  font-size: 0.875rem;
  color: #555;
  display: flex;
  gap: 8px;
  align-items: center;
}
.running-total strong { color: var(--navy); font-size: 1rem; }

/* ── DB counts grid ─────────────────────────────────────────────────────── */
.db-counts-section { margin-bottom: 24px; }
.db-counts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ── Contact form grids ─────────────────────────────────────────────────── */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ── Toggle row compact ──────────────────────────────────────────────────── */
.toggle-row.tight { gap: 4px; }
.toggle-row.tight .toggle-opt { padding: 4px 10px !important; font-size: 0.75rem !important; }

/* ── Tooltip ──────────────────────────────────────────────────────────────── */
.tooltip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  color: #aaa;
  margin-left: 4px;
}

.tooltip-box {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  font-size: 0.75rem;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 6px;
  width: 240px;
  z-index: 100;
  font-weight: 400;
  white-space: normal;
  pointer-events: none;
}

.tooltip-box.visible { display: block; }

.tooltip-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-page-grid,
  .form-page-grid--choice2 { grid-template-columns: 1fr; }
  .results-col { position: static; }
  .headline-cards--5,
  .headline-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .headline-cards--3 { grid-template-columns: 1fr 1fr; }
  .db-counts-grid { grid-template-columns: 1fr; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .stats-grid { flex-direction: column; gap: 16px; }
  .stat-divider { width: 80%; height: 1px; }
}

/* ── About tool section ──────────────────────────────────────────────────── */
.about-tool-section {
  margin: 60px 0 48px;
  padding: 36px 40px;
  background: var(--color-background-secondary, #f8f7f4);
  border-radius: 12px;
  border-left: 4px solid var(--color-teal, #0F6E56);
}

.about-tool-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy, #042C53);
  margin: 0 0 16px;
}

.about-tool-body {
  color: var(--color-body, #333);
  line-height: 1.75;
  margin: 0 0 14px;
  max-width: 72ch;
}

.about-tool-body:last-child { margin-bottom: 0; }

/* ── FAQ section ─────────────────────────────────────────────────────────── */
.faq-section {
  margin: 0 0 72px;
}

.faq-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy, #042C53);
  margin: 0 0 28px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border, #e5e2da);
  padding: 20px 0;
}

.faq-item:first-child { border-top: 1px solid var(--color-border, #e5e2da); }

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy, #042C53);
  margin: 0 0 10px;
  line-height: 1.4;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--color-body, #444);
  line-height: 1.75;
  margin: 0;
  max-width: 72ch;
}

@media (max-width: 768px) {
  .about-tool-section { padding: 24px 20px; }
  .faq-answer { max-width: 100%; }
}
