/* Components: Agent Profile */

/* ---- Agent Social Links ---- */
.agent-social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  color: var(--color-muted);
  font-size: var(--font-size-lg);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.social-icon:hover {
  background: var(--social-color, var(--color-primary));
  color: #fff;
  transform: scale(1.15);
}

/* ---- Agent Filter Bar + Panel ---- */
.agent-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.agent-filter-count {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  font-weight: var(--font-weight-medium);
}

.agent-filter-toggle.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.agent-filter-search {
  margin-left: auto;
  position: relative;
  min-width: 200px;
}

.agent-filter-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  pointer-events: none;
  font-size: var(--font-size-sm);
}

.agent-filter-search input {
  padding-left: 2rem;
}

.agent-filter-panel {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.agent-filter-group {
  margin-bottom: var(--space-md);
}

.agent-filter-group:last-of-type {
  margin-bottom: var(--space-lg);
}

.agent-filter-group h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.filter-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.25em 0.75em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.filter-chip input {
  display: none;
}

.filter-chip:hover {
  border-color: var(--color-primary);
}

.filter-chip:has(input:checked) {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}

@media (max-width: 575px) {
  .agent-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .agent-filter-search {
    margin-left: 0;
    min-width: 100%;
  }
  .agent-filter-bar > .agent-filter-count,
  .agent-filter-bar > .agent-filter-toggle {
    align-self: flex-start;
  }
}

/* ---- Inline Filter Bar (Our Team page) ----
   Office dropdown + role chips exposed by default; rest collapsed
   behind a "More filters" toggle. Search box gets a flexible width
   so it doesn't push everything else around at narrow viewports. */
.agent-filter-bar--inline {
  align-items: center;
}
.agent-filter-bar--inline .agent-filter-search {
  margin-left: 0;
  flex: 1 1 220px;
  min-width: 200px;
}
.agent-filter-bar--inline .agent-filter-office-inline {
  flex: 0 1 200px;
  min-width: 160px;
}
.agent-filter-bar--inline .agent-filter-roles {
  margin: 0;
}
.agent-filter-bar--inline .agent-filter-count {
  margin-left: auto;
}
@media (max-width: 720px) {
  .agent-filter-bar--inline > .agent-filter-roles { width: 100%; }
}

/* ---- 4-row filter layout (Our Team page) ----
   Row 1: search (grows), office, more filters
   Row 2: role chips ........ sort (right-aligned)
   Row 3: A-Z strip (fills width)
   Row 4: result count (right-aligned, on its own line)
   Each row fills the container width; row gaps stack tidily on mobile. */
.agent-filter-bar--rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex-wrap: nowrap;
  margin-bottom: var(--space-lg);
  width: 100%;
}
.agent-filter-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  width: 100%;
}
.agent-filter-row--primary .agent-filter-search {
  margin-left: 0;
  flex: 1 1 220px;
  min-width: 200px;
}
.agent-filter-row--primary .agent-filter-office-inline {
  flex: 0 1 200px;
  min-width: 160px;
}
/* "More filters" sits next to the search input + select — match their
   height so the row reads as one band instead of a tall input + a
   short button squished alongside it. */
.agent-filter-row--primary .agent-filter-toggle {
  padding: 0.625rem 0.875rem;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  align-self: stretch;
}
.agent-filter-row--secondary .agent-filter-sort {
  margin-left: auto;
}
.agent-filter-row--jumpstrip .roster-jumpstrip {
  flex: 1 1 100%;
  width: 100%;
  margin-bottom: 0;
}
.agent-filter-row--count {
  justify-content: flex-end;
}
.agent-filter-row--count .agent-filter-count {
  white-space: nowrap;
}

/* Sort cluster — two segmented pills (field, direction). Each
   .filter-chip-grid here renders as ONE joined pill with internal
   dividers, not as two free-standing chips. Same palette as the
   standalone filter chips above (primary-light fill, primary text on
   select) — only the joined shape distinguishes them. */
