/* ===================================
   HERWA Cyclothon 2025 - Stylesheet
   Theme: Deep Blue #0D47A1 + Yellow #FFC400
   =================================== */

/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root Variables */
:root {
  --primary-blue: #0D47A1;
  --accent-yellow: #FFC400;
  --white: #FFFFFF;
  --text-dark: #222222;
  --light-gray: #F5F5F5;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background-color: var(--primary-blue);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(13, 71, 161, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.navbar.scrolled {
  padding: 0.9rem 0;
  background-color: rgba(13, 71, 161, 0.98);
  box-shadow: 0 6px 25px rgba(13, 71, 161, 0.5);
}

/* Navbar Cyclist Animation */
.nav-cyclist {
  position: absolute;
  top: 50%;
  left: -80px;
  transform: translateY(-50%);
  z-index: 1;
  animation: navCycleMove 9s linear infinite;
}

.nav-cyclist img {
  width: 80px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-cyclist::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  width: 50px;
  height: 25px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 196, 0, 0.15) 20%,
    rgba(255, 196, 0, 0.3) 50%,
    rgba(255, 196, 0, 0.15) 80%,
    transparent 100%
  );
  filter: blur(3px);
  opacity: 0.8;
  border-radius: 50%;
}

@keyframes navCycleMove {
  0% {
    left: -80px;
  }
  100% {
    left: calc(100% - 180px);
  }
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-btn {
  background-color: var(--accent-yellow);
  color: var(--text-dark);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-btn:hover {
  background-color: #FFD740;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
  background: url('assets/images/hero.png') center/cover no-repeat fixed;
  color: var(--white);
  padding: 4rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.3) 0%, rgba(25, 118, 210, 0.4) 100%);
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(13, 71, 161, 0.1) 100%);
  opacity: 1;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* Moving Cyclist Animation */

/* Enhanced Cyclist Animation */
.cycle-animation {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}

.cycle-animation img {
  width: 130px;
  height: auto;
  position: absolute;
  bottom: 0;
  offset-path: path("M -200,340 C 200,330 600,370 1200,350");
  offset-rotate: auto;
  offset-distance: 0%;
  animation: cyclistZigZag 11s linear infinite;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
  will-change: offset-distance, offset-rotate, filter;
}

@keyframes cycleMove {
  0% {
    left: -150px;
  }
  100% {
    left: calc(100% + 150px);
  }
}

@keyframes cyclistBounce {
  0%, 100% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(-8px);
  }
  40% {
    transform: translateY(-16px);
  }
  60% {
    transform: translateY(-8px);
  }
  80% {
    transform: translateY(0);
  }
}

@keyframes cyclistScale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes cyclistZigZag {
  0% {
    offset-distance: 0%;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
  }
  10% {
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.32));
  }
  50% {
    filter: drop-shadow(0 12px 20px rgba(0,0,0,0.30));
  }
  100% {
    offset-distance: 100%;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
  animation: fadeInUp 0.8s ease-out;
}

.hero .subtitle {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.event-details {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin: 2rem auto 2.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  max-width: 1000px;
}

.detail-item {
  text-align: center;
  padding: 1.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 220px;
  max-width: 300px;
}

.detail-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.detail-item h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
  color: var(--accent-yellow);
  font-weight: 700;
}

