/* ============================================================
   SentinelPeak Insurance — components.css
   Reusable component styles: buttons, cards, forms, modals.
   ============================================================ */

/* ── BUTTONS ───────────────────────────────────────────── */
.btn-primary {
  background: var(--color-brand);
  color: var(--color-dark);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

/* Subtle, professional default hover lift + brand-glow for every primary
   CTA on the site. More specific overrides (cta-band, frontdoor, etc.)
   still win for surface-specific tones. */
.btn-primary {
  transition: background 0.18s ease, transform 0.18s cubic-bezier(0.2, 0.85, 0.3, 1), box-shadow 0.18s ease, color 0.18s ease;
}
.btn-primary:hover {
  background: var(--color-brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(229, 171, 213, 0.28);
}
.btn-primary:active { transform: translateY(1px); box-shadow: 0 3px 8px rgba(185, 88, 205, 0.22); }
.btn-primary:disabled {
  background: var(--color-border);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* .is-disabled on an <a> rendered as a button - visually treated like
   a disabled primary but still focusable for screen readers. JS handles
   the no-op click. */
.btn-primary.is-disabled,
a.btn-primary.is-disabled {
  background: var(--color-border);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

/* .btn-pop - tasteful brand-themed hover used on the priority CTAs
   (add-claim, primary engagement). Adds a soft pink glow + lift on
   hover and a subtle gradient on the background, while still feeling
   professional. Inherits base button colors so this can be layered
   onto any .btn-primary instance. */
.btn-pop {
  position: relative;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.18s cubic-bezier(0.2, 0.85, 0.3, 1),
    color 0.2s ease;
  box-shadow: 0 6px 16px rgba(229, 171, 213, 0.25);
}

.btn-pop:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(185, 88, 205, 0.32);
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-hover) 100%);
}

.btn-pop:focus-visible {
  outline: 2px solid var(--color-brand-deep, var(--color-brand));
  outline-offset: 3px;
}

.btn-pop:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(185, 88, 205, 0.28);
}

/* Keep the disabled state calm even when .btn-pop is stacked on. */
.btn-pop.is-disabled,
a.btn-pop.is-disabled,
.btn-pop.is-disabled:hover,
a.btn-pop.is-disabled:hover {
  background: var(--color-border);
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn-secondary--dark {
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn-secondary--dark:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-dark);
  border: none;
  padding: 8px 12px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ghost:hover { color: var(--color-brand-hover); }

.btn-block { width: 100%; }

/* ── CARD (base feature/coverage card) ─────────────────── */
.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-brand-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
}

.feature-card-icon svg { width: 28px; height: 28px; }

.feature-card-title {
  font-family: var(--font-family-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.feature-card-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

.feature-card-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.feature-card-bullets li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-mid);
}

.feature-card-bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand);
  flex-shrink: 0;
}

.feature-card-actions { margin-top: auto; }

/* ── COVERAGE GRID ─────────────────────────────────────── */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .coverage-grid { grid-template-columns: 1fr; }
}

/* ── MEDIA-VERTICAL CARD (Simplifying the claim section) ─ */
.media-vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.media-vertical-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.media-vertical-card-image {
  width: 100%;
  aspect-ratio: 432 / 533;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-border);
}

.media-vertical-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-vertical-card-title {
  font-family: var(--font-family-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0 8px;
}

.media-vertical-card-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  padding: 0 8px;
}

@media (max-width: 1024px) {
  .media-vertical-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .media-vertical-grid { grid-template-columns: 1fr; }
}

/* ── HERO PLAN SELECTOR (white rounded card on home hero) ─ */
.plan-selector {
  background: var(--color-white);
  border-radius: var(--radius-3xl);
  padding: 24px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
  max-width: 896px;
  box-shadow: var(--shadow-sm);
}

.plan-selector-title {
  font-family: var(--font-family);
  font-size: 28px;
  font-weight: 500;
  color: var(--text-dark);
  text-transform: capitalize;
  text-align: center;
  line-height: 1.2;
}

