/* Keep styles local to this page to avoid collisions */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 640px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
}
.faq-grid .card {
  grid-column: span 4;
}
@media (max-width: 900px) {
  .faq-grid .card { grid-column: span 6; }
}
@media (max-width: 640px) {
  .faq-grid .card { grid-column: span 2; }
}

.card.svc-card {
  cursor: pointer;
  transition: box-shadow .15s ease, transform .05s ease;
}
.card.svc-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.card.svc-card:active { transform: translateY(1px); }
.card.svc-card h3 { margin-bottom: .35rem; }
.card.svc-card .muted { color: #6b7280; }
.card.svc-card .small { font-size: .85rem; }

/* Chips (category pills) */
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip {
  border:1px solid #e5e7eb; background:#fff; border-radius:999px;
  padding:.35rem .75rem; font-size:.95rem; line-height:1.2; cursor:pointer;
}
.chip.active { background:#eef2ff; border-color:#6366f1; color:#1f2937; }

/* Mission finder layout */
.mission-finder { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.mf-label { min-width: 140px; color:#374151; }
.mf-select { min-width: 260px; }
.mf-result { flex:1; color:#374151; }
.mf-cta { white-space:nowrap; }

/* Modal */
.modal { position:fixed; inset:0; display:none; }
.modal.open { display:block; }
.modal-backdrop {
  position:absolute; inset:0; background:rgba(0,0,0,.35);
}

/* Updated styles for vertical scroll */
.modal-dialog {
  position: relative;
  margin: 5vh auto;
  background: #fff;
  max-width: 920px;
  width: 92%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  padding: 14px 18px 18px;
  
  display: flex; 
  flex-direction: column; 
  max-height: 90vh; 
  overflow: hidden; 
}
.modal-header { padding:6px 2px 10px; border-bottom:1px solid #e5e7eb; }
.modal-footer { padding-top:12px; border-top:1px solid #e5e7eb; display:flex; justify-content:flex-end; }
.modal-close {
  position:absolute; top:8px; right:10px; border:none; background:transparent; border-radius:12px;
  width:36px; height:36px; cursor:pointer; font-size:1.5rem;
  color: var(--slate);
  transition: all .2s ease-in-out;
}
.modal-close:hover {
  transform: scale(1.2);
  color: var(--navy);
}

/* Tabs */
.tabs { padding-top:10px; display: flex; flex-direction: column; flex-grow: 1; overflow: hidden; }
.tablist { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.tab {
  border:1px solid #e5e7eb; background:#fff; border-radius:10px; padding:.35rem .7rem; cursor:pointer;
}
.tab.active { background:#eef2ff; border-color:#6366f1; }
.tabpanel { 
  padding:6px 2px;
  overflow-y: auto; 
  flex-grow: 1; 
}
.tabpanel.hidden { display:none; }
.muted { color:#6b7280; }
.small { font-size:.9rem; }

/* New styles for mission finder details */
.mission-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.mission-details .detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mission-details .detail-item a {
  text-decoration: none;
  color: inherit;
}

.mission-details .detail-item a:hover {
  text-decoration: underline;
}

.mission-details .feather-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  fill: none;
}

.mission-details .icon-pin {
  color: var(--red);
  stroke: var(--red);
}

.mission-details .icon-phone {
  color: var(--blue);
  stroke: var(--blue);
}

.mission-details .icon-email {
  color: var(--gold);
  stroke: var(--gold);
}

.mission-details .icon-web {
  color: var(--slate);
  stroke: var(--slate);
}

/* New modal button styling */
.btn-modern {
  background: linear-gradient(145deg, var(--blue), #0036a4);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 43, 127, 0.2);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 43, 127, 0.3);
}
.btn-modern.disabled {
  opacity: 0.6;
  pointer-events: none;
}
