/* ------------------------------------------------------------------
 * Self-hosted Inter + Outfit. Files live in ./media/fonts/ and are
 * downloaded by `python download_fonts.py`. If the files are missing
 * the browser falls back to the system stack defined in body{} below;
 * the site still renders correctly without remote fonts.
 * ------------------------------------------------------------------ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('./media/fonts/Inter-VariableFont.woff2') format('woff2-variations'),
       url('./media/fonts/Inter-VariableFont.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./media/fonts/Outfit-VariableFont.woff2') format('woff2-variations'),
       url('./media/fonts/Outfit-VariableFont.woff2') format('woff2');
}

:root {
  --primary: #0B1B3D;       /* Philadelphia Police Deep Navy */
  --primary-light: #142E63;
  --primary-dark: #060E21;
  --secondary: #D4AF37;     /* Prestige Gold Accent */
  --secondary-glow: #F3C623;
  --accent-blue: #1C82FF;
  --bg-main: #FAFAFA;
  --bg-dark: #070F21;
  
  --text-dark: #1E293B;
  --text-light: #FFFFFF;
  --text-muted: #64748B;
  
  --glass-bg: rgba(11, 27, 61, 0.85);
  --glass-border: rgba(212, 175, 55, 0.2);
  --glass-border-hover: rgba(212, 175, 55, 0.5);
  --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-heading: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  --max-width: 1200px;
}

/* Base resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
  border: 2px solid var(--primary-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-glow);
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gold {
  color: var(--secondary);
}

.bg-navy {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, #A68015 100%);
  color: var(--primary-dark);
  border: 1px solid var(--secondary);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--secondary-glow) 0%, var(--secondary) 100%);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--text-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary-glow);
  border-color: var(--secondary-glow);
}

.btn-outline-gold {
  background: transparent;
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
  transform: translateY(-1px);
}

/* Sticky Header Navigation */
header.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

header.main-header.scrolled {
  padding: 0.4rem 0;
  background: rgba(6, 14, 33, 0.95);
  box-shadow: var(--glass-shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--text-light);
}

.logo-badges-container {
  display: flex;
  align-items: center;
  position: relative;
  width: 72px;
  height: 48px;
  margin-right: 0.1rem;
  flex-shrink: 0;
}

.logo-badge-left {
  width: 44px;
  height: 44px;
  object-fit: contain;
  position: absolute;
  left: 0;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: var(--transition-smooth);
}

.logo-badge-right {
  width: 46px;
  height: 46px;
  object-fit: contain;
  position: absolute;
  left: 26px;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: var(--transition-smooth);
}

/* Micro-animations on hover */
.logo-wrapper:hover .logo-badge-left {
  transform: translateX(-5px) rotate(-12deg) scale(1.08);
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.6));
}

.logo-wrapper:hover .logo-badge-right {
  transform: translateX(5px) rotate(12deg) scale(1.08);
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.6));
}

