:root {
  --bg: #eef7fc;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: #f4f9fc;
  --ink: #102b3a;
  --muted: #637987;
  --line: #d7e6ef;
  --accent: #0068a8;
  --accent-2: #0085c7;
  --accent-bright: #31b0e7;
  --accent-soft: #e6f5fc;
  --accent-pale: #f1f9fd;
  --danger: #a93030;
  --shadow: 0 24px 70px rgba(0, 81, 133, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(49, 176, 231, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 86%, rgba(0, 104, 168, 0.09), transparent 32rem),
    var(--bg);
  font-family: "DM Sans", system-ui, sans-serif;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell {
  width: min(100% - 32px, 560px);
  margin: 0 auto;
  padding: 28px 0 26px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  margin: 0 4px 24px;
}

.brand-logo-window {
  position: relative;
  width: 275px;
  height: 70px;
  overflow: hidden;
  flex: 0 1 275px;
}

.brand-logo {
  position: absolute;
  width: 400px;
  max-width: none;
  left: 50%;
  top: -163px;
  transform: translateX(-50%);
  display: block;
}

.brand-subtitle {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(0, 104, 168, 0.14);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.card {
  padding: 30px;
  border: 1px solid rgba(255,255,255,.96);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-bright);
  box-shadow: 0 0 0 5px rgba(49,176,231,.13);
}

h1, h2, h3 { font-family: "Manrope", sans-serif; }

h1 {
  margin: 0;
  max-width: 460px;
  font-size: clamp(34px, 8vw, 48px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

h2 {
  margin: 4px 0 8px;
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -.035em;
}

h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.02em;
}

.lead, .section-copy {
  color: var(--muted);
  line-height: 1.65;
}

.lead { margin: 18px 0 26px; }
.section-copy { margin: 0 0 22px; }

label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.phone-field {
  display: flex;
  align-items: center;
  min-height: 60px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.phone-field:focus-within {
  border-color: rgba(0, 104, 168, .55);
  box-shadow: 0 0 0 4px rgba(0, 133, 199, .10);
}

.country-code {
  padding: 0 13px 0 17px;
  color: var(--muted);
  font-weight: 600;
  border-right: 1px solid var(--line);
}

input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 17px 16px;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
}

input::placeholder { color: #9aaab3; }

.field-row { min-height: 38px; }
.hint, .error { margin: 8px 2px 0; font-size: 12px; }
.hint { color: var(--muted); }
.error { color: var(--danger); font-weight: 600; }

.primary-button,
.secondary-button,
.call-button,
.copy-button,
.text-button,
.back-button {
  cursor: pointer;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  font-weight: 700;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0079ba);
  box-shadow: 0 10px 24px rgba(0, 104, 168, .16);
  transition: transform .15s ease, filter .2s ease;
}

.primary-button:hover { filter: brightness(1.04); }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { opacity: .65; cursor: wait; }
.arrow { font-size: 20px; }

.secondary-button {
  border: 1px solid var(--line);
  color: var(--accent);
  background: #fff;
}

.secondary-button:hover { background: var(--accent-pale); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #93a5af;
  font-size: 12px;
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.privacy-note {
  margin: 18px 3px 0;
  color: #7d919c;
  font-size: 11.5px;
  line-height: 1.55;
}

.back-button,
.text-button {
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 700;
}

.back-button { margin-bottom: 26px; font-size: 13px; }
.text-button { margin-top: 20px; }
.back-button:hover, .text-button:hover { color: var(--accent-2); }

.results-list, .company-list {
  display: grid;
  gap: 14px;
}

.assistance-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fff;
}

.company-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
}

.company-initial {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  font: 800 16px/1 "Manrope", sans-serif;
}

.policy-label {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.assistance-block {
  padding: 17px 18px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.assistance-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 5px 0 14px;
}

.phone-number {
  min-width: 0;
  color: var(--ink);
  font: 800 24px/1.15 "Manrope", sans-serif;
  text-decoration: none;
  letter-spacing: -.025em;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(0, 104, 168, .18);
  border-radius: 11px;
  color: var(--accent);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: background .18s ease, border-color .18s ease, transform .12s ease;
}

.copy-button:hover {
  border-color: rgba(0, 104, 168, .32);
  background: var(--accent-soft);
}

.copy-button:active { transform: translateY(1px); }

.copy-button.is-copied {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.copy-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.call-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0079ba);
  box-shadow: 0 8px 20px rgba(0, 104, 168, .13);
  font-weight: 700;
  text-decoration: none;
}

.call-button:hover { filter: brightness(1.04); }

.company-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.company-option:hover {
  border-color: rgba(0, 104, 168, .25);
  background: var(--accent-pale);
}

.company-option-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-option .company-initial { width: 39px; height: 39px; flex-basis: 39px; }
.company-option-name { font-weight: 700; }
.company-chevron { color: var(--accent-2); font-size: 19px; }

footer {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 22px 0 0;
  color: #78909d;
  font-size: 11px;
}

[hidden] { display: none !important; }

/* Multiple Road Assistance numbers per company */
.phone-options {
  display: grid;
  gap: 16px;
}

.phone-option + .phone-option {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 480px) {
  .shell { width: min(100% - 20px, 560px); padding-top: 16px; }
  .brand { min-height: 62px; margin-bottom: 16px; }
  .brand-logo-window { width: 230px; height: 61px; flex-basis: 230px; }
  .brand-logo { width: 350px; top: -143px; }
  .brand-subtitle { display: none; }
  .card { padding: 23px 20px; border-radius: 24px; }
  h1 { font-size: 36px; }
  .phone-number { font-size: 21px; }
  .copy-button { min-height: 34px; padding: 0 9px; }
}

@media (max-width: 360px) {
  .brand-logo-window { width: 215px; flex-basis: 215px; }
  .brand-logo { width: 330px; top: -135px; }
  .phone-row { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