.detail-item p {
  font-size: 1.3rem;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.btn-primary {
  background-color: var(--accent-yellow);
  color: var(--text-dark);
  padding: 1.2rem 3rem;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out 0.6s both;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  background-color: #FFD740;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
  transform: translateY(-2px) scale(1.02);
}

/* Bounce Animation for Register Button */
.btn-bounce {
  animation: fadeInUp 0.8s ease-out 0.6s both, gentleBounce 2s ease-in-out 1.5s infinite;
}

@keyframes gentleBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.btn-bounce:hover {
  animation: none;
}

/* Partners Badge */
.partners-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.8rem 2rem;
  margin: 1rem auto 1.5rem;
  max-width: 600px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.partner-text {
  font-size: 0.95rem;
  margin: 0.25rem 0;
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.partner-text strong {
  color: var(--accent-yellow);
  font-weight: 600;
}

/* Fade-in Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays for grid items */
.support-item:nth-child(1) { transition-delay: 0.1s; }
.support-item:nth-child(2) { transition-delay: 0.2s; }
.support-item:nth-child(3) { transition-delay: 0.3s; }
.support-item:nth-child(4) { transition-delay: 0.4s; }
.support-item:nth-child(5) { transition-delay: 0.5s; }
.support-item:nth-child(6) { transition-delay: 0.6s; }

.kit-item:nth-child(1) { transition-delay: 0.1s; }
.kit-item:nth-child(2) { transition-delay: 0.2s; }
.kit-item:nth-child(3) { transition-delay: 0.3s; }
.kit-item:nth-child(4) { transition-delay: 0.4s; }
.kit-item:nth-child(5) { transition-delay: 0.5s; }

.about-icon-item:nth-child(1) { transition-delay: 0.1s; }
.about-icon-item:nth-child(2) { transition-delay: 0.2s; }
.about-icon-item:nth-child(3) { transition-delay: 0.3s; }

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 3.5rem;
  color: var(--primary-blue);
  position: relative;
  padding-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
  border-radius: 2px;
}

/* About Section */
.about {
  background-color: var(--light-gray);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-icon-item {
  text-align: center;
  padding: 2rem;
  transition: all 0.3s ease;
  border-radius: 15px;
}

.about-icon-item:hover {
  background: rgba(255, 196, 0, 0.1);
  transform: translateY(-5px);
}

.about-icon-item:hover .icon {
  transform: scale(1.15) rotate(5deg);
}

.icon {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.about-icon-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

/* Routes Section */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.route-card {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1565C0 100%);
  color: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(13, 71, 161, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 3px solid var(--accent-yellow);
  position: relative;
  overflow: hidden;
}

.route-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 196, 0, 0.1) 0%, transparent 70%);
  transition: all 0.6s ease;
}

.route-card:hover::before {
  top: -100%;
  right: -100%;
}

.route-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 50px rgba(13, 71, 161, 0.4);
  border-color: #FFD740;
}

.route-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-yellow);
}

