:root {
  --tc-ink: #102a32;
  --tc-muted: #61747c;
  --tc-soft: #f4fbfa;
  --tc-border: #d7ecea;
  --tc-ribbon-left: #009daa;
  --tc-ribbon-mid: #028894;
  --tc-ribbon-right: #037580;
  --tc-green: #028894;
  --tc-green-dark: #037580;
  --tc-green-bright: #009daa;
  --tc-accent: #028894;
  --tc-white: #fff;
  --tc-shadow: 0 24px 70px rgba(26, 72, 78, 0.16);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(135deg, #eefaf7 0%, #ffffff 45%, #e7f8f4 100%);
  color: var(--tc-ink);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  min-height: 100vh;
}
.tc-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.tc-quote-card {
  width: min(850px, 100%);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(92,162,171,0.22);
  box-shadow: var(--tc-shadow);
  border-radius: 28px;
  padding: clamp(22px, 3.2vw, 38px);
  overflow: hidden;
}
.tc-header { text-align: center; margin-bottom: 8px; }
.tc-logo-link { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.tc-logo { width: min(245px, 78vw); height: auto; max-height: 62px; object-fit: contain; display: block; }
.tc-quote-card.tc-started .tc-logo { width: min(180px, 58vw); max-height: 44px; }
.tc-quote-card.tc-started .tc-header { margin-bottom: 6px; }
.tc-welcome-copy { text-align: center; margin: 6px auto 20px; max-width: 680px; }
.tc-welcome-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(23px, 2.6vw, 29px);
  line-height: 1.12;
  color: #12383e;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.tc-welcome-copy p { margin: 0; color: var(--tc-muted); font-size: 15px; line-height: 1.5; }
.tc-progress-wrap { margin: 8px 0 22px; }
.tc-progress-topline { display: flex; justify-content: space-between; color: var(--tc-muted); font-size: 13px; margin-bottom: 8px; }
.tc-progress { height: 8px; background: #e8f4f1; border-radius: 99px; overflow: hidden; }
.tc-progress-bar { width: 0; height: 100%; background: linear-gradient(90deg, var(--tc-ribbon-left) 0%, var(--tc-ribbon-mid) 50%, var(--tc-ribbon-right) 100%); border-radius: 99px; transition: width 0.28s ease; }
.tc-form { width: 100%; }
.tc-step { display: none; animation: tcFade 0.25s ease; }
.tc-step.is-active { display: block; }
@keyframes tcFade { from {opacity:0; transform:translateY(8px)} to {opacity:1; transform:translateY(0)} }
.tc-step h2 {
  font-size: clamp(21px, 2.35vw, 27px);
  line-height: 1.16;
  margin: 0 0 18px;
  text-align: center;
  color: #18383f;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.tc-short-intro { text-align: center; color: var(--tc-muted); margin: -8px auto 24px; max-width: 650px; font-size: 15px; }
.tc-option-grid { display: grid; gap: 10px; margin: 0 auto; }
.tc-option-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 480px; }
.tc-option-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 610px; }
.tc-option-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 670px; }
.tc-multi-grid { max-width: 700px; }
.tc-choice, .tc-pill, .tc-multi {
  border: 2px solid var(--tc-border);
  background: var(--tc-white);
  color: var(--tc-ink);
  border-radius: 14px;
  min-height: 50px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
}
.tc-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: #e6f7f8;
  color: var(--tc-ribbon-right);
  font-size: 14px;
  font-weight: 900;
}
.tc-choice:hover, .tc-pill:hover, .tc-multi:hover,
.tc-choice.is-selected, .tc-pill.is-selected, .tc-multi.is-selected {
  background: linear-gradient(90deg, var(--tc-ribbon-left) 0%, var(--tc-ribbon-mid) 50%, var(--tc-ribbon-right) 100%);
  color: #fff;
  border-color: var(--tc-ribbon-right);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2,136,148,.24);
}
.tc-trust-panel {
  margin: 24px auto 0;
  max-width: 760px;
  border: 1px solid rgba(2,136,148,.28);
  background: linear-gradient(180deg, #f6fcfc 0%, #ffffff 100%);
  border-radius: 18px;
  padding: 16px 18px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(2,136,148,.08);
}
.tc-trust-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #12383e;
  font-size: 15px;
  font-weight: 850;
  margin-bottom: 10px;
}
.tc-trust-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--tc-ribbon-left) 0%, var(--tc-ribbon-mid) 50%, var(--tc-ribbon-right) 100%);
  color: #fff;
}
.tc-trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tc-trust-row span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #315d62;
  font-size: 12px;
  font-weight: 750;
  border: 1px solid #d4ece8;
}
.tc-label { display: block; text-align: center; font-size: 17px; font-weight: 700; margin: 16px 0 14px; color: #24484e; }
.tc-small-note { color: var(--tc-muted); font-size: 13px; margin: -4px 0 12px; text-align: center; }
.tc-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tc-field { margin-bottom: 16px; }
.tc-field label { display: block; font-size: 14px; font-weight: 750; margin-bottom: 8px; color: #28464c; }
.tc-field input, .tc-field textarea {
  width: 100%; border: 2px solid #dcece8; border-radius: 16px; padding: 14px 15px; font-size: 16px; color: var(--tc-ink); background: #fff; outline: none;
}
.tc-field input:focus, .tc-field textarea:focus { border-color: var(--tc-ribbon-mid); box-shadow: 0 0 0 4px rgba(2,136,148,.12); }
.tc-consent-row { display: flex; justify-content: center; }
.tc-consent-row label {
  display: inline-flex;
  gap: 9px;
  align-items: flex-start;
  width: auto;
  max-width: 650px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid #d7ebe7;
  border-radius: 14px;
  background: #f7fcfb;
  color: var(--tc-muted);
  font-size: 14px;
  line-height: 1.4;
}
.tc-consent-row input { margin-top: 2px; flex: 0 0 auto; }
.tc-reveal { display: none; margin-top: 18px; padding: 18px; border: 1px solid var(--tc-border); background: var(--tc-soft); border-radius: 18px; }
.tc-reveal.is-open { display: block; }
.tc-hidden { position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; }
.tc-form-actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 28px; }
.tc-primary-btn, .tc-back-btn, .tc-secondary-link {
  border: none; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; border-radius: 999px; padding: 15px 24px; font-size: 14px; font-weight: 800; cursor: pointer; transition: all .18s ease;
}
.tc-primary-btn { background: linear-gradient(90deg, var(--tc-ribbon-left) 0%, var(--tc-ribbon-mid) 50%, var(--tc-ribbon-right) 100%); color: #fff; box-shadow: 0 10px 24px rgba(2,136,148,.22); }
.tc-primary-btn:hover:not(:disabled) { background: linear-gradient(90deg, #008d99 0%, #027c87 100%); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(2,136,148,.30); }
.tc-primary-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.tc-back-btn { background: #edf7f4; color: #2e5e63; }
.tc-back-btn:hover { background: #dff2ed; }
.tc-secondary-link { color: #2e777b; background: #edf7f4; }
.tc-result { background: #f7fcfb; border: 1px solid #d7ebe7; border-radius: 24px; padding: 24px; }
.tc-price-panel { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.tc-price-box { background:#fff; border:1px solid #d7ebe7; border-radius:18px; padding:18px; }
.tc-price-box strong { display:block; font-size:13px; color: var(--tc-muted); margin-bottom:6px; }
.tc-price-box span { font-size:28px; font-weight:850; color:#12383e; }
.tc-result h3 { margin: 0 0 12px; font-size: 24px; }
.tc-result ul { margin: 8px 0 0; padding-left: 20px; color: #2e464b; line-height: 1.7; }
.tc-result .tc-note-list { background:#fff; border:1px solid #e1efec; border-radius:16px; padding:14px 16px; margin-top:16px; }
.tc-result-actions { text-align: center; margin-top: 22px; }
.tc-discount-line { font-weight: 800; color:#17805d; margin-bottom:14px; }
.tc-signup-panel { margin-top: 24px; border:1px solid var(--tc-border); background:#fff; border-radius:24px; padding:22px; }
.tc-signup-panel h3 { margin: 0 0 10px; font-size:24px; }
.tc-terms-box { max-height: 260px; overflow-y:auto; border:2px solid #dcece8; border-radius:16px; background:#fafdfc; padding:18px; color:#263f45; line-height:1.55; }
.tc-terms-box h2 { font-size: 20px; text-align:left; margin:0 0 12px; }
.tc-terms-checks { margin:16px 0; display:grid; gap:12px; }
.tc-terms-checks label { display:flex; gap:10px; align-items:flex-start; font-size:14px; color:#2d4b51; }
.tc-form-message { margin-top: 16px; color: #a13d30; text-align:center; font-weight:700; min-height: 22px; }
.tc-form-message.is-ok { color:#158056; }
.tc-error { background:#fff4f1; border:1px solid #ffd6cb; color:#9e392f; padding:12px 14px; border-radius:14px; }
.tc-success { background:#ecfff7; border:1px solid #c5f3dd; color:#156547; padding:12px 14px; border-radius:14px; }
.tc-limited-only { display:block; }
body.tc-sole .tc-limited-only { display:none; }
@media (max-width: 760px) {
  .tc-page { padding: 12px; align-items:flex-start; }
  .tc-quote-card { border-radius: 22px; padding: 22px; }
  .tc-option-grid-2, .tc-option-grid-3, .tc-option-grid-4 { grid-template-columns: 1fr; }
  .tc-field-row, .tc-price-panel { grid-template-columns: 1fr; }
  .tc-welcome-copy h1 { font-size: 24px; }
  .tc-logo { width: min(270px, 86vw); }
  .tc-form-actions { flex-direction: column; align-items: stretch; }
  .tc-primary-btn, .tc-back-btn, .tc-secondary-link { width: 100%; }
}

.tc-choice:hover .tc-btn-icon, .tc-pill:hover .tc-btn-icon, .tc-multi:hover .tc-btn-icon,
.tc-choice.is-selected .tc-btn-icon, .tc-pill.is-selected .tc-btn-icon, .tc-multi.is-selected .tc-btn-icon {
  background: rgba(255,255,255,.22);
  color: #fff;
}

.tc-consent-row input[type="checkbox"], .tc-terms-checks input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  border-radius: 4px;
  margin-top: 1px;
}
.tc-consent-row label span { display: inline-block; }

[hidden] { display: none !important; }
.tc-quote-card.tc-started .tc-welcome-copy { display: none !important; }

.tc-breakdown {
  display: grid;
  gap: 10px;
  margin: 10px 0 20px;
}
.tc-breakdown-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  background: #ffffff;
  border: 1px solid #d7ebe7;
  border-radius: 15px;
}
.tc-breakdown-row strong {
  display: block;
  color: #12383e;
  font-size: 14px;
}
.tc-breakdown-row small {
  display: block;
  margin-top: 3px;
  color: var(--tc-muted);
  font-size: 12px;
  line-height: 1.35;
}
.tc-breakdown-row > span {
  white-space: nowrap;
  color: #037580;
  font-weight: 850;
  font-size: 14px;
  text-align: right;
}
.tc-direct-debit-note {
  margin: 18px 0 14px;
  padding: 12px 14px;
  background: #f4fbfa;
  border: 1px solid #d7ebe7;
  border-radius: 14px;
  color: #315d62;
  font-size: 13px;
  text-align: center;
  line-height: 1.45;
}
@media (max-width: 760px) {
  .tc-breakdown-row {
    flex-direction: column;
    gap: 6px;
  }
  .tc-breakdown-row > span {
    text-align: left;
    white-space: normal;
  }
}
.tc-signature-field {
  background: #f7fcfb;
  border: 1px solid #d7ebe7;
  border-radius: 16px;
  padding: 14px;
}
.tc-terms-checks .tc-signature-field label {
  display: block;
  font-weight: 800;
  color: #12383e;
  margin-bottom: 8px;
}
.tc-terms-checks .tc-signature-field input[type="text"] {
  width: 100%;
}
