.c4s-quote {
  --c4s-ink: #17201b;
  --c4s-deep: #203029;
  --c4s-deep-2: #2c4036;
  --c4s-gold: #c59652;
  --c4s-gold-soft: #e7d2ad;
  --c4s-ivory: #f6f3ec;
  --c4s-paper: #fffdf8;
  --c4s-line: #ddd8cd;
  --c4s-muted: #74736d;
  --c4s-error: #a33a2f;
  color: var(--c4s-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
}

.c4s-quote *,
.c4s-quote *::before,
.c4s-quote *::after { box-sizing: border-box; }

.c4s-quote__shell {
  background: var(--c4s-paper);
  border: 1px solid rgba(23,32,27,.1);
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.55fr);
  min-height: 720px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(30, 42, 35, .10);
}

.c4s-quote__intro {
  background:
    radial-gradient(circle at 82% 14%, rgba(197,150,82,.20), transparent 26%),
    linear-gradient(150deg, var(--c4s-deep) 0%, #14201a 100%);
  color: #fff;
  padding: clamp(34px, 4.2vw, 66px) clamp(28px, 3.5vw, 54px);
  position: relative;
  overflow: hidden;
}

.c4s-quote__intro::after {
  content: "TANZANIA";
  position: absolute;
  left: -8px;
  bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 7vw, 110px);
  line-height: .8;
  letter-spacing: -.04em;
  color: rgba(255,255,255,.035);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  pointer-events: none;
}

.c4s-quote__kicker,
.c4s-step__header > span {
  display: inline-block;
  color: var(--c4s-gold-soft);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
}

.c4s-quote__intro h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
  margin: 20px 0 24px;
  max-width: 8ch;
}

.c4s-quote__intro > p {
  color: rgba(255,255,255,.72);
  font-size: 15px;
  line-height: 1.75;
  max-width: 38ch;
  margin: 0;
}

.c4s-quote__promise {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.16);
  margin-top: 42px;
  padding-top: 20px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  line-height: 1.55;
}

.c4s-quote__promise-mark {
  color: var(--c4s-gold-soft);
  font-size: 22px;
  line-height: 1;
}

.c4s-quote__panel {
  padding: clamp(28px, 4.2vw, 64px);
  background: var(--c4s-paper);
  min-width: 0;
}

.c4s-quote__progress {
  border-bottom: 1px solid var(--c4s-line);
  padding-bottom: 22px;
  margin-bottom: 42px;
}

.c4s-quote__progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--c4s-muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 13px;
}

.c4s-quote__progress-copy span:last-child { color: var(--c4s-ink); font-weight: 700; }
.c4s-quote__progress-track { height: 3px; background: #ebe7dd; overflow: hidden; }
.c4s-quote__progress-track > span { display: block; height: 100%; width: 25%; background: var(--c4s-gold); transition: width .35s ease; }

.c4s-step[hidden],
.c4s-quote__success[hidden],
.c4s-button[hidden],
.c4s-quote__error[hidden] { display: none !important; }

.c4s-step.is-active { animation: c4sFade .28s ease both; }
.c4s-step.is-backward { animation-name: c4sFadeBack; }
@keyframes c4sFade { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes c4sFadeBack { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

.c4s-step__header { max-width: 690px; margin-bottom: 34px; }
.c4s-step__header > span { color: var(--c4s-gold); }
.c4s-step__header h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 400;
  margin: 9px 0 14px;
  color: var(--c4s-ink);
}
.c4s-step__header p { margin: 0; color: var(--c4s-muted); line-height: 1.65; font-size: 14px; max-width: 62ch; }

.c4s-fields { display: grid; gap: 34px; }
.c4s-field__heading { margin-bottom: 13px; }
.c4s-field__heading > label { display: block; font-weight: 700; font-size: 14px; line-height: 1.35; color: var(--c4s-ink); }
.c4s-field__heading p { margin: 7px 0 0; color: var(--c4s-muted); font-size: 12px; line-height: 1.55; max-width: 75ch; }
.c4s-required { color: var(--c4s-gold); }

.c4s-input-wrap { position: relative; }
.c4s-input-wrap > span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--c4s-muted); font-size: 12px; }
.c4s-quote input[type="text"],
.c4s-quote input[type="email"],
.c4s-quote input[type="tel"],
.c4s-quote input[type="number"],
.c4s-quote input[type="date"],
.c4s-quote textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #bdb9ae;
  border-radius: 0;
  background: transparent;
  color: var(--c4s-ink);
  font: inherit;
  font-size: 16px;
  padding: 14px 0 13px;
  outline: none;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.c4s-quote textarea { resize: vertical; min-height: 112px; line-height: 1.6; }