.agent-filter-sort {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}
.agent-filter-sort .filter-chip-grid {
  gap: 0;
  flex-wrap: nowrap;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  padding: 0;
}
.agent-filter-sort .filter-chip {
  border: none;
  border-radius: 0;
  padding: 0.25em 0.85em;
  color: var(--color-body);
}
.agent-filter-sort .filter-chip + .filter-chip {
  border-left: 1px solid var(--color-border);
}
.agent-filter-sort .filter-chip:hover {
  border-color: transparent;
  background: var(--color-bg-alt);
  color: var(--color-primary);
}
.agent-filter-sort .filter-chip:has(input:checked) {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}
/* Dissolve the divider line on either side of the active segment so the
   highlight reads as one continuous shape, not a chip with a stray
   border next to it. */
.agent-filter-sort .filter-chip:has(input:checked) + .filter-chip,
.agent-filter-sort .filter-chip:has(+ .filter-chip input:checked) {
  border-left-color: transparent;
}
@media (max-width: 720px) {
  .agent-filter-row--secondary .agent-filter-sort {
    margin-left: 0;
    width: 100%;
  }
}

/* ---- A-Z Jump Strip ----
   Sticky band; click a letter, scroll to first agent whose first name
   starts with it. Lightweight phone-book affordance for a 190-card page. */
.roster-jumpstrip {
  position: sticky;
  top: var(--space-md);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.roster-jump-letter {
  flex: 1 1 24px;
  min-width: 28px;
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 6px 4px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-muted);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.roster-jump-letter:hover:not(:disabled) {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}
/* Active letter — chip-style highlight (primary-light fill, primary text)
   so it reads as the same "selected" treatment used by the filter chips
   and segmented sort controls above. */
.roster-jump-letter.is-active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.roster-jump-letter.is-active:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}
/* No-agent letters — faint muted treatment so they read as "nothing
   here," not as a loud disabled chip. Pointer events off so the button
   can't be focused or fire a click. */
.roster-jump-letter:disabled,
.roster-jump-letter.is-disabled {
  background: transparent;
  color: var(--color-muted);
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}
@media (max-width: 575px) {
  .roster-jump-letter { padding: 4px 2px; min-width: 22px; font-size: var(--font-size-xs); }
}

@media (max-width: 767px) {
  .agent-filter-row--jumpstrip {
    padding: 0;
    margin: 0;
    min-height: 0;
  }
  .agent-filter-row--jumpstrip .roster-jumpstrip {
    --rail-header-h: var(--header-height, 64px);
    --rail-margin: 16px;
    position: fixed;
    top: calc(50% + var(--rail-header-h) / 2);
    right: 4px;
    left: auto;
    transform: translateY(-50%);
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 4px 2px;
    margin: 0;
    width: auto;
    flex: 0 0 auto;
    max-height: calc(100dvh - var(--rail-header-h) - var(--rail-margin) * 2);
    overflow-y: auto;
    scrollbar-width: none;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--color-bg) 92%, transparent);
    backdrop-filter: blur(6px);
    z-index: 50;
  }
  .agent-filter-row--jumpstrip .roster-jumpstrip::-webkit-scrollbar { display: none; }

  .agent-filter-row--jumpstrip .roster-jump-letter {
    flex: 0 0 auto;
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 4px 0;
    line-height: 1;
    font-size: 14px;
  }
  .agent-filter-row--jumpstrip .roster-jump-letter[data-filter-letter=""] {
    display: none;
  }
}

@media (max-width: 767px) {
  .agent-filter-bar--rows { gap: var(--space-xs); }
  .agent-filter-row { gap: var(--space-xs); }
  .agent-filter-row--primary { flex-wrap: wrap; }
  .agent-filter-row--primary .agent-filter-search { flex: 1 1 100%; }
  .agent-filter-row--primary .agent-filter-office-inline { flex: 1 1 auto; min-width: 0; }
  .agent-filter-row--secondary { flex-wrap: wrap; }
  .agent-filter-row--secondary .agent-filter-sort { margin-left: 0; }
  .agent-filter-bar .filter-chip { padding: 0.25em 0.75em; font-size: var(--font-size-xs); }
  .agent-filter-row--count { margin-top: var(--space-2xs); }
  .container.page-body:has(.roster-jumpstrip) { padding-right: 40px; }
}

