/**
 * VMHS Public Portal — polish layer
 * Page heads, inner page chrome, cards, search, detail panels.
 * Loaded after base; refines specific component appearances.
 */

/* ═══════════════════════════════════════════════════════════════════
   PAGE HEAD BAND  (.vmhs-public-page-head)
   Used on every inner public page (create-ticket, track, etc.)
═══════════════════════════════════════════════════════════════════ */
.vmhs-public .vmhs-public-page-head {
  position: relative;
  padding: 1.5rem 0 0;
  background: transparent;
  border: none;
}
.vmhs-public .vmhs-public-page-head__inner {
  position: relative;
  padding-bottom: 1.375rem;
  border-bottom: 1.5px solid rgba(20, 32, 43, 0.07);
  animation: vmhs-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.vmhs-public .vmhs-public-page-head__eyebrow,
.vmhs-public .vmhs-public-page-head__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0 0 0.5rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--app-primary, #b7670f);
}
.vmhs-public .vmhs-public-page-head__eyebrow i { font-size: 1rem; }
.vmhs-public .vmhs-public-page-head__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
  color: var(--app-text, #0f1c2e);
}
.vmhs-public .vmhs-public-page-head__lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--app-text-secondary, #4b5e72);
  max-width: 40rem;
  margin: 0.5rem 0 0;
}
.vmhs-public .vmhs-public-page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════
   CATALOG / CONTENT CARDS
═══════════════════════════════════════════════════════════════════ */
.vmhs-public .app-card {
  border: 1px solid var(--app-border, #e2e8f0);
  border-radius: var(--app-radius-xl, 1.25rem);
  background: var(--app-surface, #fff);
  box-shadow: var(--app-shadow-sm);
  overflow: hidden;
}
.vmhs-public a.app-card:hover,
.vmhs-public .app-card--interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--app-shadow-md);
  border-color: rgba(183, 103, 15, 0.18);
}
.vmhs-public .app-card__body {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

/* Catalog icon */
.vmhs-public .app-catalog-card__icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--app-radius, 0.75rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.875rem;
  background: var(--app-primary-soft, #fff8f0);
  color: var(--app-primary, #b7670f);
}
.vmhs-public .app-catalog-card__icon--indigo {
  background: var(--app-indigo-soft, rgba(99,102,241,0.10));
  color: var(--app-indigo, #6366f1);
}

/* Agent / contact cards */
.vmhs-public .app-agent-card { height: 100%; text-align: center; }
.vmhs-public .app-agent-card__avatar {
  width: 4rem; height: 4rem;
  margin: 0 auto 0.875rem;
  border-radius: var(--app-radius-full, 9999px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--app-primary, #b7670f) 0%, var(--vmhs-brand-gradient-end, #d97706) 100%);
  box-shadow: 0 8px 20px rgba(183, 103, 15, 0.22);
}
.vmhs-public .app-agent-card__name { font-size: 1rem; font-weight: 700; margin: 0 0 0.2rem; }
.vmhs-public .app-agent-card__dept { font-size: 0.8125rem; color: var(--app-text-secondary); margin: 0 0 0.75rem; }

/* ═══════════════════════════════════════════════════════════════════
   DETAIL PANEL  (.app-detail-panel)
═══════════════════════════════════════════════════════════════════ */
.vmhs-public .app-detail-panel {
  border-radius: var(--app-radius-xl);
  overflow: hidden;
}
.vmhs-public .app-detail-panel__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.125rem;
  margin-bottom: 1.25rem;
  border-bottom: 1.5px solid var(--app-border-light);
}
.vmhs-public .app-detail-panel__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0.25rem 0;
  line-height: 1.25;
}
.vmhs-public .app-detail-panel__ref {
  font-size: 0.8125rem;
  color: var(--app-text-muted);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   LIST PANEL  (.app-list-panel)
═══════════════════════════════════════════════════════════════════ */
.vmhs-public .app-list-panel__head {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--app-text-secondary);
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--app-border-light);
  background: var(--app-bg-subtle);
}
.vmhs-public .app-list-panel__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--app-border-light);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}
.vmhs-public .app-list-panel__item:last-child { border-bottom: none; }
.vmhs-public a.app-list-panel__item:hover { background: var(--app-primary-muted); color: inherit; }
.vmhs-public .app-list-panel__meta { font-size: 0.8125rem; color: var(--app-text-secondary); }

