﻿:root {
  --bg: #f4efe6;
  --panel: #fffaf3;
  --card: #ffffff;
  --ink: #172126;
  --muted: #61717b;
  --line: rgba(23, 33, 38, 0.12);
  --brand: #d8572a;
  --brand-dark: #a93f1d;
  --accent: #0f766e;
  --shadow: 0 24px 60px rgba(32, 27, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 87, 42, 0.16), transparent 28%),
    linear-gradient(180deg, #f8f3ea 0%, #f1ebe1 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero,
.form-section {
  background: rgba(255, 250, 243, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  padding: 48px;
}

.hero-copy,
.form-copy {
  max-width: 680px;
}

.crm-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.crm-entry p {
  color: rgba(255, 255, 255, 0.82);
}

.crm-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(216, 87, 42, 0.12);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy p,
.form-copy p,
.modal-subtitle {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.coverage-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 238, 0.96)),
    var(--card);
  border: 1px solid var(--line);
}

.coverage-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.08);
}

.logo-badge {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: linear-gradient(135deg, #182b4d, #325ea8);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

.logo-badge.alt {
  background: linear-gradient(135deg, #10635e, #23a895);
}

.coverage-card h2 {
  margin-top: 22px;
  font-size: 1.55rem;
}

.price {
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 800;
}

.price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.details-button,
.submit-button,
.accept-button {
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.details-button,
.submit-button {
  margin-top: 28px;
  padding: 15px 20px;
  width: 100%;
  font-weight: 800;
}

.details-button {
  background: rgba(23, 33, 38, 0.08);
  color: var(--ink);
}

.details-button:hover,
.submit-button:hover,
.accept-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.form-section {
  margin-top: 28px;
  padding: 42px;
}

.form-copy h2 {
  margin-top: 18px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.coverage-form {
  margin-top: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 0.95rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 120px;
  padding: 16px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(216, 87, 42, 0.6);
  box-shadow: 0 0 0 4px rgba(216, 87, 42, 0.12);
}

.full-span {
  grid-column: 1 / -1;
}

.submit-button,
.accept-button {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}

.form-feedback {
  min-height: 28px;
  margin-top: 18px;
  font-weight: 700;
  color: var(--accent);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 26, 0.64);
}

.modal-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(90vh, 840px);
  overflow: auto;
  padding: 30px;
  border-radius: 30px;
  background: #fffaf3;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 33, 38, 0.08);
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  margin-top: 24px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(23, 33, 38, 0.04);
}

.modal-body p,
.modal-body li {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
}

.modal-section + .modal-section {
  margin-top: 18px;
}

.modal-section h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.modal-section ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.modal-highlight {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(216, 87, 42, 0.08);
}

.modal-highlight p + p {
  margin-top: 8px;
}

.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
}

.consent-box input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.accept-button {
  width: 100%;
  margin-top: 22px;
  padding: 15px 20px;
  font-weight: 800;
}

.accept-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding: 18px 0 40px;
  }

  .hero,
  .form-section,
  .modal-dialog {
    padding: 24px;
    border-radius: 24px;
  }

  .cards-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .crm-entry {
    align-items: stretch;
    flex-direction: column;
  }
}