.plan-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 278px);
  gap: 16px;
  justify-content: center;
}

.plan-card {
  background: var(--color-dark);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-xl);
  width: 278px;
  padding: 4px 4px 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  font-family: var(--font-family);
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.plan-card-image {
  width: 100%;
  height: 156px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-dark-light);
}

.plan-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-card-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  text-transform: capitalize;
  padding: 0 8px;
}

@media (max-width: 768px) {
  .plan-selector { border-radius: var(--radius-xl); padding: 16px; }
  .plan-selector-title { font-size: 22px; }
  .plan-selector-grid { grid-template-columns: 1fr; }
  .plan-card { width: 100%; max-width: 320px; }
}

/* ── TESTIMONIAL CARD ──────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-stars {
  color: var(--color-warning);
  font-size: 16px;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

.testimonial-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.testimonial-author-title {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .testimonial-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}

/* ── SPLIT CONTENT (image + text side by side) ─────────── */
.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-content-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-border);
}

.split-content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content-body { display: flex; flex-direction: column; gap: 16px; }

.split-content-title {
  font-family: var(--font-family-heading);
  font-size: 36px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.1;
}

.split-content-text {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .split-content { grid-template-columns: 1fr; gap: 32px; }
  .split-content-title { font-size: 28px; }
}

/* ── WHY-CHOOSE CARD (home page, matches Figma 578:1047) ─ */
.why-choose-section {
  position: relative;
  padding: 80px 40px 120px 40px;
  overflow: hidden;
}

.why-choose-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.why-choose-bg img {
  position: absolute;
  left: -8%;
  top: 4%;
  width: 60%;
  height: auto;
  object-fit: contain;
  opacity: 1;
}

.why-choose-inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.why-choose-card {
  background: var(--color-surface-alt);
  border-radius: var(--radius-3xl);
  padding: 8px;
  display: grid;
  grid-template-columns: 428px 1fr;
  gap: 48px;
  align-items: stretch;
  width: 100%;
  max-width: 1128px;
}

.why-choose-image {
  width: 428px;
  height: 428px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  background: var(--color-border);
}

.why-choose-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-choose-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 48px 12px 0;
  gap: 32px;
}

.why-choose-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.why-choose-title {
  font-family: var(--font-family);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-dark);
  text-transform: capitalize;
  letter-spacing: -0.01em;
}

.why-choose-copy {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
}

.why-choose-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.why-choose-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
  display: inline-block;
}

.why-choose-dot.is-active {
  background: var(--color-dark-deep);
}

