:root {
  /* Brand Colors reflecting Bike NYC / TD Tour */
  --primary: #009944; /* Bike NYC Green */
  --primary-hover: #007a36;
  --secondary: #00205B; /* Bike NYC Navy */
  --secondary-hover: #00153d;
  --accent: #FFB81C; /* Warm Accent Yellow */
  --accent-light: #fff5db;
  
  /* Neutral Palette */
  --bg-color: #f0f4f8; /* Soft slate/blue background */
  --surface: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  
  /* Styling Utils */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 20, 60, 0.05), 0 2px 4px -2px rgba(0, 20, 60, 0.05);
  --shadow: 0 10px 25px -5px rgba(0, 20, 60, 0.08), 0 8px 10px -6px rgba(0, 20, 60, 0.05);
  --shadow-lg: 0 25px 50px -12px rgba(0, 20, 60, 0.15);
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

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

/* Background Decorative Shapes */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.6;
}
.shape-1 {
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: rgba(0, 153, 68, 0.15); /* Greenish glow */
}
.shape-2 {
  top: 30%;
  right: -150px;
  width: 600px;
  height: 600px;
  background: rgba(0, 32, 91, 0.12); /* Navy glow */
}

.hidden { display: none !important; }

/* Layout Containers */
.container { 
  max-width: 1150px; 
  margin: 0 auto; 
  padding: 0 24px; 
}

.main-content { 
  padding: 40px 24px 100px; 
}

.mt-4 { margin-top: 2rem; }

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

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-up {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

/* Hero Section (Side-by-side) */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 80px 24px 60px;
  /* Removed min-height: 80vh to improve embedding in dynamic iframes */
}

.hero-content {
  flex: 1;
  max-width: 540px;
}

.hero-image-container {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  animation: float 6s ease-in-out infinite;
}

.image-wrapper img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
  border: 6px solid var(--surface);
}

.floating-accent {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--surface);
  color: var(--secondary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 99px;
  box-shadow: var(--shadow);
  transform: rotate(-5deg);
  border: 2px solid var(--accent);
}

.badge { 
  display: inline-block; 
  padding: 6px 16px; 
  background: rgba(0, 32, 91, 0.08); 
  color: var(--secondary);
  border-radius: 99px; 
  font-size: 0.85rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  margin-bottom: 24px; 
}

.hero h1 { 
  font-family: var(--font-heading); 
  font-size: 3.5rem; 
  font-weight: 900; 
  line-height: 1.1; 
  margin-bottom: 24px; 
  color: var(--secondary);
  letter-spacing: -1px;
}