/* Quick flash highlight on the card we just jumped to. */
[data-roster-card].roster-card--flash {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  transition: outline-color 1s ease-out;
}

/* ---- Agent Profile Redesign ---- */

/* Hero Section */
.agent-hero {
  background: var(--color-nav);
  color: #fff;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.agent-hero + .page-body {
  padding-top: var(--space-xl);
}

.agent-hero h1 { color: #fff; }

.agent-hero .breadcrumb a,
.agent-hero .breadcrumb span {
  color: rgba(255, 255, 255, 0.6);
}
.agent-hero .breadcrumb a:hover { color: #fff; }

/* Hero Layout: flexbox so we can reverse on mobile */
.agent-hero-layout {
  display: flex;
  gap: var(--space-xl);
  align-items: start;
  margin-top: var(--space-lg);
}

.agent-hero-photo-col {
  flex-shrink: 0;
  text-align: center;
}

.agent-hero-photo-wrap {
  position: relative;
  display: inline-block;
}

/* ──────────────────────────────────────────────────────────────────
   Agent photo lightbox — click photo → bigger view + action shelf.
   Analytics showed the photo as the #1 click target on agent pages;
   visitors were tapping a non-interactive element expecting *something*.
   The lightbox addresses both reads of the signal: "I want to see them
   better" (the bigger photo) and "I want to act" (Call / Message CTAs).
   ────────────────────────────────────────────────────────────────── */
kpdd-agent-photo-lightbox {
  display: inline-block;
}
kpdd-agent-photo-lightbox:focus-visible {
  outline: 3px solid var(--color-primary, #1a365d);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

.agent-photo-lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(640px, 92vw);
  width: 100%;
  color: #fff;
}
/* Existing app CSS resets dialog margin → left-anchored otherwise. */
.agent-photo-lightbox[open] {
  margin: auto;
}
.agent-photo-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.agent-photo-lightbox-figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.agent-photo-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.agent-photo-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.15s;
}
.agent-photo-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.85);
}

.agent-photo-lightbox-shelf {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-md, 16px);
  padding: 0 12px;
}
.agent-photo-lightbox-cta {
  min-width: 180px;
}
@media (max-width: 480px) {
  .agent-photo-lightbox-cta {
    flex: 1 1 100%;
  }
}

.agent-hero-photo {
  width: 220px;
  height: 275px;
  border-radius: var(--radius-lg);
  border: 3px solid rgba(255, 255, 255, 0.25);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.agent-team-logo {
  position: absolute;
  bottom: -6px;
  left: -6px;
  width: 52px;
  height: 52px;
  border-radius: 22%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  background: #fff;
  transition: transform 0.15s ease;
}

.agent-team-logo:hover {
  transform: scale(1.1);
}

.agent-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-hero-info {
  flex: 1;
  min-width: 0;
}

.agent-hero-name {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: #fff;
  margin-bottom: 0;
  line-height: var(--line-height-tight);
}

.agent-hero-title {
  font-size: var(--font-size-base);
  opacity: 0.8;
  margin-top: 2px;
}

.agent-hero-designations {
  font-size: var(--font-size-sm);
  opacity: 0.6;
  margin-top: 2px;
}

.agent-hero-office {
  display: inline-block;
  font-size: var(--font-size-xs);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.2em 0.6em;
  border-radius: var(--radius-sm);
  margin-top: var(--space-sm);
  letter-spacing: 0.02em;
}

.agent-hero-info .badge-pacesetter,
.agent-hero-info .badge-office {
  display: inline-block;
  margin-top: var(--space-xs);
}

/* Sales Carousel */
kpdd-sales-carousel {
  display: block;
  width: 100%;
  min-width: 0;
}

.sales-carousel-wrap {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-md);
}

.sales-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-group-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  padding: 0 var(--space-xs) var(--space-2xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0 var(--space-xs) var(--space-xs);
}

.carousel-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.carousel-group-cards {
  display: flex;
  flex: 1;
}

/* Size each group proportionally to its card count */
.carousel-group[data-count="1"] { flex: 1; }
.carousel-group[data-count="2"] { flex: 2; }
.carousel-group[data-count="3"] { flex: 3; }
.carousel-group[data-count="4"] { flex: 4; }