@media (max-width: 1024px) {
  .why-choose-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .why-choose-image { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .why-choose-body { padding: 24px 24px 32px 24px; }
  .why-choose-bg img { width: 90%; opacity: 0.5; }
}

@media (max-width: 768px) {
  .why-choose-section { padding: 56px 24px 80px 24px; }
  .why-choose-title { font-size: 28px; }
  .why-choose-card { border-radius: var(--radius-xl); }
  .why-choose-image { border-radius: var(--radius-xl); }
}

@media (max-width: 480px) {
  .why-choose-section { padding: 40px 16px 56px 16px; }
  .why-choose-title { font-size: 24px; }
  .why-choose-bg img { opacity: 0.35; }
}

/* ── PROCESS / NUMBERED STEP LIST (Claims page) ────────── */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr 56px;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.process-step--alt {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

.process-step-number {
  font-family: var(--font-family-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

/* On dark plum (alt) rows, the original brand pink (#e5abd5) doesn't
   have enough contrast for the large step number. Use the light
   brand tint so "02" and "04" pop clearly off the plum background. */
.process-step--alt .process-step-number {
  color: var(--color-brand-light, #f2d4eb);
}

.process-step-body { display: flex; flex-direction: column; gap: 6px; }

.process-step-title {
  font-family: var(--font-family-heading);
  font-size: 18px;
  font-weight: 600;
}

/* Lock the title color on dark plum rows so "Document the Incident"
   (02) and "Claim Review & Assessment" (04) stay clearly readable
   regardless of any cascaded inheritance. */
.process-step--alt .process-step-title {
  color: var(--color-white);
}

.process-step-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
}

.process-step--alt .process-step-text { color: rgba(255, 255, 255, 0.85); }

.process-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-brand-pale);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.process-step--alt .process-step-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

@media (max-width: 768px) {
  .process-step {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 20px;
  }
  .process-step-icon { display: none; }
  .process-step-number { font-size: 24px; }
}

/* ── FAQ ACCORDION ─────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 824px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-question[aria-expanded="true"] { color: var(--color-brand); }

.faq-question-icon {
  font-size: 14px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-question-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
}

.faq-answer[hidden] { display: none; }

/* ── PRICING CARD (Bundles page) ───────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--color-brand);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.pricing-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-border);
}

.pricing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-brand);
  color: var(--color-dark);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card-name {
  font-family: var(--font-family-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
}

.pricing-card-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 6px;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pricing-card-amount {
  font-family: var(--font-family-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}

.pricing-card-period {
  font-size: 16px;
  color: var(--text-muted);
}

.pricing-card-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
}

.pricing-card-features li::before {
  content: "✓";
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card-cta { margin-top: auto; }

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ── FORM FIELDS ───────────────────────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
}

.form-field-input,
.form-field-select,
.form-field-textarea {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--color-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

.form-field-input:focus,
.form-field-select:focus,
.form-field-textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-pale);
}

.form-field-input.is-error,
.form-field-select.is-error,
.form-field-textarea.is-error {
  border-color: var(--color-error);
}

.form-field-error {
  font-size: 12px;
  color: var(--color-error);
  min-height: 16px;
}

.form-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-field-row { grid-template-columns: 1fr; }
}

.form-field-help {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── RADIO PILL GROUP (used by quote page) ─────────────── */
.form-radio-group {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-radio { cursor: pointer; }

.form-radio input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-radio-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.form-radio:hover .form-radio-pill {
  border-color: var(--color-brand);
  background: var(--color-brand-pale);
}

.form-radio input[type="radio"]:focus-visible + .form-radio-pill {
  outline: 2px solid var(--color-brand-deep);
  outline-offset: 2px;
}

.form-radio input[type="radio"]:checked + .form-radio-pill {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

/* ── QUOTE PAGE (Zone B Get-a-Quote) ───────────────────── */
.quote-section {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.quote-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 48px;
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.quote-card[hidden] { display: none; }

.quote-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quote-card-title {
  font-family: var(--font-family-heading);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.quote-card-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quote-fieldset-legend {
  font-family: var(--font-family-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-dark);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  margin-bottom: 4px;
}

/* Tighter spacing for the quote card specifically. The global
   .form-field margin-bottom (16px) is too breathy when stacked
   in a 6-field professional form, so we collapse it to 0 and
   rely on the parent fieldset gap (10px). */
.quote-card .form-field { margin-bottom: 0; gap: 4px; }
.quote-card .form-field-error { min-height: 14px; }
.quote-card .form-field-help { color: var(--text-muted); font-size: 12px; }

/* Gate card (sign-in required) - same surface as the form card but
   centered with a brand-tinted lock badge. */
.quote-gate {
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 520px;
  padding: 56px 40px;
}
.quote-gate-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-pale, #faeef8);
  color: var(--color-brand-deep, #b958cd);
  margin-bottom: 4px;
}
.quote-gate-cta { margin-top: 8px; min-width: 220px; }

.quote-legal {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  background: var(--color-brand-pale);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.quote-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.quote-submit {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.quote-submit-arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}

.quote-submit:hover .quote-submit-arrow {
  transform: translateX(4px);
}

/* ── Success state ────────────────────────────────────── */
.quote-success {
  text-align: center;
  align-items: center;
}

.quote-success-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-success-bg);
  color: var(--color-success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.quote-success-summary {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--color-brand-pale);
  border-radius: var(--radius-md);
  padding: 24px;
}

.quote-success-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.quote-success-row-label {
  color: var(--text-muted);
  font-weight: 500;
}

.quote-success-row-value {
  color: var(--text-dark);
  font-weight: 600;
}

.quote-success-cta {
  padding: 14px 28px;
}

@media (max-width: 768px) {
  .quote-card { padding: 32px 24px; gap: 24px; }
  .quote-card-title { font-size: 26px; }
  .quote-actions { justify-content: stretch; }
  .quote-submit { width: 100%; }
}

@media (max-width: 480px) {
  .quote-card { padding: 24px 16px; border-radius: var(--radius-lg); }
  .quote-card-title { font-size: 22px; }
  .quote-section { padding-top: 24px; }
}

/* ── MODAL OVERLAY ─────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: var(--z-modal);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.modal-overlay[hidden] { display: none; }

.modal-content {
  background: var(--color-white);
  width: 360px;
  max-height: 100vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 0 var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.modal-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-brand-pale);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}

.modal-avatar img { width: 100%; height: 100%; object-fit: cover; }

.modal-user-info { flex: 1; min-width: 0; }

.modal-user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  word-break: break-word;
}

.modal-account-number {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-signout-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
}

.modal-signout-btn:hover { background: var(--color-brand-pale); }

.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  line-height: 1;
}

.modal-menu {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.modal-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-dark);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s ease;
}

.modal-menu-item:hover { background: var(--color-brand-pale); }

.modal-menu-item-arrow { color: var(--text-muted); }

.modal-contextual-panel {
  padding: 16px 24px;
  flex: 1;
}

.modal-entity-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.modal-entity-panel:hover { box-shadow: var(--shadow-sm); }

.modal-entity-panel-info { flex: 1; min-width: 0; }
.modal-entity-panel-info h4 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.modal-entity-panel-info p {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 600;
}

.modal-entity-panel-arrow {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  cursor: pointer;
}

@media (max-width: 480px) {
  .modal-content { width: 100vw; border-radius: 0; }
}

/* ── ACCOUNT MODAL (Zone B sign-in drawer) ──────────────
   Variant of the base .modal-overlay/.modal-content drawer with a
   navy gradient header, large brand-color avatar, a compact
   quick-info strip, vertical menu, and a solid pill sign-out
   button. Scoped so the generic confirm modal is unaffected. */
.modal-overlay--account {
  background: rgba(11, 18, 40, 0.45);
  padding: 16px;
  box-sizing: border-box;
}

.modal-content--account {
  width: 380px;
  max-width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-2xl, var(--radius-lg));
  box-shadow:
    0 1px 2px rgba(11, 18, 40, 0.06),
    0 24px 56px rgba(11, 18, 40, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100vh - 32px);
}

.modal-account-header {
  position: relative;
  background:
    radial-gradient(circle at 100% 0%, rgba(10, 126, 139, 0.45) 0%, transparent 55%),
    linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-deep) 100%);
  color: var(--color-white);
  padding: 28px 24px 24px;
}

.modal-content--account .modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--color-white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.modal-content--account .modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.modal-content--account .modal-close-btn:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.modal-account-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-content--account .modal-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-deep, var(--color-brand)) 100%);
  color: var(--color-white);
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.16),
    0 8px 20px rgba(10, 126, 139, 0.35);
}