.logo-text h2 {
  font-size: 1.05rem;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

.logo-text p {
  font-size: 0.65rem;
  color: var(--secondary);
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

nav.main-nav ul li a {
  color: var(--text-light);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

nav.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

nav.main-nav ul li a:hover {
  color: var(--secondary-glow);
}

nav.main-nav ul li a:hover::after,
nav.main-nav ul li.active a::after {
  width: 70%;
}

nav.main-nav ul li.active a {
  color: var(--secondary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--primary-dark);
  overflow: hidden;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(6, 14, 33, 0.95) 30%, rgba(6, 14, 33, 0.4) 100%);
  z-index: 2;
}

.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
  color: var(--text-light);
  animation: fadeInUp 0.8s ease-out;
}

.badge-recruiting {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--secondary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  color: var(--secondary-glow);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

/*
  Banner FOUC guard. The HTML ships the badge with data-pending="1" so the
  static fallback text never paints; app.js removes the attribute after it
  has written the authoritative banner text from api/site_settings.php.
  visibility:hidden (not display:none) preserves the layout box so the hero
  doesn't reflow when the badge becomes visible ~100ms later.
*/
.badge-recruiting[data-pending] {
  visibility: hidden;
}

.badge-recruiting:hover {
  background: rgba(212, 175, 55, 0.28);
  border-color: var(--secondary-glow);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.badge-recruiting:focus-visible {
  outline: 2px solid var(--secondary-glow);
  outline-offset: 3px;
}

.badge-recruiting .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Philosophy Section Banner */
.philosophy-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 2.5rem 0;
  border-bottom: 3px solid var(--secondary);
  color: var(--text-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 10;
}

.philosophy-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.philosophy-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  color: var(--secondary-glow);
  max-width: 900px;
}

/* Generic Section Styling */
.section {
  padding: 6rem 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.8rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

/* About / Mission Cards */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mission-panel {
  background: var(--text-light);
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-left: 6px solid var(--primary);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mission-panel h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.mission-panel p {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.value-card {
  background: var(--text-light);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
}

.value-icon {
  width: 45px;
  height: 45px;
  background: rgba(11, 27, 61, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.value-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.value-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Eligibility Requirements Section */
.eligibility-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.eligibility-card-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.elig-item {
  display: flex;
  background: var(--text-light);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  gap: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition-fast);
}

.elig-item:hover {
  transform: translateX(5px);
  border-color: var(--secondary);
}

.elig-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
}

.elig-info h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.elig-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.eligibility-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-md);
  padding: 3rem;
  color: var(--text-light);
  border: 1.5px solid var(--secondary);
  box-shadow: var(--glass-shadow);
  text-align: center;
}

.eligibility-cta svg {
  width: 60px;
  height: 60px;
  fill: var(--secondary);
  margin-bottom: 1.5rem;
}

.eligibility-cta h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.eligibility-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Training Section */
.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.training-card {
  background: var(--text-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.training-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary);
}

.training-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.training-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.training-card:hover .training-img-wrapper img {
  transform: scale(1.05);
}

.training-tag {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--primary);
  color: var(--secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  border: 1px solid var(--secondary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.training-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.training-body h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.training-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Benefits Showcase Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.benefit-item {
  display: flex;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 2.2rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.benefit-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--secondary);
  transform: translateY(-3px);
}

.benefit-icon {
  width: 55px;
  height: 55px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--secondary-glow);
}

.benefit-info h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.benefit-info p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Application Page / Dynamic wizard styles */
.apply-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.apply-downloads {
  background: var(--text-light);
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1.5px solid rgba(0, 0, 0, 0.04);
}

.apply-downloads h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.apply-downloads p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-link {
  display: flex;
  align-items: center;
  padding: 1.2rem;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
  gap: 1rem;
}

.download-link:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--secondary);
  transform: translateX(4px);
}

.download-link svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.download-link span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.2rem;
}