.text-gradient { 
  background: linear-gradient(135deg, var(--primary), #00c458); 
  -webkit-background-clip: text; 
  color: transparent; 
}

.hero p { 
  font-size: 1.15rem; 
  color: var(--text-muted); 
  margin-bottom: 40px; 
  line-height: 1.7; 
}

/* Timeline */
.timeline { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin: 0 0 40px 0; 
  background: var(--surface); 
  padding: 20px 24px; 
  border-radius: var(--radius); 
  box-shadow: var(--shadow-sm); 
  border: 1px solid var(--border);
}

.timeline-step { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
}

.step-dot { 
  width: 32px; 
  height: 32px; 
  border-radius: 50%; 
  background: var(--accent-light); 
  color: #b37e00; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: 800; 
  margin-bottom: 12px; 
  font-family: var(--font-heading); 
  font-size: 1rem; 
  border: 2px solid var(--accent);
}

.step-text { 
  font-size: 0.85rem; 
  line-height: 1.4; 
  color: var(--text-muted); 
}

.step-text strong { 
  display: block; 
  font-size: 0.95rem; 
  color: var(--text-main); 
  font-weight: 700;
}

.timeline-line { 
  flex: 1; 
  height: 2px; 
  background: var(--border); 
  margin: 0 15px 38px; 
}

/* Buttons */
.btn { 
  display: inline-block; 
  padding: 14px 28px; 
  font-size: 1rem; 
  font-weight: 600; 
  font-family: var(--font-body); 
  border: none; 
  border-radius: 99px; 
  cursor: pointer; 
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
  text-decoration: none; 
  text-align: center; 
}

.btn-primary { 
  background: var(--primary); 
  color: white; 
  box-shadow: 0 6px 16px rgba(0, 153, 68, 0.25); 
}

.btn-primary:hover { 
  background: var(--primary-hover); 
  transform: translateY(-3px); 
  box-shadow: 0 10px 24px rgba(0, 153, 68, 0.35); 
}

.btn-secondary { 
  background: var(--surface); 
  color: var(--secondary); 
  box-shadow: var(--shadow-sm); 
  border: 1px solid var(--border); 
}

.btn-secondary:hover { 
  background: #f8fafc; 
  transform: translateY(-3px); 
  box-shadow: var(--shadow); 
  border-color: #cbd5e1;
}

.btn:disabled { 
  opacity: 0.65; 
  cursor: not-allowed; 
  transform: none !important; 
  box-shadow: none !important;
}

.full-width { width: 100%; }
.btn-large { padding: 16px 32px; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 16px; }

/* Status Banner */
.status-banner { 
  background: #fee2e2; 
  color: #991b1b; 
  padding: 16px 24px; 
  border-radius: var(--radius-sm); 
  text-align: center; 
  margin-bottom: 40px; 
  font-weight: 600; 
  border: 1px solid #fca5a5; 
}

/* Sections */
.section-card { 
  background: var(--surface); 
  border-radius: var(--radius-lg); 
  padding: 48px; 
  box-shadow: var(--shadow); 
  max-width: 700px; 
  margin: 0 auto; 
  border: 1px solid rgba(255,255,255,0.6); 
  position: relative;
  overflow: hidden;
}

.section-header { text-align: center; margin-bottom: 36px; }
.section-card h2 { 
  font-family: var(--font-heading); 
  font-size: 2.2rem; 
  color: var(--secondary); 
  margin-bottom: 12px; 
  letter-spacing: -0.5px;
}

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

/* Forms */
.custom-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-row { display: flex; gap: 20px; }
.half { flex: 1; }

label { 
  font-size: 0.95rem; 
  font-weight: 600; 
  color: var(--secondary); 
}

input[type="text"], input[type="email"], input[type="tel"] { 
  padding: 16px; 
  border: 2px solid var(--border); 
  border-radius: var(--radius-sm); 
  font-family: var(--font-body); 
  font-size: 1rem; 
  transition: all 0.3s; 
  background: #f8fafc; 
  color: var(--text-main);
}
input::placeholder { color: #94a3b8; }
input:focus { 
  border-color: var(--primary); 
  outline: none; 
  box-shadow: 0 0 0 4px rgba(0, 153, 68, 0.15); 
  background: var(--surface); 
}

.file-upload { position: relative; }
.file-label { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  padding: 40px 24px; 
  border: 2px dashed #cbd5e1; 
  border-radius: var(--radius-sm); 
  cursor: pointer; 
  text-align: center; 
  color: var(--text-muted); 
  background: #f8fafc; 
  transition: all 0.3s; 
}
.file-label:hover { 
  border-color: var(--primary); 
  background: #f0fdf4; 
  color: var(--primary-hover); 
}
.file-icon { font-size: 2.5rem; margin-bottom: 12px; }
.file-name-text { font-weight: 500; font-size: 1.05rem; }
input[type="file"] { 
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; 
}

.checkbox-group label { 
  display: flex; 
  align-items: flex-start; 
  gap: 14px; 
  font-weight: 400; 
  font-size: 0.95rem; 
  cursor: pointer; 
  color: var(--text-muted); 
  line-height: 1.5; 
}
.checkbox-group input[type="checkbox"] { 
  margin-top: 4px; 
  width: 20px; 
  height: 20px; 
  accent-color: var(--primary); 
  cursor: pointer; 
}

/* Gallery Section */
.section-gallery { max-width: 100%; margin: 0 auto; }
.gallery-header { 
  display: flex; justify-content: space-between; align-items: flex-end; 
  margin-bottom: 36px; 
}
.gallery-header h2 { 
  font-family: var(--font-heading); 
  font-size: 2.5rem; 
  color: var(--secondary); 
  letter-spacing: -1px;
}

.gallery-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
  gap: 32px; 
  margin-bottom: 48px; 
}

.gallery-card { 
  background: var(--surface); 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow-sm); 
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
  display: flex; 
  flex-direction: column; 
  border: 1px solid var(--border); 
}
.gallery-card:hover { 
  transform: translateY(-10px); 
  box-shadow: var(--shadow-lg); 
}

.gallery-img-wrap { 
  aspect-ratio: 1; 
  overflow: hidden; 
  background: #e2e8f0; 
  position: relative; 
}
.gallery-img-wrap img { 
  width: 100%; height: 100%; 
  object-fit: cover; 
  transition: transform 0.6s ease; 
}
.gallery-card:hover .gallery-img-wrap img { transform: scale(1.05); }