.c4s-input-wrap input { padding-right: 76px !important; }
.c4s-quote input:focus,
.c4s-quote textarea:focus { border-bottom-color: var(--c4s-deep); box-shadow: 0 1px 0 var(--c4s-deep); }
.c4s-quote ::placeholder { color: #a29f97; opacity: 1; }

.c4s-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.c4s-choice-grid--1 { grid-template-columns: 1fr; }
.c4s-choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c4s-choice-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c4s-choice { display: block; cursor: pointer; position: relative; min-width: 0; }
.c4s-choice > input { position: absolute; opacity: 0; pointer-events: none; }
.c4s-choice__surface {
  min-height: 128px;
  height: 100%;
  border: 1px solid var(--c4s-line);
  background: #fff;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: start;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.c4s-choice:hover .c4s-choice__surface { border-color: #b8aa94; transform: translateY(-1px); }
.c4s-choice > input:focus-visible + .c4s-choice__surface { outline: 2px solid var(--c4s-gold); outline-offset: 2px; }
.c4s-choice > input:checked + .c4s-choice__surface { border-color: var(--c4s-deep); background: #f2f4ef; box-shadow: inset 0 0 0 1px var(--c4s-deep); }
.c4s-choice__icon {
  width: 33px;
  height: 33px;
  border: 1px solid #d9d2c3;
  display: grid;
  place-items: center;
  color: var(--c4s-gold);
  font-family: Georgia, serif;
  font-size: 18px;
  flex: 0 0 auto;
}
.c4s-choice__copy { min-width: 0; }
.c4s-choice__copy strong { display: block; font-size: 13px; line-height: 1.35; color: var(--c4s-ink); }
.c4s-choice__copy small { display: block; margin-top: 6px; color: var(--c4s-muted); font-size: 11px; line-height: 1.5; }
.c4s-choice__check { opacity: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--c4s-deep); color: #fff; font-size: 11px; transition: opacity .18s ease; }
.c4s-choice > input:checked + .c4s-choice__surface .c4s-choice__check { opacity: 1; }

.c4s-terms { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; font-size: 13px; line-height: 1.55; color: var(--c4s-muted); cursor: pointer; }
.c4s-terms input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--c4s-deep); }
.c4s-terms a { color: var(--c4s-deep); text-decoration: underline; text-underline-offset: 3px; }

.c4s-field__error { color: var(--c4s-error); font-size: 11px; margin-top: 7px; min-height: 0; }
.c4s-field.has-error input:not([type="radio"]):not([type="checkbox"]),
.c4s-field.has-error textarea { border-bottom-color: var(--c4s-error); }
.c4s-field.has-error .c4s-choice__surface { border-color: rgba(163,58,47,.45); }

.c4s-quote__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--c4s-line); }
.c4s-button { appearance: none; border-radius: 0; border: 1px solid var(--c4s-deep); padding: 14px 20px; min-height: 48px; font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .12em; cursor: pointer; transition: background .18s ease, color .18s ease, opacity .18s ease; }
.c4s-button--primary { margin-left: auto; background: var(--c4s-deep); color: #fff; }
.c4s-button--primary:hover { background: #121c17; }
.c4s-button--ghost { background: transparent; color: var(--c4s-deep); border-color: transparent; padding-left: 0; }
.c4s-button:disabled { opacity: .55; cursor: wait; }

.c4s-quote__error { margin-top: 18px; background: #fbefec; color: var(--c4s-error); border-left: 3px solid var(--c4s-error); padding: 12px 14px; font-size: 13px; }
.c4s-quote__success { text-align: left; padding: clamp(38px, 6vw, 90px) 0; max-width: 580px; }
.c4s-quote__success-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c4s-deep); color: #fff; font-size: 21px; margin-bottom: 26px; }
.c4s-quote__success h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 5vw, 54px); line-height: 1; font-weight: 400; letter-spacing: -.035em; margin: 0 0 14px; }
.c4s-quote__success p { color: var(--c4s-muted); line-height: 1.7; }
.c4s-quote__hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px,1px,1px,1px) !important; white-space: nowrap !important; }
.c4s-noscript { padding: 12px; background: #fff4d9; }

@media (max-width: 980px) {
  .c4s-quote__shell { grid-template-columns: 1fr; min-height: 0; }
  .c4s-quote__intro { padding-bottom: 36px; }
  .c4s-quote__intro h2 { max-width: 13ch; }
  .c4s-quote__promise { margin-top: 28px; }
  .c4s-quote__intro::after { writing-mode: initial; transform: none; left: auto; right: -12px; bottom: 3px; font-size: 70px; }
}

@media (max-width: 720px) {
  .c4s-quote { margin-left: -1px; margin-right: -1px; }
  .c4s-quote__shell { border-left: 0; border-right: 0; box-shadow: none; }
  .c4s-quote__intro { padding: 30px 22px 28px; }
  .c4s-quote__intro h2 { font-size: 40px; margin-top: 14px; }
  .c4s-quote__intro > p { font-size: 14px; }
  .c4s-quote__panel { padding: 28px 20px 32px; }
  .c4s-quote__progress { margin-bottom: 30px; }
  .c4s-step__header h3 { font-size: 35px; }
  .c4s-fields { gap: 28px; }
  .c4s-choice-grid,
  .c4s-choice-grid--3,
  .c4s-choice-grid--5 { grid-template-columns: 1fr; }
  .c4s-choice__surface { min-height: 0; padding: 15px; }
  .c4s-quote__actions { position: sticky; bottom: 0; background: rgba(255,253,248,.96); backdrop-filter: blur(8px); margin-left: -20px; margin-right: -20px; margin-bottom: -32px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); z-index: 4; }
  .c4s-button { min-height: 50px; }
  .c4s-button--primary { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .c4s-step.is-active,
  .c4s-step.is-backward { animation: none; }
  .c4s-choice__surface,
  .c4s-quote__progress-track > span { transition: none; }
}