.modal-account-meta { flex: 1; min-width: 0; }

.modal-account-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 4px;
}

.modal-content--account .modal-user-name {
  font-family: var(--font-family-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 2px;
  line-height: 1.2;
  word-break: break-word;
}

.modal-account-email {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
  word-break: break-word;
}

/* Quick-info strip — sits directly below the header. Two compact pills:
   "Status · Active" + "Member since · Jun 2026". Gives the modal weight
   without filling it with empty space. */
.modal-account-quickinfo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px 20px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.modal-quickinfo-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 0;
}

.modal-quickinfo-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.modal-quickinfo-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-quickinfo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success, #1a8c5b);
  box-shadow: 0 0 0 3px rgba(26, 140, 91, 0.18);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.modal-content--account .modal-menu {
  padding: 8px 0;
  border-bottom: none;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}

.modal-content--account .modal-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.modal-content--account .modal-menu-item:hover,
.modal-content--account .modal-menu-item:focus-visible {
  background: var(--color-brand-pale);
  border-left-color: var(--color-brand);
  color: var(--color-dark-deep);
  outline: none;
}

.modal-menu-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.modal-content--account .modal-menu-item:hover .modal-menu-item-dot {
  background: var(--color-brand);
  transform: scale(1.4);
}

.modal-menu-item-label { flex: 1; }