/* ═══════════════════════════════════════════════════════════════════
   UNIFIED SEARCH BAR  (.app-search-bar)
═══════════════════════════════════════════════════════════════════ */
.vmhs-public .app-search-bar {
  border-radius: var(--app-radius-xl);
  border: 1.5px solid var(--app-border);
  background: var(--app-surface);
  box-shadow: var(--app-shadow-sm);
}
.vmhs-public .app-search-bar .form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--app-text-secondary);
  margin-bottom: 0.3rem;
}
.vmhs-public .app-search-bar .form-control:focus {
  border-color: var(--app-primary) !important;
  box-shadow: 0 0 0 3px var(--app-primary-muted) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   AUTH / FORM CARDS
═══════════════════════════════════════════════════════════════════ */
.vmhs-public .app-auth-card {
  max-width: 28rem;
  margin: 0 auto;
  border-radius: var(--app-radius-2xl);
  box-shadow: var(--app-shadow-lg);
}
@media (min-width: 576px) {
  .vmhs-public .app-auth-card .app-card__body { padding: 2.25rem 2.25rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   FRIENDLY FORM (cards with fieldsets)
═══════════════════════════════════════════════════════════════════ */
.vmhs-public .app-card .vmhs-fieldset {
  border: 0;
  padding: 0 0 1.375rem;
  margin: 0 0 0.5rem;
}
.vmhs-public .app-card .vmhs-fieldset + .vmhs-fieldset,
.vmhs-public .app-card .vmhs-fieldset + .vmhs-residency-fieldset,
.vmhs-public .app-card .vmhs-residency-fieldset + .vmhs-fieldset {
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--app-border);
}
.vmhs-public .app-card .vmhs-fieldset__legend {
  float: none;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--app-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.vmhs-public .app-card .vmhs-fieldset__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem; height: 1.5rem;
  border-radius: var(--app-radius-full);
  background: var(--app-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   TRACK / LIST / DETAIL SURFACES
═══════════════════════════════════════════════════════════════════ */
.vmhs-public .app-list-card,
.vmhs-public .vmhs-public-detail,
.vmhs-public .track-result-card {
  border-radius: var(--app-radius-xl);
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  box-shadow: var(--app-shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════════
   BOTTOM NAV POLISH
═══════════════════════════════════════════════════════════════════ */
.vmhs-public .app-bottom-nav a.is-active,
.vmhs-public .app-bottom-nav a[aria-current="page"] {
  color: var(--app-primary) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   GUEST DASHBOARD SURFACES
═══════════════════════════════════════════════════════════════════ */
.vmhs-public .guest-dash-hero {
  border-radius: var(--app-radius-2xl);
  box-shadow: var(--app-shadow-md);
}
.vmhs-public .guest-dash-sidebar {
  border-radius: var(--app-radius-xl);
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  box-shadow: var(--app-shadow-sm);
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════
   VIDEO JOIN FRAME
═══════════════════════════════════════════════════════════════════ */
.vmhs-public .vmhs-video-join-frame {
  width: 100%;
  min-height: 520px;
  border: 0;
  border-radius: var(--app-radius-xl);
  background: #0f172a;
  box-shadow: var(--app-shadow-md);
}

/* ═══════════════════════════════════════════════════════════════════
   NOTICE CARDS
═══════════════════════════════════════════════════════════════════ */
.vmhs-public .vmhs-public-notice-card {
  border-radius: var(--app-radius-xl);
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--app-shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════════
   FAQ ACCORDION
═══════════════════════════════════════════════════════════════════ */
.vmhs-public .vmhs-faq-accordion .accordion-item {
  border: 1.5px solid var(--app-border);
  border-radius: var(--app-radius-lg) !important;
  margin-bottom: 0.625rem;
  overflow: hidden;
  background: var(--app-surface);
}
.vmhs-public .vmhs-faq-accordion .accordion-button {
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: none !important;
  background: var(--app-surface);
  color: var(--app-text);
  border-radius: var(--app-radius-lg) !important;
}
.vmhs-public .vmhs-faq-accordion .accordion-button:not(.collapsed) {
  background: var(--app-primary-muted);
  color: var(--app-primary-strong);
  border-radius: var(--app-radius-lg) var(--app-radius-lg) 0 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   PURPOSE GUIDE CARDS
═══════════════════════════════════════════════════════════════════ */
.vmhs-public .guest-purpose-card {
  height: 100%;
  padding: 1.375rem 1.5rem;
  border-radius: var(--app-radius-xl);
  border: 1.5px solid var(--app-border);
  background: var(--app-surface);
  box-shadow: var(--app-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.vmhs-public .guest-purpose-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--app-shadow-md);
  border-color: rgba(183, 103, 15, 0.20);
}
.vmhs-public .guest-purpose-card--indigo { border-top: 3px solid var(--app-indigo, #6366f1); }
.vmhs-public .guest-purpose-card--amber  { border-top: 3px solid #d97706; }

/* ═══════════════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════════════ */
.vmhs-public .max-w-800 { max-width: 50rem; }
.vmhs-public .max-w-720 { max-width: 45rem; }
.vmhs-public .max-w-600 { max-width: 37.5rem; }

@keyframes vmhs-rise {
  from { opacity: 0; transform: translateY(0.75rem); }
  to   { opacity: 1; transform: translateY(0); }
}
