@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #040914;
  --bg-card: rgba(8, 20, 37, 0.82);
  --border-card: rgba(255, 255, 255, 0.08);
  --accent-orange: #FF5722;
  --accent-orange-hover: #F4511E;
  --accent-cyan: #38bdf8;
  --text-muted: #94a3b8;
}

body {
  background-color: var(--bg-dark);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(14, 43, 77, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 10% 25%, rgba(10, 30, 56, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(14, 40, 72, 0.3) 0%, transparent 55%);
}

.font-serif-display {
  font-family: 'Instrument Serif', Georgia, serif;
}

.font-sans-body {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* Glassmorphism Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-card);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-card-hover {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.1);
}

.glass-pill {
  background: rgba(14, 30, 52, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}

.glass-pill:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(18, 38, 66, 0.8);
}

/* Form Inputs */
.a2z-input {
  background: rgba(10, 24, 44, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transition: all 0.2s ease;
}

.a2z-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
  background: rgba(14, 32, 60, 0.95);
}

.a2z-input::placeholder {
  color: #475569;
}

/* Orange CTA Button */
.btn-orange-active {
  background: linear-gradient(180deg, #FF5C28 0%, #F44914 100%);
  box-shadow: 0 4px 25px rgba(255, 87, 34, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff !important;
  cursor: pointer !important;
}

.btn-orange-active:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 87, 34, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-orange-muted {
  background: rgba(120, 48, 28, 0.85);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.25s ease;
}

/* Neon Glow Accents */
.cyan-glow-line {
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  height: 2px;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.85);
}

.orange-glow-line {
  background: linear-gradient(90deg, transparent, #FF5722, transparent);
  height: 2px;
  box-shadow: 0 0 14px rgba(255, 87, 34, 0.85);
}

/* Animated Subtle Pulse */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.88; transform: scale(1.015); }
}

.animate-pulse-subtle {
  animation: pulse-subtle 4s ease-in-out infinite;
}

/* Form Validation States */
.a2z-input.is-invalid {
  border-color: rgba(244, 63, 94, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.22) !important;
  background: rgba(30, 11, 20, 0.9) !important;
}

.a2z-input.is-valid {
  border-color: rgba(52, 211, 153, 0.5);
}

.field-error-msg {
  animation: fieldSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fieldSlideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Banner Alert */
.form-alert-banner {
  animation: alertFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes alertFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Toast Notifications */
.toast-item {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  padding: 12px 16px;
  border-radius: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-item.toast-show {
  transform: translateY(0);
  opacity: 1;
}

.toast-item.toast-hide {
  transform: translateY(-10px);
  opacity: 0;
}

.toast-success {
  background: rgba(6, 32, 24, 0.95);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
}

.toast-error {
  background: rgba(45, 12, 18, 0.95);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fecdd3;
}

.toast-info {
  background: rgba(8, 28, 48, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
}

/* Modal Backdrop & Animation */
.modal-backdrop {
  background: rgba(2, 6, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.25s ease;
}

.modal-content-panel {
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* FAQ Accordion Styling */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-content {
  max-height: 250px;
  opacity: 1;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: #FF5722;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(10, 24, 44, 0.4);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.6);
}