.modal-content--account .modal-menu-item-arrow {
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}

.modal-content--account .modal-menu-item:hover .modal-menu-item-arrow {
  color: var(--color-brand-deep);
  transform: translateX(2px);
}

.modal-account-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  flex-shrink: 0;
}

.modal-content--account .modal-signout-btn {
  width: 100%;
  background: var(--color-dark-deep);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 16px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.modal-content--account .modal-signout-btn:hover {
  background: var(--color-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(11, 18, 40, 0.28);
}

.modal-content--account .modal-signout-btn:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .modal-overlay--account { padding: 8px; }
  .modal-content--account {
    width: 100%;
    max-height: calc(100vh - 16px);
  }
  .modal-account-header     { padding: 24px 18px 20px; }
  .modal-account-quickinfo  { padding: 12px 14px; gap: 6px; }
  .modal-account-footer     { padding: 12px 16px 16px; }
}

/* ── CHECKOUT MODAL (bundle enrollment) ─────────────────
   Centered variant of the modal overlay used by bundles.js. The
   .modal-overlay--checkout modifier flips the base drawer alignment
   to centered, and .modal-content--checkout gives it a card layout
   wide enough for the order summary + billing form. */
.modal-overlay--checkout {
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.modal-content--checkout {
  width: 100%;
  max-width: 640px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100vh - 48px);
}

.checkout-modal-header {
  position: relative;
  padding: 28px 32px 20px;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-deep) 100%);
  color: var(--color-white);
}

.checkout-modal-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 6px;
}

.checkout-modal-title {
  font-family: var(--font-family-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 6px;
}

.checkout-modal-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
}

.modal-content--checkout .modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--color-white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.modal-content--checkout .modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.checkout-modal-body {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.checkout-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-summary-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.checkout-summary-plan {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.checkout-summary-name {
  font-family: var(--font-family-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
}

.checkout-summary-price {
  font-family: var(--font-family-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-brand-deep);
  white-space: nowrap;
}

.checkout-summary-period {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.checkout-summary-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-summary-features li {
  font-size: 13px;
  color: var(--text-mid);
  padding-left: 20px;
  position: relative;
  line-height: 1.45;
}

.checkout-summary-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-brand-deep);
  font-weight: 700;
}

.checkout-summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--text-mid);
}

