/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition),
    transform var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-teal);
  color: #fff;
  border-color: var(--color-teal);
}

.btn-primary:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--color-teal);
  border-color: var(--color-teal);
}

.btn-outline:hover {
  background: var(--color-teal-soft);
}

.btn-orange {
  background: var(--color-orange);
  color: var(--color-navy);
  border-color: var(--color-orange);
  min-width: 140px;
  /* border-radius: var(--radius-pill); */
}

.btn-orange:hover {
  background: var(--color-orange-dark);
  border-color: var(--color-orange-dark);
  color: var(--color-navy);
}

.btn-lg {
  height: 52px;
  padding: 0 32px;
  font-size: var(--fs-md);
}

.btn-block {
  width: 100%;
}

@media (max-width: 768px) {
  .btn,
  .btn-lg {
    border-radius: var(--radius-pill);
  }

  .btn-lg {
    height: 54px;
  }
}

/* ===== Cards ===== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.card-accent {
  position: relative;
  overflow: hidden;
}

.card-accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent, var(--color-teal));
}

.card-top-border {
  border-top: 4px solid var(--accent, var(--color-teal));
}

.accent-teal {
  --accent: var(--color-teal);
}

.accent-blue {
  --accent: var(--color-blue);
}

.accent-orange {
  --accent: var(--color-orange);
}

.num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: #fff;
  background: var(--accent, var(--color-teal));
  margin-bottom: 16px;
}

.num-badge-no-bg {
  width: auto;
  height: auto;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--accent, var(--color-teal));
  justify-content: flex-start;
  margin-bottom: 12px;
}

.num-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: #fff;
  background: var(--color-teal);
  flex-shrink: 0;
}

/* ===== Forms ===== */
.form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: 36px 40px;
}

.form-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.full {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-navy);
}

.form-group .req {
  color: #e05a5a;
}

.form-control {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(67, 185, 172, 0.18);
}

.form-control.is-error {
  border-color: #e05a5a;
}

textarea.form-control {
  height: auto;
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.input-prefix {
  position: relative;
}

.input-prefix .prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.input-prefix .form-control {
  padding-left: 28px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 24px;
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.form-check input {
  margin-top: 3px;
  accent-color: var(--color-teal);
}

.form-error {
  font-size: var(--fs-xs);
  color: #e05a5a;
  margin-top: -8px;
  margin-bottom: 12px;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.form-note {
  background: #fff7ee;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 24px;
  max-width: 440px;
}

.form-note--full {
  max-width: 100%;
  margin-top: 0;
  padding: 20px 24px;
}

.form-note h4 {
  font-size: var(--fs-sm);
  color: #173658;
  margin-bottom: 6px;
}

.form-note p {
  font-size: var(--fs-xs);
  color: #768c9d;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 28px 20px;
  }

  .form-note {
    max-width: none;
  }
}

/* ===== Accordion ===== */
.accordion {
  border-top: 1px solid var(--color-border);
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--color-navy);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--color-navy);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-icon::before {
  width: 14px;
  height: 2px;
}

.accordion-icon::after {
  width: 2px;
  height: 14px;
  transition: opacity var(--transition);
}

.accordion-item.is-open .accordion-icon::after {
  opacity: 0;
}

.accordion-panel {
  display: none;
  padding: 0 0 22px;
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 720px;
}

.accordion-item.is-open .accordion-panel {
  display: block;
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: var(--color-bg);
  padding: 72px 0 88px;
  overflow: visible;
}

.page-hero .section-label {
  margin-bottom: 10px;
}

.page-hero h1 {
  font-size: var(--fs-5xl);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 10em;
}

.page-hero.quote-medicare h1 {
  max-width: 340px;
}

.page-hero.quote-business h1 {
  max-width: 7em;
}

.page-hero p {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 36px 0 48px;
  }

  .page-hero h1 {
    max-width: none;
  }

  .page-hero p {
    max-width: none;
    margin-bottom: 22px;
  }
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-navy);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
  box-shadow: var(--shadow-float);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== WeChat customer service float ===== */
.cs-float {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 900;
  transform: translateY(-50%);
}

.cs-float__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-teal);
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 6px 20px rgba(12, 45, 73, 0.16);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cs-float__icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  mix-blend-mode: lighten;
  pointer-events: none;
}

.cs-float__panel {
  position: absolute;
  right: 0;
  top: 50%;
  width: 148px;
  padding: 14px 14px 12px;
  background: var(--color-teal);
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 8px 28px rgba(12, 45, 73, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(16px, -50%);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out),
    visibility 0.25s;
}

.cs-float:hover .cs-float__trigger,
.cs-float:focus-within .cs-float__trigger {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cs-float:hover .cs-float__panel,
.cs-float:focus-within .cs-float__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.cs-float__qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.cs-float__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cs-float__label {
  margin: 10px 0 0;
  color: #fff;
  font-size: 13px;
  font-weight: var(--fw-medium);
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cs-float {
    display: none;
  }
}

/* ===== WeChat QR modal (mobile dock) ===== */
.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wechat-modal[hidden] {
  display: none;
}

.wechat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 31, 51, 0.55);
  backdrop-filter: blur(2px);
}

.wechat-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(300px, 100%);
  padding: 28px 24px 24px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  text-align: center;
  animation: wechat-modal-in 0.28s var(--ease-out);
}

.wechat-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.wechat-modal__close:hover {
  color: var(--color-navy);
  background: var(--color-bg);
}

.wechat-modal__close svg {
  width: 18px;
  height: 18px;
}

.wechat-modal__qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  padding: 10px;
  background: var(--color-teal-soft);
  border-radius: var(--radius-md);
}

.wechat-modal__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  background: #fff;
}

.wechat-modal__title {
  margin: 18px 0 0;
  color: var(--color-navy);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
}

.wechat-modal__note {
  margin: 8px 0 0;
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

@keyframes wechat-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.wechat-modal-open {
  overflow: hidden;
}

/* ===== Cookie consent banner ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 960;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 16px 48px;
  background: rgba(28, 28, 30, 0.94);
  color: #fff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__text {
  flex: 1;
  margin: 0;
  max-width: 920px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.cookie-banner__link {
  color: #58a6ff;
  text-decoration: none;
}

.cookie-banner__link:hover {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 24px;
}

.cookie-banner__accept {
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: #3a3a3c;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-banner__accept:hover {
  background: #48484a;
}

.cookie-banner__reject {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-banner__reject:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 16px;
  }

  .cookie-banner__text {
    max-width: none;
    font-size: 12px;
  }

  .cookie-banner__actions {
    justify-content: flex-end;
    gap: 18px;
  }
}