.carousel-card {
  flex: 1 1 0;
  min-width: 0;
  /* Cap the card so an agent with a single sale doesn't stretch a
     320×240 thumbnail across the entire hero track (was rendering as
     a blurry 1020×765 on Kimberly Grosso's profile). With more cards
     the flex weights still share the available row up to this cap. */
  max-width: 240px;
  padding: 0 var(--space-xs);
  box-sizing: border-box;
}

/* When a group ends up with a single card and excess track space, keep
   the card flush-left rather than centered — matches the "cards align
   under their label" layout we use everywhere else. */
.carousel-group[data-count="1"] .carousel-group-cards { justify-content: flex-start; }

.carousel-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  transition: background var(--transition-fast);
}

.carousel-card a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.carousel-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.carousel-card-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.25);
  font-size: var(--font-size-2xl);
}

.carousel-card-body {
  padding: var(--space-xs) var(--space-sm);
}

.carousel-card-price {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-card-addr {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.carousel-see-more {
  display: block;
  text-align: right;
  margin-top: var(--space-xs);
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.carousel-see-more:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Agent Stats Row */
.agent-stats-row {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.agent-stat-item {
  text-align: center;
  min-width: 80px;
}

.agent-stat-value {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: #fff;
  line-height: 1;
}

.agent-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* Sticky Sidebar */
.agent-sidebar-sticky {
  position: sticky;
  top: 80px;
}

/* Section Header Row */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

.section-header-row h3 {
  margin: 0;
}

/* Service Area Tags */
.service-area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.service-area-tags .badge-office {
  text-decoration: none;
}

.service-area-tags a.badge-office:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Agent Bookend Footer */
.agent-bookend {
  background: var(--color-bg-alt);
  padding: var(--space-3xl) 0;
  margin-top: var(--space-3xl);
}

.agent-bookend-card {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
}

.agent-bookend-card img {
  width: 120px;
  height: 150px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.agent-bookend-info {
  flex: 1;
}

.agent-bookend-name {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}

/* Video Recorder */
.video-record-btn.recording {
  color: var(--color-danger);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.video-preview,
.video-playback {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-md);
  margin: var(--space-sm) 0;
}

/* Show More hidden content */
.hidden-content {
  display: none;
}

/* Responsive */
@media (max-width: 991px) {
  .agent-hero-photo {
    width: 180px;
    height: 225px;
  }

  .agent-team-logo {
    width: 44px;
    height: 44px;
  }

  .agent-sidebar-sticky {
    position: static;
  }
}

@media (orientation: portrait) {
  .agent-hero-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
  }

  .agent-hero-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .agent-hero-photo {
    width: 160px;
    height: 200px;
    margin: 0 auto;
  }

  .agent-team-logo {
    width: 40px;
    height: 40px;
    bottom: -4px;
    left: -4px;
  }

  kpdd-sales-carousel {
    display: none;
  }

  .agent-hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .agent-hero-name {
    font-size: var(--font-size-xl);
  }

  .agent-stats-row {
    gap: var(--space-sm) var(--space-md);
  }

  .agent-stat-item {
    min-width: 70px;
  }

  .agent-bookend-card {
    flex-direction: column;
    text-align: center;
  }

  .team-hero-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-hero-logo img {
    width: 80px;
    height: 80px;
  }

  .team-hero-identity {
    padding: var(--space-md) 0 var(--space-lg);
  }

}

/* ---- Departed Agent: Olive-Branch Contact Relay ---- */
.olive-branch-card {
  background: var(--color-bg-white, #fff);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary, #1a365d);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.olive-branch-form .form-group {
  margin-bottom: var(--space-md);
}
.olive-branch-form .form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}
.olive-branch-form .form-control {
  width: 100%;
}
.olive-branch-form .form-row {
  margin-bottom: var(--space-md);
}
@media (max-width: 480px) {
  .olive-branch-form .form-row {
    grid-template-columns: 1fr !important;
  }
}

/* Inline error message for the departed-agent contact form. Set by JS
   when the user submits without an email or phone (or when the server
   call fails). aria-live via role="alert" announces it to screen readers. */
.departed-contact-error {
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #b02a37;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}