.checkout-summary-total-value {
  font-family: var(--font-family-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-form-section + .checkout-form-section { margin-top: 4px; }

.checkout-form-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Friendly explainer that sits under a section title (currently used
   under "Billing details" to call out that the demo bypasses payment). */
.checkout-form-section-note {
  font-size: 13px;
  color: var(--text-mid);
  margin-top: -8px;
  margin-bottom: 12px;
  line-height: 1.45;
}

/* Visual treatment for prefilled / locked inputs in the checkout demo.
   The field remains accessible (still rendered as an input) but reads as
   non-interactive: muted background, subtler text, no focus ring. */
.form-field-input--readonly,
.form-field-input--readonly:focus {
  background: var(--color-brand-pale, #faeef8);
  color: var(--text-mid);
  cursor: default;
  border-color: var(--color-border);
  box-shadow: none;
}

.checkout-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-form-row--triple {
  grid-template-columns: 2fr 1fr 1fr;
}

@media (max-width: 600px) {
  .checkout-form-row,
  .checkout-form-row--triple { grid-template-columns: 1fr; }
}

.checkout-modal-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  flex-wrap: wrap;
}

.checkout-legal {
  font-size: 12px;
  color: var(--text-muted);
  flex: 1 1 240px;
  line-height: 1.45;
}

.checkout-modal-actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

/* Success state replaces the body. */
.checkout-success {
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.checkout-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-brand-pale);
  color: var(--color-brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
}

.checkout-success-headline {
  font-family: var(--font-family-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

.checkout-success-body {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 440px;
  line-height: 1.55;
}

@media (max-width: 480px) {
  .modal-overlay--checkout { padding: 0; }
  .modal-content--checkout {
    width: 100vw;
    max-width: none;
    max-height: 100vh;
    border-radius: 0;
  }
  .checkout-modal-header,
  .checkout-modal-body,
  .checkout-modal-footer { padding-left: 20px; padding-right: 20px; }
}

/* ── CASE DETAIL (Zone A) ──────────────────────────────── */
.case-detail-hero {
  background:
    linear-gradient(
      135deg,
      var(--color-dark-deep) 0%,
      var(--color-dark) 45%,
      var(--color-brand-deep) 100%
    );
  color: var(--color-white);
  padding: 56px 40px 64px;
  position: relative;
  overflow: hidden;
}

.case-detail-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -120px;
  width: 360px;
  height: 360px;
  background-image: url("../images/logo-icon.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.10;
  pointer-events: none;
  transform: rotate(-18deg);
}

.case-detail-hero::after {
  content: "";
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-brand-deep) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

.case-detail-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── MY-CLAIMS HERO (Zone A list page) ─────────────────
   Builds on .case-detail-hero with a two-column inner: copy on the
   left, an Add-claim action card on the right. Mobile collapses to
   a single stacked column with the button below the copy. */
.my-claims-hero {
  padding-bottom: 56px;
}

.my-claims-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

.my-claims-hero-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.my-claims-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-family: var(--font-family);
}

.my-claims-hero-count {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.my-claims-hero-limit {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.my-claims-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.my-claims-hero-limit-note {
  max-width: 320px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-brand-light, #f2d4eb);
  text-align: right;
  line-height: 1.4;
}

.my-claims-hero-add-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: var(--color-dark-deep);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  margin-right: 4px;
}

@media (max-width: 720px) {
  .my-claims-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .my-claims-hero-actions {
    align-items: stretch;
  }
  .my-claims-hero-limit-note { text-align: left; max-width: none; }
}

/* ── Back-to-cases pill (top of case-detail hero) ───────
   Glass-style pill button that sits on the dark hero. Hover flips
   it to brand-pink with a soft glow and slides the arrow left to
   reinforce the "back" direction. */
.case-detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.10);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.20);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.case-detail-back-link:hover {
  background: var(--color-brand);
  color: var(--color-dark-deep);
  border-color: var(--color-brand);
  box-shadow: 0 8px 20px rgba(229, 171, 213, 0.35);
  transform: translateY(-1px);
}

.case-detail-back-link:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

.case-detail-back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition:
    background 0.2s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-detail-back-link:hover .case-detail-back-arrow {
  background: var(--color-dark-deep);
  color: var(--color-brand);
  transform: translateX(-3px);
}

.case-detail-back-label { white-space: nowrap; }

.case-detail-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 8px;
}

.case-detail-title {
  font-family: var(--font-family-heading);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-white);
  line-height: 1.1;
}

.case-detail-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 10px;
  max-width: 540px;
}

@media (max-width: 768px) {
  .case-detail-hero { padding: 40px 24px 48px; }
  .case-detail-title { font-size: 30px; }
}

.case-detail-section {
  margin-top: -32px;
  position: relative;
  z-index: 2;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .case-detail-grid { grid-template-columns: 1fr; }
}

.case-detail-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow:
    0 1px 2px rgba(7, 38, 58, 0.04),
    0 12px 28px rgba(7, 38, 58, 0.08);
}

.case-detail-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-detail-content[hidden] { display: none; }