.gallery-info { 
  padding: 24px; 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
}
.gallery-caption { 
  font-weight: 700; 
  font-size: 1.25rem; 
  margin-bottom: 8px; 
  color: var(--text-main); 
  font-family: var(--font-heading); 
  line-height: 1.3; 
}
.gallery-author { 
  font-size: 0.95rem; 
  color: var(--text-muted); 
  margin-bottom: 24px; 
}

.gallery-meta { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-top: auto; 
  padding-top: 20px; 
  border-top: 1px solid var(--border); 
}
.vote-count { 
  font-weight: 800; 
  color: var(--secondary); 
  font-size: 1.1rem; 
}

.btn-vote { 
  background: var(--surface); 
  border: 2px solid var(--primary); 
  color: var(--primary); 
  padding: 10px 24px; 
  border-radius: 99px; 
  font-size: 0.95rem; 
  font-weight: 700; 
  cursor: pointer; 
  transition: all 0.3s; 
  font-family: var(--font-body); 
}
.btn-vote:hover { 
  background: var(--primary); 
  color: white; 
  box-shadow: 0 4px 12px rgba(0, 153, 68, 0.2);
}
.btn-vote.voted { 
  background: #f1f5f9; 
  border-color: #cbd5e1; 
  color: #94a3b8; 
  cursor: default; 
  box-shadow: none;
}
.btn-vote.voted:hover { background: #f1f5f9; }

.load-more-container { text-align: center; margin-top: 50px; }

/* Modals */
.modal { 
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
  z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; 
}
.modal-backdrop { 
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
  background: rgba(0, 32, 91, 0.7); backdrop-filter: blur(8px); 
}
.modal-content { 
  position: relative; background: var(--surface); padding: 48px; 
  border-radius: var(--radius-lg); width: 100%; max-width: 550px; 
  z-index: 101; box-shadow: var(--shadow-lg); 
}
.modal-close { 
  position: absolute; top: 20px; right: 24px; background: none; border: none; 
  font-size: 2rem; color: #94a3b8; cursor: pointer; transition: color 0.2s; 
}
.modal-close:hover { color: var(--text-main); }
.modal-content h3 { 
  font-family: var(--font-heading); margin-bottom: 12px; font-size: 2rem; color: var(--secondary); 
  letter-spacing: -0.5px;
}
.modal-content p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; line-height: 1.5; }

/* Utils */
.error-text { 
  color: #dc2626; font-size: 0.95rem; margin-top: 5px; text-align: center; 
  font-weight: 600; padding: 12px; background: #fee2e2; border-radius: var(--radius-sm); 
}

.success-card { text-align: center; }
.success-icon { 
  width: 80px; height: 80px; background: var(--primary); color: white; 
  display: flex; align-items: center; justify-content: center; 
  border-radius: 50%; margin: 0 auto 30px; box-shadow: 0 12px 24px rgba(0, 153, 68, 0.25); 
}
.share-panel { 
  background: #f8fafc; padding: 24px; border-radius: var(--radius-sm); 
  margin-top: 30px; border: 1px solid var(--border); text-align: left;
}
.share-panel p { color: var(--secondary); font-weight: 600; margin-bottom: 12px; font-size: 1rem; }
.share-row { display: flex; gap: 12px; }
.share-row input { flex: 1; background: white; margin: 0; }

.toast { 
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(100px); 
  background: var(--text-main); color: white; padding: 16px 32px; 
  border-radius: 99px; font-size: 1.05rem; font-weight: 600; z-index: 1000; 
  box-shadow: 0 15px 30px rgba(0,0,0,0.2); transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s; opacity: 0; 
}
.toast:not(.hidden) { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: var(--primary); }
.toast.error { background: #dc2626; }

#wbx-powered-by-slot { margin-top: 60px; margin-bottom: 20px; display: flex; justify-content: center; }

/* Responsive */
@media (max-width: 992px) {
  .hero { flex-direction: column; text-align: center; gap: 40px; padding: 60px 20px 40px; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .timeline { margin-left: auto; margin-right: auto; max-width: 600px; }
  .floating-accent { left: 50%; transform: translateX(-50%) rotate(-3deg); bottom: -15px; white-space: nowrap; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .timeline { flex-direction: column; gap: 20px; background: transparent; padding: 0; border: none; box-shadow: none; }
  .timeline-line { width: 3px; height: 35px; margin: 0; background: var(--border); }
  .form-row { flex-direction: column; gap: 24px; }
  .hero-actions { flex-direction: column; }
  .gallery-header { flex-direction: column; align-items: flex-start; gap: 15px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .section-card { padding: 32px 20px; }
  .share-row { flex-direction: column; }
}
