:root {
  --navy: #0f172a;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --teal: #0f766e;
  --muted: #64748b;
  --surface: #f8fafc;
  --border: #dbe4f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--navy);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--blue-dark);
}

.quote-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
}

.quote-header-inner,
.quote-shell,
.quote-footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.quote-header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.quote-logo {
  color: var(--navy);
  font-size: 1.28rem;
  font-weight: 900;
  text-decoration: none;
}

.quote-back {
  font-weight: 700;
  text-decoration: none;
}

.quote-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
  padding: clamp(48px, 8vw, 92px) 0;
}

.quote-copy {
  position: sticky;
  top: 36px;
}

.quote-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quote-copy h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.quote-lead {
  margin: 24px 0;
  color: #334155;
  font-size: 1.08rem;
  line-height: 1.75;
}

.quote-benefits {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.quote-benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #334155;
  line-height: 1.55;
}

.quote-benefits li::before {
  content: "✓";
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 999px;
  background: #ccfbf1;
  color: var(--teal);
  font-weight: 900;
}

.quote-card {
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.11);
}

.quote-card h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}

.quote-card-intro {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.55;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.quote-field {
  display: grid;
  gap: 7px;
}

.quote-field-full {
  grid-column: 1 / -1;
}

.quote-field label,
.privacy-choice {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
}

.quote-field input,
.quote-field textarea,
.quote-field select {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 11px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  padding: 13px 14px;
}

.quote-field textarea {
  min-height: 116px;
  resize: vertical;
}

.quote-field input:focus,
.quote-field textarea:focus,
.quote-field select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(37, 99, 235, 0.14);
}

.quote-help {
  color: var(--muted);
  font-size: 0.77rem;
}

.privacy-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 22px 0;
  font-weight: 500;
  line-height: 1.5;
}

.privacy-choice input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.quote-inline-choice {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 3px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.quote-inline-choice input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.quote-field input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.quote-special-fields {
  margin-top: 2px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #f8fbff;
}

.quote-special-fields[hidden] {
  display: none !important;
}

.quote-special-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  color: var(--navy);
}

.quote-special-grid {
  gap: 14px;
}

.quote-field select {
  appearance: auto;
}

.quote-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.quote-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.quote-status {
  display: none;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 10px;
  line-height: 1.5;
}

.quote-status.is-visible {
  display: block;
}

.quote-status.is-success {
  background: #ecfdf5;
  color: #065f46;
}

.quote-status.is-error {
  background: #fef2f2;
  color: #991b1b;
}

.quote-footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  background: #fff;
}

.quote-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.84rem;
}

.quote-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

  .quote-copy {
    position: static;
  }
}

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

  .quote-field-full {
    grid-column: auto;
  }

  .quote-header-inner {
    min-height: 64px;
  }

  .quote-back {
    font-size: 0.82rem;
  }
}