.case-detail-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.case-detail-card-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-detail-card-id {
  font-family: var(--font-family-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.case-detail-card-policy {
  font-size: 14px;
  color: var(--text-muted);
}

.case-detail-card-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-detail-delete-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.case-detail-delete-btn:hover {
  background: var(--color-error-bg);
  color: var(--color-error);
  border-color: var(--color-error);
}

.case-detail-delete-btn:focus-visible {
  outline: 2px solid var(--color-error);
  outline-offset: 2px;
}

.case-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-warning-bg);
  color: var(--color-warning);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-detail-status[data-status="open"]         { background: var(--color-brand-pale); color: var(--color-dark); }
.case-detail-status[data-status="under_review"] { background: var(--color-warning-bg); color: var(--color-warning); }
.case-detail-status[data-status="approved"]     { background: var(--color-success-bg); color: var(--color-success); }
.case-detail-status[data-status="denied"]       { background: var(--color-error-bg); color: var(--color-error); }
.case-detail-status[data-status="closed"]       { background: var(--color-border); color: var(--text-muted); }

.case-detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

@media (max-width: 480px) {
  .case-detail-meta { grid-template-columns: 1fr; padding: 16px; }
}

.case-detail-meta dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.case-detail-meta dd {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

.case-detail-description-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-detail-description-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-detail-description-text {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.65;
}

.case-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
  gap: 8px;
}

.case-detail-empty[hidden] { display: none; }

.case-detail-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-brand-pale);
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.case-detail-aside {
  background: linear-gradient(160deg, var(--color-dark) 0%, var(--color-dark-deep) 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow:
    0 1px 2px rgba(7, 38, 58, 0.04),
    0 12px 28px rgba(7, 38, 58, 0.12);
}

.case-detail-aside h3 {
  font-family: var(--font-family-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
}

.case-detail-aside p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.case-detail-aside-cta {
  margin-top: 8px;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.case-detail-aside-cta:hover {
  background: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

/* ── Support-phone CTA inside .case-detail-aside ──────────
   A high-contrast pink pill button that reads as the primary
   "do this now" action when the user is looking at a case. */
.case-detail-aside-phone {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
}

.case-detail-aside-phone-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
}

.case-detail-aside-phone-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-brand);
  color: var(--color-dark-deep);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  border: none;
}

.case-detail-aside-phone-cta:hover {
  background: var(--color-brand-light);
  color: var(--color-dark-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(229, 171, 213, 0.35);
}

.case-detail-aside-phone-cta:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.case-detail-aside-phone-icon {
  display: inline-flex;
  align-items: center;
}

.case-detail-aside-phone-number {
  letter-spacing: 0.02em;
}

/* ── Split Call / WhatsApp pill button ─────────────────────
   Two halves that connect flush — left = phone call (brand pink),
   right = WhatsApp (green). A thin 1px border between them via
   CSS replaces any HTML divider element. The phone number sits
   above as a large, copyable reference spanning the full width. */
.case-detail-aside-phone-split {
  display: flex;
  border-radius: var(--radius-pill);
  overflow: hidden;
  width: 100%;
}

/* Large, selectable number shown above the split button — spans
   the full width so it clearly maps to both contact channels. */
.case-detail-aside-phone-split-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.04em;
  text-align: center;
  display: block;
  margin-bottom: 10px;
  user-select: all;
  cursor: text;
}

.case-detail-aside-phone-side {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 50%;
  padding: 11px 10px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.case-detail-aside-phone-side--call {
  background: var(--color-brand);
  color: var(--color-dark-deep);
  /* Thin right-edge border acts as the channel separator — no element needed. */
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.case-detail-aside-phone-side--call:hover {
  background: var(--color-brand-light);
  color: var(--color-dark-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(229, 171, 213, 0.45);
}

.case-detail-aside-phone-side--call:focus-visible {
  outline: 2px solid var(--color-brand-deep);
  outline-offset: 2px;
}

.case-detail-aside-phone-side--whatsapp {
  background: #25D366;
  color: #0a3a1a;
}

.case-detail-aside-phone-side--whatsapp:hover {
  background: #1da851;
  color: #0a3a1a;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.45);
}

.case-detail-aside-phone-side--whatsapp:focus-visible {
  outline: 2px solid #128C7E;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .case-detail-aside-phone-side {
    transition-duration: 0.01ms !important;
  }
}

/* ── CONFIRM MODAL (Zone A) ────────────────────────────── */
.modal-content--compact {
  max-width: 440px;
  width: calc(100vw - 48px);
  padding: 0;
}

.confirm-modal {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.confirm-modal-title {
  font-family: var(--font-family-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.confirm-modal-body {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.55;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 4px;
}

.btn-primary.btn-danger {
  background: var(--color-error);
  color: var(--color-white);
}

.btn-primary.btn-danger:hover {
  background: var(--color-error-hover);
}

/* ── CASE LIST (cases.html) ────────────────────────────── */
.case-list-loading {
  text-align: center;
  padding: 32px 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.case-list-loading[hidden] { display: none; }

.case-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.case-list-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 2px rgba(7, 38, 58, 0.04);
}

/* Inner link wraps the card content; the article holds the hover state
   so the whole surface animates together but the delete button (which
   sits absolutely on top) stays clickable without nesting buttons in
   the link. */
.case-list-card-link {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 24px 22px;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-lg);
}

.case-list-card-link:focus-visible {
  outline: 2px solid var(--color-brand-deep);
  outline-offset: -2px;
}

.case-list-card-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.case-list-card-delete:hover {
  color: var(--color-error);
  border-color: var(--color-error);
  background: var(--color-error-bg);
  transform: scale(1.06);
}

.case-list-card-delete:focus-visible {
  outline: 2px solid var(--color-error);
  outline-offset: 2px;
}

.case-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(42, 22, 44, 0.12);
  border-color: var(--color-brand);
}

/* Subtle brand-pink accent bar on the left edge when hovered. */
.case-list-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-brand-deep) 0%, var(--color-brand) 100%);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.case-list-card:hover::before { opacity: 1; }

.case-list-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.case-list-card-id {
  font-family: var(--font-family-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.case-list-card-policy {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.case-list-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 13px;
  color: var(--text-mid);
}

.case-list-card-meta dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.case-list-card-meta dd {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
}

.case-list-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  /* Use the deeper magenta on white card backgrounds for proper
     contrast - the light brand pink (#e5abd5) was too washed out
     against white. Stays on-theme. */
  color: var(--color-brand-deep, #b958cd);
  font-weight: 600;
}

.case-list-card-footer-arrow {
  transition: transform 0.15s ease;
}

.case-list-card:hover .case-list-card-footer-arrow {
  transform: translateX(3px);
}

/* ── PROFILE (profile.html) ────────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .profile-grid { grid-template-columns: 1fr; }
}

.profile-empty-state {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.profile-empty-state[hidden] { display: none; }

.profile-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-brand-pale);
  color: var(--color-brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.profile-empty-title {
  font-family: var(--font-family-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
}

.profile-empty-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 420px;
}

.profile-empty-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.profile-grid[hidden] { display: none; }

.profile-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow:
    0 1px 2px rgba(7, 38, 58, 0.04),
    0 12px 28px rgba(7, 38, 58, 0.08);
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-hover) 100%);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-heading);
  font-size: 26px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(10, 126, 139, 0.3);
}

.profile-name {
  font-family: var(--font-family-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}

.profile-name-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.profile-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 480px) {
  .profile-fields { grid-template-columns: 1fr; }
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.profile-field-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
}

.profile-field-value {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
  word-break: break-word;
}

.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* ── COOKIE CONSENT ────────────────────────────────────── */
.cookie-consent {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-consent[hidden] { display: none; }

.cookie-consent__text {
  flex: 1;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
}

.cookie-consent__text a {
  color: var(--color-brand);
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-consent__btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--text-dark);
}

.cookie-consent__btn--accept {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-dark);
}

@media (max-width: 480px) {
  .cookie-consent { flex-direction: column; align-items: stretch; }
  .cookie-consent__actions { justify-content: stretch; }
  .cookie-consent__btn { flex: 1; }
}