.route-badge {
  display: inline-block;
  background-color: var(--accent-yellow);
  color: var(--text-dark);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.route-features {
  list-style: none;
  margin-top: 1.5rem;
}

.route-features li {
  padding: 0.5rem 0;
  padding-left: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.route-icon {
  color: var(--accent-yellow);
  font-weight: bold;
  font-size: 1.2rem;
  display: inline-block;
  min-width: 20px;
}

/* Support Section */
.support {
  background-color: var(--light-gray);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.support-item {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.support-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.support-item:hover::before {
  transform: scaleX(1);
}

.support-item:hover {
  box-shadow: 0 15px 40px rgba(13, 71, 161, 0.15);
  transform: translateY(-10px);
  border-color: var(--accent-yellow);
}

.support-item .icon {
  font-size: 3rem;
  color: var(--accent-yellow);
  margin-bottom: 1rem;
}

.support-item h3 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* Event Kit Section */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.kit-item {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border: 2px solid var(--primary-blue);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.kit-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1565C0 100%);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
}

.kit-item:hover::after {
  transform: scaleY(1);
  transform-origin: top;
}

.kit-item:hover {
  color: var(--white);
  border-color: var(--accent-yellow);
  transform: translateY(-8px) rotate(2deg);
  box-shadow: 0 15px 35px rgba(13, 71, 161, 0.3);
}

.kit-item:hover .icon {
  transform: scale(1.2) rotate(-5deg);
}

.kit-item .icon {
  font-size: 2.5rem;
  color: var(--accent-yellow);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.kit-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Final CTA Section */
.final-cta {
  background: linear-gradient(135deg, #0D47A1 0%, #1976D2 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.final-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #0D47A1 0%, #01579B 50%, #0D47A1 100%);
  border-top: 3px solid #FFC400;
  padding: 60px 20px 30px;
  margin-top: 100px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 196, 0, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 196, 0, 0.3);
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  color: #FFC400;
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-about {
  max-width: 300px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 70px;
  max-width: 200px;
  object-fit: contain;
  filter: brightness(1.1);
}

.footer-about p {
  color: #e3f2fd;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #e3f2fd;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #FFC400;
  transform: translateX(5px);
}

.footer-contact {
  color: #e3f2fd;
  font-size: 1rem;
  line-height: 2;
}

.footer-contact a {
  color: #e3f2fd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #FFC400;
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: #FFC400;
  margin-top: 3px;
}

.footer-socials {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-socials a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 196, 0, 0.15);
  border: 2px solid rgba(255, 196, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFC400;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: #FFC400;
  color: #0D47A1;
  transform: translateY(-3px);
  border-color: #FFC400;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  color: #bbdefb;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-about {
    max-width: 100%;
  }
}


/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.modal-content p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.modal-close-btn {
  background: var(--accent-yellow);
  color: var(--text-dark);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.modal-close-btn:hover {
  background: #FFD740;
  transform: scale(1.05);
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-blue);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 1.5rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.modal-content strong {
  color: var(--primary-blue);
  font-weight: 600;
}

/* Registration Form Styles */
.register-page {
  min-height: 100vh;
  background-color: var(--light-gray);
  padding: 3rem 0;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--primary-blue);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h1 {
  color: var(--primary-blue);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: #666;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.9rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Terms & Conditions */
.terms-section {
  margin-top: 30px;
  padding: 20px;
  background: #1565C0;
  border: 2px solid #FFC400;
  border-radius: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.terms-section::-webkit-scrollbar {
  width: 6px;
}

.terms-section::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.terms-section::-webkit-scrollbar-thumb {
  background: #FFC400;
  border-radius: 10px;
}

.terms-section h4 {
  color: #FFC400;
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-align: center;
}

.terms-content {
  color: #ffffff;
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: left;
}

.terms-content p {
  margin-bottom: 12px;
  color: #ffffff;
}

.terms-content h3 {
  color: #FFC400;
  font-size: 0.95rem;
  margin: 15px 0 8px;
  font-weight: 600;
}

.terms-content h5 {
  color: #FFC400;
  font-size: 0.9rem;
  margin: 12px 0 8px;
  font-weight: 600;
}

.terms-content ul {
  list-style: none;
  padding-left: 0;
  margin: 10px 0;
}

.terms-content ul li {
  padding: 5px 0 5px 20px;
  position: relative;
  color: #ffffff;
}

.terms-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #FFC400;
  font-size: 0.9rem;
}

.terms-content strong {
  color: #FFC400;
  font-weight: 600;
}

.terms-checkbox-wrapper {
  margin-top: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: #1976D2;
  border: 3px solid #FFC400;
  border-radius: 10px;
  text-align: center;
}

.terms-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #FFC400;
}

.terms-checkbox label {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}

.terms-checkbox label span {
  color: #FFC400;
  font-weight: 700;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  background-color: var(--accent-yellow);
  color: var(--text-dark);
  padding: 1rem;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-submit:hover {
  background-color: #FFD740;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .event-details {
    gap: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .routes-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 2rem 1.5rem;
  }

  .navbar .container {
    flex-direction: row;
    gap: 1rem;
  }

  .logo-img {
    height: 40px;
  }

  .partners-badge {
    padding: 0.8rem 1.5rem;
  }

  .partner-text {
    font-size: 0.85rem;
  }

  /* Cyclist Animation - Mobile */
  .cyclist-img {
    width: 80px;
  }
  .cycle-animation {
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .support-grid,
  .kit-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   MODAL STYLES
   =================================== */

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

/* Modal Content */
.modal-content {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content h2 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.modal-content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-close-btn {
  background: var(--accent-yellow);
  color: var(--text-dark);
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-close-btn:hover {
  background: #FFD740;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Spinner for Loading */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary-blue);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 1.5rem auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success/Error specific styles */
#modal strong {
  color: var(--primary-blue);
}

#modalMessage {
  margin: 1.5rem 0;
}