/* Form Wizard Styling */
.wizard-box {
  background: var(--text-light);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.wizard-header {
  background: var(--primary);
  padding: 2.2rem;
  color: var(--text-light);
  position: relative;
}

.wizard-header h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.wizard-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.wizard-steps-indicator {
  display: flex;
  background: var(--primary-light);
  padding: 0.8rem 2.2rem;
  gap: 1rem;
  border-bottom: 1.5px solid var(--secondary);
}

.step-indicator {
  flex-grow: 1;
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  gap: 0.5rem;
  position: relative;
}

.step-indicator.active {
  color: var(--secondary-glow);
}

.step-indicator.completed {
  color: var(--text-light);
}

.step-number {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.step-indicator.completed .step-number {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary-dark);
}

.wizard-body {
  padding: 2.5rem;
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.form-step.active {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #E2E8F0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 27, 61, 0.08);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.checkbox-group input {
  margin-top: 0.3rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 2.5rem 2.5rem 2.5rem;
  border-top: 1.5px solid #F1F5F9;
}

/* Custom Checkbox/Alert Box */
.alert-box {
  background: #EFF6FF;
  border-left: 4px solid var(--accent-blue);
  padding: 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: #1E3A8A;
  margin-bottom: 1.5rem;
}

.success-message {
  text-align: center;
  padding: 3rem 1rem;
}

.success-icon {
  width: 70px;
  height: 70px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  border: 2px solid #10B981;
}

.success-icon svg {
  width: 35px;
  height: 35px;
  fill: #10B981;
}

/* Contact Details & Styled Mock Map */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: stretch;
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-block {
  display: flex;
  gap: 1.5rem;
  background: var(--text-light);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-badge {
  width: 50px;
  height: 50px;
  background: rgba(11, 27, 61, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-badge svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.contact-details h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.contact-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  border: 4px solid var(--text-light);
  position: relative;
  min-height: 400px;
  background: #E5E9F0;
}

/* Styled HTML/CSS map overlay to represent 8501 State Road */
.map-canvas {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: radial-gradient(circle at center, #E5E9F0 40%, #D8DEE9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

.map-river {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 50%;
  background: linear-gradient(135deg, #A8D1E7 0%, #76A5D1 100%);
  border-radius: 50% 0 0 0;
  opacity: 0.8;
}

.map-river::after {
  content: 'Delaware River';
  position: absolute;
  bottom: 2rem;
  right: 4rem;
  color: #1D4ED8;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-10deg);
}

.map-road-state {
  position: absolute;
  width: 150%;
  height: 40px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  top: 40%;
  left: -25%;
  transform: rotate(-25deg);
  display: flex;
  align-items: center;
  padding-left: 20%;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.map-road-pennypack {
  position: absolute;
  width: 40px;
  height: 120%;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  left: 30%;
  top: -10%;
  transform: rotate(15deg);
}

.map-pin {
  position: absolute;
  top: 38%;
  left: 45%;
  transform: translate(-50%, -100%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.pin-shadow {
  width: 18px;
  height: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  margin-top: -2px;
  animation: pinBounceShadow 2s infinite ease-in-out;
}

.pin-icon {
  background: var(--primary);
  border: 2.5px solid var(--secondary);
  width: 46px;
  height: 46px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  animation: pinBounce 2s infinite ease-in-out;
}

.pin-icon svg {
  transform: rotate(45deg);
  width: 20px;
  height: 20px;
  fill: var(--secondary-glow);
}

.map-tooltip {
  position: absolute;
  background: var(--primary-dark);
  color: var(--text-light);
  border: 1.5px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 1rem 1.4rem;
  font-size: 0.85rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  top: 15%;
  left: 48%;
  z-index: 20;
  pointer-events: none;
  min-width: 250px;
}

.map-tooltip h4 {
  color: var(--secondary-glow);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.map-tooltip p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

/* Footer layout styling */
footer.main-footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 5rem 0 2rem 0;
  border-top: 1.5px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-glow);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2.5px;
  background-color: var(--secondary);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-logo svg {
  width: 32px;
  height: 32px;
  fill: var(--secondary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--secondary-glow);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Admin Panel Styles */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 33, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.admin-login-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.admin-login-card {
  background: var(--text-light);
  border-radius: var(--radius-md);
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--glass-shadow);
  border: 1.5px solid var(--secondary);
  text-align: center;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.admin-login-overlay.active .admin-login-card {
  transform: scale(1);
}

.admin-login-card h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.admin-login-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.admin-login-card .form-group {
  text-align: left;
  margin-bottom: 1.5rem;
}

.admin-login-card .btn {
  width: 100%;
}

.admin-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
  cursor: pointer;
  text-decoration: underline;
}

.admin-close-btn:hover {
  color: var(--primary);
}

/* ----------------------------------------------------------------------
   ACP Modal Dialog (acpModal.alert / .confirm / .prompt)
   ----------------------------------------------------------------------
   Replacement for the native window.alert / confirm / prompt calls inside
   the admin console. The DOM is built once at startup by app.js, reused
   for every call, and visibility is toggled via the .active class.

   Tones (data-tone on the icon element):
     info     - blue, default
     success  - green
     warn     - amber
     danger   - red (also flips the OK button red via .acp-modal-danger)
---------------------------------------------------------------------- */

.acp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 33, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2500; /* above admin-login-overlay so an alert can sit on top */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.acp-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.acp-modal-card {
  background: var(--text-light);
  border-radius: var(--radius-md);
  padding: 2rem 2.25rem 1.75rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--glass-shadow);
  border: 1.5px solid var(--secondary);
  text-align: center;
  transform: scale(0.92);
  transition: var(--transition-smooth);
}

.acp-modal-overlay.active .acp-modal-card {
  transform: scale(1);
}

.acp-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
}

.acp-modal-icon[data-tone="info"]    { background: rgba(20, 89, 196, 0.12); color: #1459C4; }
.acp-modal-icon[data-tone="success"] { background: rgba(16, 185, 129, 0.15); color: #047857; }
.acp-modal-icon[data-tone="warn"]    { background: rgba(212, 175, 55, 0.18); color: #8E6D17; }
.acp-modal-icon[data-tone="danger"]  { background: rgba(239, 68, 68, 0.15);  color: #B91C1C; }

.acp-modal-title {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
}

.acp-modal-message {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 1.25rem;
  white-space: pre-line; /* honor explicit \n in messages */
}

.acp-modal-input-wrap {
  margin: 0 0 1.25rem;
}

.acp-modal-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--secondary);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--primary-dark);
  box-sizing: border-box;
}

.acp-modal-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 89, 196, 0.15);
}

.acp-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.acp-modal-actions .btn {
  min-width: 110px;
  padding: 0.65rem 1.4rem;
}

/* Danger-styled OK button (e.g. "Delete all") — red gradient that still
   reads as a primary action but signals destructiveness. */
.acp-modal-actions .btn.acp-modal-danger {
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  color: #fff;
  border-color: #B91C1C;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.acp-modal-actions .btn.acp-modal-danger:hover {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Admin Dashboard Layout */
.admin-view-section {
  display: none;
}

.admin-view-section.active {
  display: block;
}

.admin-tabs {
  display: flex;
  background: var(--bg-main);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  gap: 0.35rem;
  flex-wrap: wrap;
}

.admin-tab-btn {
  flex: 1 1 110px;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  letter-spacing: 0.02em;
}

.admin-tab-btn:hover {
  color: var(--primary);
  background: rgba(11, 27, 61, 0.04);
}

.admin-tab-btn.active {
  background: var(--primary);
  color: var(--secondary-glow);
}

.admin-tab-btn.active:hover {
  background: var(--primary);
}

.admin-panel-content {
  display: none;
}

.admin-panel-content.active {
  display: block;
}

/* Image Manager Cards */
.admin-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.admin-image-card {
  background: var(--text-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.admin-image-preview {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #F1F5F9;
}

.admin-image-info {
  padding: 1.5rem;
}

.admin-image-info h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.admin-image-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.admin-image-controls {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  border: 1.5px dashed rgba(11,27,61,0.25);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
}

.file-upload-label:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: var(--secondary);
}

.file-upload-input {
  display: none;
}

.url-input-group {
  display: flex;
  gap: 0.5rem;
}

.url-input-group input {
  flex-grow: 1;
  padding: 0.5rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.url-input-group button {
  padding: 0.5rem 1rem;
  border: none;
  background: var(--primary);
  color: var(--text-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Admin Dashboard Table */
.admin-table-container {
  background: var(--text-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.admin-table-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #F1F5F9;
}

.admin-table-actions h3 {
  color: var(--primary);
  font-size: 1.3rem;
}

.admin-apps-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-apps-table th {
  background: #F8FAFC;
  padding: 1.2rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
  border-bottom: 1.5px solid #E2E8F0;
}

.admin-apps-table td {
  padding: 1.2rem 2rem;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.9rem;
}

.admin-apps-table tr:hover td {
  background: #FAF8F2;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: #FEF3C7;
  color: #D97706;
}

.status-scheduled {
  background: #DBEAFE;
  color: #2563EB;
}

.status-approved {
  background: #D1FAE5;
  color: #059669;
}

.admin-select-status {
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid #CBD5E1;
  font-size: 0.8rem;
  background: #FFFFFF;
}

.admin-empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}

.admin-empty-state svg {
  width: 60px;
  height: 60px;
  fill: #CBD5E1;
  margin-bottom: 1.5rem;
}

/* =========================================================================
   ACP layout primitives
   Reusable building blocks for the admin console. The goal is to replace
   the repetitive inline-styled card blocks with a small, predictable set
   of classes so all panels share the same visual rhythm.
   ========================================================================= */

/* Compact header bar (replaces .admin-header-bar usage inside admin view) */
.acp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 1.2rem 2rem;
  color: var(--text-light);
  border-bottom: 2px solid var(--secondary);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.acp-header-text h2 {
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: 0.01em;
}

.acp-header-text .acp-subtitle {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.15rem 0 0 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.acp-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.acp-header-actions .btn {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

/* Server / local mode pill */
.acp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.acp-badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.acp-badge-server {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.55);
}

.acp-badge-local {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.55);
}

/* Cards: one consistent surface for every settings block */
.acp-card {
  background: var(--text-light);
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  margin-bottom: 1.5rem;
}

.acp-card:last-child {
  margin-bottom: 0;
}

.acp-card-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}

.acp-card-title h3 {
  color: var(--primary);
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: 0.01em;
}

.acp-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 1.2rem 0;
  line-height: 1.55;
  max-width: 65ch;
}

/* Soft divider between subsections inside a single card */
.acp-divider {
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin: 1.5rem 0;
}

/* Subsection header inside a card */
.acp-subhead {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.7rem 0;
}

/* Visitor analytics stat cards (ACP Visitors tab) */
.visitor-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.visitor-stat-card {
  background: var(--bg-main);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.visitor-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.visitor-stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

/* "Danger zone" variant (Reset, Purge) */
.acp-card-danger {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.02);
}

.acp-card-danger .acp-card-title h3 {
  color: #B91C1C;
}

/* Dark code/URL preview block */
.acp-url-preview {
  padding: 0.75rem 1rem;
  background: #0E1626;
  border-radius: var(--radius-sm);
  border: 1px solid #1E293B;
}

.acp-url-preview label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.3rem;
}

.acp-url-preview code {
  color: #34D399;
  font-size: 0.85rem;
  font-weight: 600;
  word-break: break-all;
}

/* SMTP / mailer log console */
.acp-log-console {
  font-family: var(--font-mono, "SFMono-Regular", Menlo, monospace);
  font-size: 0.78rem;
  background: #0E1626;
  color: #34D399;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  height: 110px;
  overflow-y: auto;
  border: 1px solid #1E293B;
  white-space: pre-line;
  line-height: 1.55;
}

/* Upload status row (Forms tab: shows file picker result + Clear button) */
.acp-upload-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  background: rgba(11, 27, 61, 0.04);
  border: 1px solid rgba(11, 27, 61, 0.08);
  color: var(--text-muted);
}

.acp-upload-status[data-tone="ok"] {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
  color: #047857;
}

.acp-upload-status[data-tone="error"] {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
  color: #B91C1C;
}

.acp-upload-status[data-tone="info"] {
  background: rgba(212, 175, 55, 0.10);
  border-color: rgba(212, 175, 55, 0.40);
  color: #92400E;
}

.acp-link-btn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.acp-link-btn:hover {
  opacity: 0.75;
}

/* Order cell + arrow buttons for the Active Forms table */
.acp-order-cell {
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  padding: 0.3rem 0.4rem;
}

.acp-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0 1px;
  padding: 0;
  border: 1px solid rgba(11, 27, 61, 0.2);
  background: white;
  color: var(--primary);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: background 120ms ease, transform 80ms ease;
}

.acp-order-btn:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--primary);
}

.acp-order-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.acp-order-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* "Restore" button in the Storage Maintenance orphan preview. Styled as a
 * small pill rather than a bare link so it reads clearly as an action and
 * doesn't disappear next to the filename it sits beside. */
.acp-restore-btn {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(11, 27, 61, 0.25);
  border-radius: 999px;
  background: white;
  color: var(--primary);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.acp-restore-btn:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--primary);
}

.acp-restore-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.acp-restore-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Helper for inline-row form layouts (label + input + adjacent button) */
.acp-row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.acp-row > input,
.acp-row > select {
  flex: 1 1 220px;
  min-width: 0;
}

.acp-row > .btn {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .acp-header {
    padding: 1rem 1.2rem;
    flex-direction: column;
    text-align: center;
  }
  .acp-header-actions {
    justify-content: center;
  }
  .acp-card {
    padding: 1.3rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes pinBounce {
  0%, 100% {
    transform: rotate(-45deg) translateY(0);
  }
  50% {
    transform: rotate(-45deg) translateY(-8px);
  }
}

@keyframes pinBounceShadow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.25;
  }
  50% {
    transform: scale(0.7);
    opacity: 0.1;
  }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .about-grid, .eligibility-layout, .apply-split, .contact-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .eligibility-cta {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  nav.main-nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--primary-dark);
    transition: var(--transition-smooth);
    padding: 3rem 2rem;
    box-shadow: var(--glass-shadow);
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  
  nav.main-nav.active {
    left: 0;
  }
  
  nav.main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  
  nav.main-nav ul li a {
    font-size: 1.2rem;
    width: 100%;
    display: block;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2.3rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .philosophy-text {
    font-size: 1.1rem;
  }
  
  .benefits-grid, .values-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-full {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .wizard-body {
    padding: 1.5rem;
  }
  .wizard-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
  }
  .wizard-steps-indicator {
    padding: 0.8rem 1rem;
  }
}

/* SPA Views Toggling */
.spa-view {
  display: none;
}

.spa-view.active {
  display: block;
}



/* Premium Photo Gallery Styling */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.gallery-card {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  border: 2px solid var(--glass-border);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: var(--secondary);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-image-wrapper img {
  transform: scale(1.08);
}

.gallery-card-content {
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(11,27,61,0.95) 0%, rgba(6,14,33,1) 100%);
  border-top: 1.5px solid var(--glass-border);
}

.gallery-card-content h4 {
  color: var(--secondary-glow);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.gallery-card-content p {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Tablet & Intermediate Desktop responsive scaling */
@media (max-width: 1100px) and (min-width: 769px) {
  nav.main-nav ul {
    gap: 0.8rem;
  }
  nav.main-nav ul li a {
    font-size: 0.82rem;
    padding: 0.4rem 0.6rem;
  }
  .logo-text h2 {
    font-size: 0.88rem;
  }
  .logo-text p {
    font-size: 0.58rem;
  }
}

/* Mobile responsive scaling to prevent long title overflow */
@media (max-width: 576px) {
  .logo-text h2 {
    font-size: 0.85rem;
  }
  .logo-text p {
    font-size: 0.55rem;
  }
  .logo-badges-container {
    width: 56px;
    height: 38px;
    margin-right: 0.05rem;
  }
  .logo-badge-left {
    width: 34px;
    height: 34px;
  }
  .logo-badge-right {
    width: 36px;
    height: 36px;
    left: 20px;
  }
}

@media (max-width: 380px) {
  .logo-text h2 {
    font-size: 0.72rem;
  }
  .logo-text p {
    font-size: 0.5rem;
  }
  .logo-badges-container {
    width: 46px;
    height: 32px;
    margin-right: 0;
  }
  .logo-badge-left {
    width: 28px;
    height: 28px;
  }
  .logo-badge-right {
    width: 30px;
    height: 30px;
    left: 16px;
  }
}

/* Snug up the Document Forms table inside the Forms tab to prevent right cut-off */
#admin-panel-forms .admin-apps-table th,
#admin-panel-forms .admin-apps-table td {
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
}

#admin-panel-forms .admin-apps-table td code {
  word-break: break-all;
  white-space: normal;
  display: inline-block;
  max-width: 250px;
}

#admin-panel-forms .admin-apps-table td button {
  padding: 0.4rem 0.8rem !important;
  font-size: 0.75rem !important;
}

#admin-panel-forms .admin-apps-table {
  min-width: 100%;
}
