:root {
  --bg: #f6f8ff;
  --panel: rgba(255, 255, 255, 0.86);
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --blue: #2563eb;
  --indigo: #4f46e5;
  --cyan: #06b6d4;
  --green: #16a34a;
  --red: #dc2626;
  --shadow: 0 24px 80px rgba(30, 41, 59, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(37, 99, 235, 0.22), transparent 30rem),
    radial-gradient(circle at 84% 8%, rgba(6, 182, 212, 0.24), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #eef4ff 100%);
}

button,
input {
  font: inherit;
}

button,
a,
.option-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.is-hidden {
  display: none !important;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0 40px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.option-topline {
  display: flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: clamp(170px, 21vw, 250px);
  height: auto;
}

.nav-links {
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--blue);
}

.header-cta,
.primary-button,
.next-button,
.contact-form button {
  border: 0;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, #111827, var(--blue));
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.26);
  cursor: pointer;
}

.header-cta {
  padding: 12px 18px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 42px 0 72px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.hero-content p,
.section-heading p,
.results-header p,
.option-card p,
.product-cards p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-content p {
  max-width: 620px;
  font-size: 1.18rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  padding: 15px 22px;
}

.secondary-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.82);
}

.hero-checker-card {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.82)),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.checker-intro h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.checker-intro p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-section {
  margin: 26px 0;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.9rem);
}

.compact {
  margin-bottom: 20px;
}

.search-panel,
.results-panel,
.product-cards article {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 56px rgba(15, 23, 42, 0.08);
}

.search-panel,
.results-panel {
  padding: 22px;
}

.address-form {
  position: relative;
}

.address-form label,
.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 800;
}

.input-wrap {
  position: relative;
}

.input-wrap svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  fill: var(--blue);
  transform: translateY(-50%);
}

.input-wrap input,
.contact-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  outline: none;
}

.input-wrap input {
  padding: 17px 16px 17px 48px;
  font-size: 1rem;
}

.input-wrap input:focus,
.contact-form input:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.address-results {
  display: none;
  position: absolute;
  z-index: 10;
  width: 100%;
  margin: 8px 0 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  list-style: none;
  background: white;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
}

.address-results.visible {
  display: block;
}

.address-results button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.address-results button:hover,
.address-results button:focus {
  background: #eef4ff;
}

.selected-address-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(6, 182, 212, 0.08));
}

.selected-address-card div {
  display: grid;
  gap: 5px;
}

.selected-address-card button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--blue);
  font-weight: 800;
  background: white;
  cursor: pointer;
}

.label,
#selected-uprn,
.product-type {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.results-header h3 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.05em;
}

.availability-options {
  display: grid;
  gap: 14px;
  margin: 18px 0 14px;
}

.option-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.option-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: white;
  cursor: pointer;
}

.option-card:hover,
.option-card.selected {
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 16px 42px rgba(37, 99, 235, 0.14);
  transform: translateY(-2px);
}

.option-card.unavailable {
  opacity: 0.72;
}

.option-topline {
  justify-content: space-between;
  gap: 12px;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.availability-pill.available {
  color: #166534;
  background: #dcfce7;
}

.availability-pill.unavailable {
  color: #991b1b;
  background: #fee2e2;
}

.option-card h4 {
  margin: 18px 0 6px;
  font-size: 1.35rem;
}

.price {
  margin-top: 18px;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.price small {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: normal;
}

.next-button {
  width: 100%;
  padding: 16px 20px;
}

.contact-form {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.contact-form.visible {
  display: grid;
}

.contact-form div:first-child,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form input {
  padding: 13px 14px;
}

.contact-form button {
  padding: 14px 18px;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-cards article {
  padding: 22px;
}

.product-cards h3 {
  margin: 18px 0 4px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 0 52px;
  color: var(--muted);
}

.site-footer strong,
.site-footer a {
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-section,
  .product-cards {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    border-radius: 24px;
  }

  .brand-logo {
    width: 168px;
  }

  .header-cta {
    display: none;
  }

  .hero-section {
    padding-top: 12px;
  }

  .selected-address-card,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
