:root {
  --primary: #2d6a4f;
  --primary-hover: #1b4332;
  --secondary: #d8f3dc;
  --accent: #52b788;
  --bg: #f4f8f5;
  --text-main: #1f2937;
  --text-light: #4b5563;
  --border: #d1d5db;
  --error: #ef4444;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}
.relative { position: relative; }

/* Site Header */
.site-header {
  background: #fff;
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 20;
}
.site-header img {
  max-height: 82px;
  width: auto;
}

/* Status Screen */
#status-message {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.status-content h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.status-content p {
  font-size: 1.25rem;
  color: var(--text-light);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.2;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('https://vancouveraudubon.org/wp-content/uploads/2026/10/FoxSparrowFall.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(31, 41, 55, 0.4), rgba(31, 41, 55, 0.8));
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  color: #fff;
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background-color: rgba(216, 243, 220, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(216, 243, 220, 0.4);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}
.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-content p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* Layout */
.form-section {
  padding: 4rem 1.5rem;
  margin-top: -4rem;
  position: relative;
  z-index: 10;
}
.container {
  max-width: 800px;
  margin: 0 auto;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 3rem 2.5rem;
}
@media (max-width: 640px) {
  .card { padding: 2rem 1.5rem; }
}

.text-center { text-align: center; }
.mt-4 { margin-top: 3rem; }

/* Forms */
.form-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--bg);
  padding-bottom: 1rem;
}
.form-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.form-header p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 1.5rem;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-size: 0.9rem;
}
.required { color: var(--error); }

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: #fff;
  transition: all 0.2s;
}
input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}
input.invalid {
  border-color: var(--error);
  background-color: #fef2f2;
}

/* Checkbox Group */
.checkbox-group {
  background-color: var(--bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.checkbox-group.invalid {
  border-color: var(--error);
  background-color: #fef2f2;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  margin: 0;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--primary);
  cursor: pointer;
}
.checkbox-label span {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
}

/* Photo Blocks */
.photo-block {
  background-color: var(--bg);
  border: 1px solid rgba(45, 106, 79, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s;
}
.photo-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.photo-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.photo-block h3 {
  font-size: 1.125rem;
  color: var(--primary);
  margin: 0;
}
.required-badge {
  background-color: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #fff;
  border: 2px dashed var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-light);
  gap: 0.75rem;
}
.file-label:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(45, 106, 79, 0.02);
}
/* Visually hide input but keep focusable/validatable */
.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.photo-input:focus + .file-label {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.file-name {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.file-name::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* Button */
.btn-primary {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background-color: var(--primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Error/Success */
.error-box {
  background-color: #fef2f2;
  border-left: 4px solid var(--error);
  color: #991b1b;
  padding: 1rem;
  margin-top: 1.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

#thank-you-view {
  padding: 4rem 2rem;
}
#thank-you-view h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
#thank-you-view p {
  font-size: 1.125rem;
  color: var(--text-light);
}

#wbx-powered-by-slot {
  margin: 2rem auto;
}
