/* The two accent colours are variables so the staff dashboard can change them at
   runtime — config.js overwrites these on :root after fetching the branding. */
:root {
  --accent: #22c55e;
  --accent-dark: #16a34a;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #0a0f1e;
  color: #f1f5f9;
  min-height: 100vh;
}

/* Animated gradient background */
.animated-gradient {
  background: linear-gradient(-45deg, #0f172a, #14532d, #0f172a, #166534);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
  .section-container {
    padding: 6rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  .section-container {
    padding: 6rem 2rem;
  }
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #f1f5f9;
  font-size: 1.25rem;
  font-weight: bold;
  transition: all 0.3s;
}

.logo svg {
  color: var(--accent);
  transition: transform 0.3s;
}

.logo:hover svg {
  transform: scale(1.1);
}

nav {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  nav {
    display: flex;
  }
}

nav a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

nav a:hover {
  color: #f1f5f9;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu {
  display: flex;
  gap: 1rem;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

/* Main Content */
main {
  padding-top: 64px;
  min-height: calc(100vh - 64px);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(to right, #4ade80, var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Text glow */
.text-glow {
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.5), 0 0 40px rgba(34, 197, 94, 0.3);
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.5s;
  cursor: pointer;
}

.card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.15);
}

.card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s;
}

.card:hover .card-icon {
  background: rgba(34, 197, 94, 0.3);
  transform: scale(1.1);
}

.card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #f1f5f9;
}

.card p {
  color: #94a3b8;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card-arrow {
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.3s;
}

.card:hover .card-arrow {
  transform: translateX(8px);
}

/* Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Form */
.form-container {
  max-width: 42rem;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.form-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(to bottom right, var(--accent-dark), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

.form-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .form-header h1 {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .form-header h1 {
    font-size: 3.5rem;
  }
}

.form-header p {
  color: #94a3b8;
  font-size: 1.125rem;
}

form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

label svg {
  width: 16px;
  height: 16px;
}

input, select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: #f1f5f9;
  font-size: 1rem;
  transition: all 0.3s;
}

input:hover, select:hover {
  background: rgba(255, 255, 255, 0.1);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

input::placeholder {
  color: #64748b;
}

select {
  cursor: pointer;
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #1e293b;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, var(--accent-dark), var(--accent));
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  text-decoration: none;
}

.btn:hover {
  background: linear-gradient(to right, #15803d, var(--accent-dark));
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Alert */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.alert-info {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.alert-warning {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  color: #fde047;
}

.hidden {
  display: none !important;
}

/* Loading */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-2px);
}

.info-card svg {
  color: var(--accent);
  margin: 0 auto 0.5rem;
}

.info-card p {
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Footer */
footer {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  margin-top: 5rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 0 4rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

.hero p {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 48rem;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* Animations */
.float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.8), 0 0 30px rgba(34, 197, 94, 0.4);
  }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Hover effects */
.hover-lift {
  transition: all 0.3s;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.15);
}

.hover-scale {
  transition: transform 0.3s;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
}

.bg-glow {
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.3), 0 0 80px rgba(34, 197, 94, 0.1);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  form {
    padding: 1.5rem;
  }
}
