:root {
  --primary: #4fc3f7; /* Sky Blue for hero section, backgrounds */
  --secondary: #ff4b5c; /* Bright Red for call-to-action buttons, headings */
  --accent: #81c784; /* Fresh Green for nav bar, icons */
  --highlight: #ffeb3b; /* Sunny Yellow for highlights, badges */
  --vibrant: #4169e1; /* Royal Blue for buttons, hover states */
  --white: #ffffff; /* White for clean backgrounds */
  --text: #1a1a1a; /* Darker Gray for professional text */
  --navy: #2c3e50; /* Deep Navy for subheadings */
  --gradient: linear-gradient(
    135deg,
    #4fc3f7,
    #81c784
  ); /* Sky Blue to Fresh Green gradient */
  --light-gray: #f9fafb; /* Very light gray for backgrounds */
}

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

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background: linear-gradient(180deg, var(--light-gray), var(--white));
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: var(--accent); /* Fresh Green for nav */
  color: var(--white);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  padding: 0.5rem;
}

.logo a:hover {
  animation: bouncy-castle-pulse 1.5s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(255, 235, 59, 0.3);
}

.logo a:active {
  transform: scale(0.95);
}

.logo img {
  max-height: 80px;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
}

.logo a:hover img {
  filter: brightness(1.1) drop-shadow(0 4px 8px rgba(255, 235, 59, 0.4));
}

/* Bouncy Castle Rhythmic Pulse Animation */
@keyframes bouncy-castle-pulse {
  0% {
    transform: scale(1) translateY(0px);
    box-shadow: 0 4px 20px rgba(255, 235, 59, 0.3);
  }
  15% {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 235, 59, 0.5);
  }
  30% {
    transform: scale(1.02) translateY(-1px);
    box-shadow: 0 6px 22px rgba(255, 235, 59, 0.4);
  }
  45% {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 235, 59, 0.6);
  }
  60% {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 7px 24px rgba(255, 235, 59, 0.4);
  }
  75% {
    transform: scale(1.06) translateY(-4px);
    box-shadow: 0 9px 28px rgba(255, 235, 59, 0.5);
  }
  100% {
    transform: scale(1) translateY(0px);
    box-shadow: 0 4px 20px rgba(255, 235, 59, 0.3);
  }
}

/* Enhanced Button Bounce Animation */
@keyframes button-bounce {
  0% {
    transform: scale(1) translateY(0px);
  }
  20% {
    transform: scale(1.05) translateY(-2px);
  }
  40% {
    transform: scale(1.02) translateY(-1px);
  }
  60% {
    transform: scale(1.08) translateY(-3px);
  }
  80% {
    transform: scale(1.03) translateY(-1px);
  }
  100% {
    transform: scale(1) translateY(0px);
  }
}

/* Gentle Continuous Bounce for Idle State */
@keyframes gentle-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* Navigation Styles */
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-family: "Bubblegum Sans", cursive;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

nav ul li a.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

nav ul li a.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--highlight);
  box-shadow: 0 2px 8px rgba(255, 235, 59, 0.3);
}

nav ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

nav ul li a:hover {
  color: var(--highlight);
  background: rgba(255, 255, 255, 0.1);
  animation: button-bounce 1.2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(255, 235, 59, 0.3);
  backdrop-filter: blur(5px);
}

nav ul li a:hover::before {
  left: 100%;
}

nav ul li a:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

/* Desktop navigation enhancements */
@media (min-width: 1001px) {
  nav ul {
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  nav ul li {
    margin-left: 0;
  }

  nav ul li a.nav-link {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.3px;
  }

  nav ul li a.nav-link:hover {
    transform: translateY(-1px);
    animation: none;
  }

  /* Highlight current page/section */
  nav ul li a.nav-link.active {
    background: var(--highlight);
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 235, 59, 0.4);
  }

  nav ul li a.nav-link.active:hover {
    background: var(--highlight);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 235, 59, 0.5);
  }
}

/* Mobile navigation improvements */
@media (max-width: 1000px) {
  nav ul li a.nav-link.active {
    background: var(--highlight);
    color: var(--text);
    font-weight: 600;
  }
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--white);
  padding: 0.5rem;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: none;
  border: none;
  z-index: 1001;
}

.menu-toggle:hover {
  background: var(--vibrant);
  animation: button-bounce 1.4s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
}

.menu-toggle i {
  transition: transform 0.3s ease;
}

.menu-toggle.active i {
  transform: rotate(90deg);
}

/* Exit Button */
.exit-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

.exit-button:hover {
  background: var(--vibrant);
  animation: bouncy-castle-pulse 1.6s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(65, 105, 225, 0.4);
}

/* Animation Keyframe for slideInFromTop */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-icons {
  display: flex;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  background: var(--secondary);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-family: "Bubblegum Sans", cursive;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-icons a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

.social-icons a:hover {
  background: var(--vibrant);
  animation: bouncy-castle-pulse 1.8s ease-in-out infinite;
  box-shadow: 0 6px 25px rgba(65, 105, 225, 0.4);
}

.social-icons a:hover::before {
  left: 100%;
}

.social-icons a i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
  animation: gentle-float 3s ease-in-out infinite;
}

/* Animations */
section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
#hero {
  position: relative;
  height: 100vh;
  background-attachment: scroll;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background-color: var(--primary); /* Sky Blue */
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

#hero img.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-family: "Bubblegum Sans", cursive;
  font-size: 4.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: var(--secondary); /* Bright Red for visibility */
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--highlight); /* Sunny Yellow */
}

.hero-content p {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--white);
}

.hero-content .contact-info {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-content .contact-info p {
  margin: 0.5rem 0;
}

.hero-content .contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.hero-content .contact-info a:hover {
  text-decoration: underline;
}

/* Enhanced CTA Button with Bouncy Castle Animation */
.cta-button {
  background: var(--secondary);
  color: var(--white);
  padding: 1.2rem 2.5rem;
  text-decoration: none;
  font-family: "Bubblegum Sans", cursive;
  font-size: 1.2rem;
  border-radius: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255, 75, 92, 0.3);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

.cta-button:hover {
  background: var(--vibrant);
  animation: bouncy-castle-pulse 2s ease-in-out infinite;
  box-shadow: 0 8px 30px rgba(65, 105, 225, 0.5);
  color: var(--white);
  text-decoration: none;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:active {
  transform: scale(0.95);
  animation: none;
}

/* About */
#about-castles4u {
  padding: 4rem 2rem;
  background: var(--light-gray);
  text-align: center;
}

#about-castles4u h2 {
  font-family: "Bubblegum Sans", cursive;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--secondary); /* Bright Red for visibility */
}

#about-castles4u p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text);
}

/* Castles Gallery */
#bouncy-castle-hire-essex {
  padding: 4rem 2rem;
  background: var(--white);
  text-align: center;
}

#bouncy-castle-hire-essex h2 {
  font-family: "Bubblegum Sans", cursive;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--secondary); /* Bright Red for visibility */
}

.castle-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  gap: 0.8rem;
}

/* Enhanced Tab Buttons */
.castle-tabs button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Bubblegum Sans", cursive;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.castle-tabs button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.castle-tabs button:hover {
  background: var(--vibrant);
  animation: button-bounce 1.1s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
}

.castle-tabs button:hover::before {
  left: 100%;
}

.castle-tabs button.active {
  background: var(--vibrant);
  animation: gentle-float 3s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
}

.castle-filter {
  margin-bottom: 1.5rem;
}

.castle-filter select {
  padding: 0.8rem;
  border: 2px solid var(--accent);
  border-radius: 10px;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.3s;
}

.castle-filter select:focus {
  outline: none;
  border-color: var(--secondary);
}

.castle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

@media (min-width: 1001px) {
  .castle-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1000px) {
  .castle-grid {
    grid-template-columns: 1fr;
  }
}

/* Enhanced Castle Card Animations */
.castle-card {
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem;
  position: relative;
}

.castle-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(129, 199, 132, 0.1) 0%,
    transparent 70%
  );
  transform: scale(0);
  transition: transform 0.6s ease;
  z-index: 0;
}

.castle-card:hover::before {
  transform: scale(1);
}

.castle-card:hover {
  animation: gentle-castle-bounce 2.5s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(129, 199, 132, 0.3);
  border-color: var(--secondary);
  z-index: 1;
}

.castle-card * {
  position: relative;
  z-index: 2;
}

/* Gentle Castle Bounce Animation */
@keyframes gentle-castle-bounce {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  25% {
    transform: translateY(-2px) scale(1.02);
  }
  50% {
    transform: translateY(-1px) scale(1.01);
  }
  75% {
    transform: translateY(-3px) scale(1.03);
  }
}

.castle-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: var(--light-gray);
  border-radius: 10px;
  loading: lazy;
}

.castle-card .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--highlight);
  color: var(--text);
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  transform: rotate(5deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.castle-card h3 {
  font-family: "Bubblegum Sans", cursive;
  font-size: 1.5rem;
  margin: 0.8rem 0;
  color: var(--navy);
}

.castle-card .details {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
}

.castle-card .details p {
  margin: 0.3rem 0;
  color: var(--text);
}

.castle-card .pricing {
  margin: 0.8rem 0;
  color: var(--secondary);
  font-weight: 700;
  font-size: 1rem;
}

.castle-card .pricing .overnight {
  font-size: 0.85rem;
  color: var(--vibrant);
  font-weight: 400;
}

.castle-card .availability {
  margin: 0.4rem 0;
  font-size: 0.8rem;
}

.castle-card .availability a {
  color: var(--secondary);
  text-decoration: none;
}

.castle-card .availability a:hover {
  text-decoration: underline;
}

.castle-card .cta-button {
  display: inline-block;
  margin-bottom: 0.4rem;
  background: var(--secondary);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-family: "Bubblegum Sans", cursive;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.castle-card .cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.castle-card .cta-button:hover {
  background: var(--vibrant);
  animation: button-bounce 1.3s ease-in-out infinite;
  box-shadow: 0 6px 20px rgba(65, 105, 225, 0.4);
  color: var(--white);
  text-decoration: none;
}

.castle-card .cta-button:hover::before {
  left: 100%;
}

/* Safety */
#safety-guidelines {
  padding: 4rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(79, 195, 247, 0.1),
    rgba(129, 199, 132, 0.1)
  );
  text-align: center;
}

#safety-guidelines h2 {
  font-family: "Bubblegum Sans", cursive;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--secondary); /* Bright Red for visibility */
}

#safety-guidelines .safety-content {
  max-width: 800px;
  margin: 0 auto 2rem;
}

#safety-guidelines .safety-content p {
  margin-bottom: 1rem;
  color: var(--text);
}

#safety-guidelines .safety-content strong {
  color: var(--secondary);
}

#safety-guidelines .checklist {
  list-style: none;
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: left;
}

#safety-guidelines .checklist li {
  display: flex;
  align-items: center;
  margin: 0.8rem 0;
  font-size: 1.1rem;
  color: var(--text);
}

#safety-guidelines .checklist li i {
  color: var(--accent);
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

#safety-guidelines .trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

#safety-guidelines .trust-badges img {
  width: 80px;
  height: auto;
  border: 2px solid var(--accent);
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

#safety-guidelines .trust-badges img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Delivery Areas */
#delivery {
  padding: 4rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(79, 195, 247, 0.1),
    rgba(129, 199, 132, 0.1)
  );
  text-align: center;
}

#delivery h2 {
  font-family: "Bubblegum Sans", cursive;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--secondary); /* Bright Red for visibility */
}

#delivery .delivery-content {
  max-width: 600px;
  margin: 0 auto;
}

#delivery ul {
  list-style: none;
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 1rem;
}

#delivery ul li {
  margin: 0.8rem 0;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: var(--text);
}

#delivery ul li i {
  color: var(--accent);
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

#delivery .delivery-note {
  margin-top: 1rem;
  background: var(--highlight);
  color: var(--text);
  padding: 1rem;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid var(--secondary);
  display: inline-block;
}

/* Testimonials */
#testimonials {
  padding: 4rem 2rem;
  background: var(--light-gray);
  text-align: center;
}

#testimonials h2 {
  font-family: "Bubblegum Sans", cursive;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--secondary); /* Bright Red for visibility */
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial {
  display: none;
  padding: 2rem;
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: 15px;
}

.testimonial.active {
  display: block;
}

.testimonial .stars {
  color: var(--highlight);
  margin-bottom: 0.5rem;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text);
}

.testimonial cite {
  font-weight: 700;
  color: var(--navy);
}

.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

/* Enhanced Slider Navigation */
.slider-nav button {
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 0.8rem;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 10px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.slider-nav button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.4s;
}

.slider-nav button:hover {
  background: var(--vibrant);
  animation: button-bounce 1.4s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
}

.slider-nav button:hover::before {
  left: 100%;
}

/* Google Reviews Section */
#google-reviews {
  padding: 4rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(66, 133, 244, 0.1),
    rgba(52, 168, 83, 0.1)
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}

#google-reviews::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(66, 133, 244, 0.05) 0%,
    transparent 70%
  );
  animation: gentle-float 8s ease-in-out infinite;
}

#google-reviews h2 {
  font-family: "Bubblegum Sans", cursive;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--secondary);
  position: relative;
  z-index: 2;
}

.review-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.review-content p {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.review-stats {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(66, 133, 244, 0.2);
}

.star-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.star-rating .stars {
  font-size: 2.5rem;
  color: #ffc107;
  text-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.rating-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.review-count {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
  font-weight: 500;
}

.google-review-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: var(--white);
  padding: 1.5rem 3rem;
  border-radius: 20px;
  text-decoration: none;
  font-family: "Bubblegum Sans", cursive;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(66, 133, 244, 0.4);
  position: relative;
  overflow: hidden;
}

.google-review-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

.google-review-button:hover {
  background: linear-gradient(135deg, #3367d6, #2d8e45);
  animation: bouncy-castle-pulse 2s ease-in-out infinite;
  box-shadow: 0 12px 40px rgba(66, 133, 244, 0.6);
  transform: translateY(-3px);
  color: var(--white);
  text-decoration: none;
}

.google-review-button:hover::before {
  left: 100%;
}

.google-review-button i:first-child {
  font-size: 1.5rem;
}

.google-review-button i:last-child {
  font-size: 1rem;
  opacity: 0.8;
}

.review-thank-you {
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 600;
  margin-top: 1.5rem;
  font-style: italic;
}

/* Responsive design for Google Reviews section */
@media (max-width: 768px) {
  #google-reviews {
    padding: 3rem 1rem;
  }

  #google-reviews h2 {
    font-size: 2.5rem;
  }

  .review-content p {
    font-size: 1.1rem;
  }

  .review-stats {
    padding: 1.5rem;
  }

  .star-rating {
    flex-direction: column;
    gap: 0.5rem;
  }

  .star-rating .stars {
    font-size: 2rem;
  }

  .rating-text {
    font-size: 1.2rem;
  }

  .google-review-button {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .google-review-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .google-review-button span {
    order: 1;
  }

  .google-review-button i:first-child {
    order: 0;
    font-size: 1.8rem;
  }

  .google-review-button i:last-child {
    order: 2;
  }
}

/* FAQs */
#frequently-asked-questions {
  padding: 4rem 2rem;
  background: var(--white);
  text-align: center;
}

#frequently-asked-questions h2 {
  font-family: "Bubblegum Sans", cursive;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--secondary); /* Bright Red for visibility */
}

.faq {
  max-width: 800px;
  margin: 0 auto 1rem;
  text-align: left;
  border-bottom: 1px solid var(--accent);
}

/* Enhanced FAQ Expandable Headers */
.faq h3 {
  font-family: "Bubblegum Sans", cursive;
  font-size: 1.2rem;
  color: var(--navy);
  padding: 1rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.faq h3:hover {
  background: rgba(129, 199, 132, 0.1);
  animation: gentle-float 2s ease-in-out infinite;
  padding-left: 1rem;
  color: var(--secondary);
}

.faq h3::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: gentle-float 3s ease-in-out infinite;
}

.faq h3.active::after {
  transform: rotate(180deg);
  color: var(--secondary);
}

.faq p {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 1rem;
  color: var(--text);
}

.faq p.active {
  max-height: 200px;
  padding: 1rem;
}

/* Contact */
#contact-essex-bouncy-castle-hire {
  padding: 4rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(79, 195, 247, 0.1),
    rgba(129, 199, 132, 0.1)
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}

#contact-essex-bouncy-castle-hire h2 {
  font-family: "Bubblegum Sans", cursive;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--secondary); /* Bright Red for visibility */
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

#contact-essex-bouncy-castle-hire .contact-info {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: var(--text);
}

#contact-essex-bouncy-castle-hire .contact-info p {
  margin: 0.5rem 0;
}

#contact-essex-bouncy-castle-hire .contact-info a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

#contact-essex-bouncy-castle-hire .contact-info a:hover {
  text-decoration: underline;
  color: var(--secondary);
}

/* Enhanced Form Styles - 2025 UI/UX Best Practices */
form {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 2rem auto;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  max-width: 600px;
  width: 100%;
}

form:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.form-group label .required {
  color: var(--secondary);
  margin-left: 0.25rem;
}

.form-group label i {
  margin-right: 0.5rem;
  color: var(--primary);
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--white);
  color: var(--dark);
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 75, 92, 0.1);
  transform: translateY(-2px);
}

form input:hover,
form select:hover,
form textarea:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

form input[type="date"] {
  cursor: pointer;
}

form input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  border-radius: 4px;
  margin-right: 2px;
  opacity: 0.6;
  filter: invert(0.8);
}

form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 3rem;
  appearance: none;
}

form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

form .checkbox-container {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

form .checkbox-container:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

form input[type="checkbox"] {
  width: auto;
  margin-right: 0.75rem;
  transform: scale(1.2);
  accent-color: var(--primary);
}

form .checkbox-container label {
  margin: 0;
  cursor: pointer;
  font-weight: 500;
}

/* Enhanced Form Submit Button */
form button[type="submit"] {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border: none;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 75, 92, 0.3);
}

form button[type="submit"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

form button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--secondary), var(--vibrant));
  animation: bouncy-castle-pulse 2.2s ease-in-out infinite;
  box-shadow: 0 8px 25px rgba(255, 75, 92, 0.5);
}

form button[type="submit"]:hover::before {
  left: 100%;
}

form button[type="submit"]:active {
  transform: scale(0.95);
  animation: none;
}

/* Form info text */
form p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 1rem 0;
  text-align: center;
  line-height: 1.5;
}

/* Enhanced validation styles */
form .error {
  border-color: var(--secondary) !important;
  background-color: rgba(255, 75, 92, 0.05);
  animation: shake 0.5s ease-in-out;
}

form .success {
  border-color: var(--accent) !important;
  background-color: rgba(129, 199, 132, 0.05);
}

/* Loading state for form */
form.loading {
  pointer-events: none;
  opacity: 0.7;
}

form.loading button[type="submit"] {
  background: #ccc;
  cursor: not-allowed;
}

/* Captcha styles */
.captcha-group {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid #dee2e6;
  border-radius: 15px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.captcha-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0.5rem 0;
  padding: 1rem;
  background: var(--white);
  border-radius: 10px;
  text-align: center;
  border: 2px solid var(--primary);
}

/* Enhanced Refresh Captcha Button */
.refresh-captcha {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
  font-family: inherit;
}

.refresh-captcha::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.4s;
}

.refresh-captcha:hover {
  background: var(--vibrant);
  animation: button-bounce 1.3s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
}

.refresh-captcha:hover::before {
  left: 100%;
}

.refresh-captcha i {
  font-size: 0.9rem;
  animation: gentle-float 2.5s ease-in-out infinite;
}

/* Error message styles */
.error-message {
  color: var(--secondary);
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  animation: fadeIn 0.3s ease-in;
}

.error-message::before {
  content: "⚠️";
  margin-right: 0.5rem;
}

/* Success and error message containers */
.form-success-message,
.form-error-message {
  margin: 1rem 0;
  animation: slideIn 0.5s ease-out;
}

/* Animations */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive form improvements */
@media (max-width: 768px) {
  #contact-essex-bouncy-castle-hire {
    padding: 3rem 1rem;
  }

  form {
    max-width: 100%;
    padding: 2rem 1.5rem;
    margin: 0 auto 2rem;
    gap: 1.2rem;
    width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
  }

  form input,
  form select,
  form textarea {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }

  form button[type="submit"] {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    width: 100%;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .checkbox-container {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  #contact-essex-bouncy-castle-hire {
    padding: 2rem 0.5rem;
  }

  form {
    padding: 1.5rem 1rem;
    gap: 1rem;
    margin: 0 auto 2rem;
    width: calc(100% - 1rem);
    max-width: none;
  }

  form input,
  form select,
  form textarea {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  form button[type="submit"] {
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    width: 100%;
  }

  .checkbox-container {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  #contact-essex-bouncy-castle-hire {
    padding: 2rem 0.25rem;
  }

  form {
    padding: 1.25rem 0.75rem;
    width: calc(100% - 0.5rem);
    margin: 0 auto 1.5rem;
  }

  form input,
  form select,
  form textarea {
    padding: 0.7rem;
    font-size: 0.85rem;
  }

  .form-group label {
    font-size: 0.8rem;
  }
}

.social-feed {
  margin-top: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.social-feed h3 {
  font-family: "Bubblegum Sans", cursive;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.social-feed iframe {
  width: 100%;
  height: 250px;
  border: none;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Terms Modal */
#terms-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

#terms-modal-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  text-align: left;
  color: var(--text);
}

#terms-modal-content h3 {
  font-family: "Bubblegum Sans", cursive;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

#terms-modal-content p {
  margin-bottom: 1rem;
  color: var(--text);
}

#terms-modal-content button {
  background: var(--secondary);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-family: "Bubblegum Sans", cursive;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

#terms-modal-content button:hover {
  background: var(--vibrant);
  transform: scale(1.05);
}

/* Enhanced WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  animation: gentle-float 4s ease-in-out infinite;
}

.whatsapp-button:hover {
  animation: bouncy-castle-pulse 1.8s ease-in-out infinite;
  background: #20c55a;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
  text-decoration: none;
  color: var(--white);
}

.whatsapp-button:active {
  transform: scale(0.9);
  animation: none;
}

/* Footer */
footer {
  background: var(--gradient);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

footer .social-icons {
  margin: 1rem 0;
}

footer ul {
  list-style: none;
  margin-top: 1rem;
}

footer ul li {
  display: inline;
  margin: 0 1rem;
}

footer ul li a {
  color: var(--white);
  text-decoration: none;
  font-family: "Bubblegum Sans", cursive;
}

footer ul li a:hover {
  color: var(--highlight);
}

footer .credit a {
  color: var(--highlight);
  text-decoration: none;
  font-weight: 700;
}

footer .credit a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1000px) {
  #hero {
    width: 100vw;
    min-height: 80vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }

  #hero img.hero-image {
    object-fit: cover;
    object-position: center center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.3rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-content .contact-info {
    font-size: 1rem;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--accent);
    padding: 3rem 1.5rem;
    text-align: center;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    transform: translateY(-100%);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  nav ul.active {
    display: flex;
    transform: translateY(0);
  }

  nav ul li {
    margin: 1rem 0;
  }

  nav ul li a {
    font-size: 1.2rem;
    padding: 0.8rem;
    display: block;
    color: var(--white);
    transition: background 0.3s;
  }

  nav ul li a:hover {
    background: var(--highlight);
    color: var(--text);
    border-radius: 10px;
  }

  .exit-button {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .social-icons {
    display: none;
  }

  .slider-nav button {
    width: 44px;
    height: 44px;
  }

  .castle-card img {
    height: 160px;
  }

  .castle-tabs {
    flex-direction: column;
    gap: 0.4rem;
  }

  .castle-tabs button {
    margin: 0.4rem 0;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .logo img {
    max-height: 60px;
  }

  .social-feed iframe {
    height: 250px;
  }

  .faq p.active {
    max-height: 300px;
  }

  #safety-guidelines .trust-badges {
    flex-wrap: wrap;
  }

  #safety-guidelines .checklist li {
    font-size: 1rem;
  }

  #delivery ul li {
    font-size: 1rem;
  }

  #terms-modal-content {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  #hero {
    width: 100vw;
    min-height: 70vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }

  #hero img.hero-image {
    object-fit: cover;
    object-position: center center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .castle-card h3 {
    font-size: 1.3rem;
  }

  .castle-card img {
    height: 140px;
  }

  .logo img {
    max-height: 50px;
  }

  .menu-toggle {
    font-size: 1.8rem;
    padding: 0.4rem;
  }

  #terms-modal-content {
    max-width: 90%;
  }
}

@media (min-width: 1001px) {
  .exit-button {
    display: none !important;
  }
}

/* Weather Forecast Styles */
.weather-forecast {
  margin: 1rem 0;
  transition: all 0.3s ease;
}

.weather-info {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(249, 250, 251, 0.95)
  );
  border: 2px solid var(--accent);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 1rem 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.weather-info::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(79, 195, 247, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.weather-info:hover::before {
  opacity: 1;
  animation: shimmer 2s ease-in-out;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.weather-info.rainy {
  border-color: var(--secondary);
  background: linear-gradient(
    135deg,
    rgba(255, 75, 92, 0.1),
    rgba(255, 255, 255, 0.95)
  );
}

.weather-info.clear {
  border-color: var(--accent);
  background: linear-gradient(
    135deg,
    rgba(129, 199, 132, 0.1),
    rgba(255, 255, 255, 0.95)
  );
}

.weather-info.high-wind {
  border-color: var(--secondary);
  background: linear-gradient(
    135deg,
    rgba(255, 75, 92, 0.15),
    rgba(255, 255, 255, 0.95)
  );
  animation: wind-pulse 2s ease-in-out infinite;
}

@keyframes wind-pulse {
  0%,
  100% {
    box-shadow: 0 8px 32px rgba(255, 75, 92, 0.2);
  }
  50% {
    box-shadow: 0 12px 40px rgba(255, 75, 92, 0.4);
  }
}

.weather-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.weather-icon {
  width: 64px;
  height: 64px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
  animation: float 3s ease-in-out infinite;
}

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

.weather-details h4 {
  font-family: "Bubblegum Sans", cursive;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0 0 0.5rem 0;
}

.weather-temp {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  text-transform: capitalize;
}

.wind-speed {
  font-size: 1rem;
  margin: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.rain-chance {
  font-size: 0.95rem;
  color: var(--secondary);
  font-weight: 500;
  margin: 0.3rem 0 0 0;
}

.rain-warning {
  background: linear-gradient(135deg, var(--secondary), #ff6b7d);
  color: var(--white);
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 75, 92, 0.3);
  animation: pulse-warning 2s ease-in-out infinite;
}

.wind-warning {
  background: linear-gradient(135deg, var(--secondary), #ff6b7d);
  color: var(--white);
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 75, 92, 0.3);
  animation: wind-warning-pulse 1.5s ease-in-out infinite;
}

@keyframes wind-warning-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 75, 92, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 75, 92, 0.5);
  }
}

@keyframes pulse-warning {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.rain-ok {
  background: linear-gradient(135deg, var(--accent), #9ccc65);
  color: var(--white);
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 15px rgba(129, 199, 132, 0.3);
}

.weather-notice h4 {
  font-family: "Bubblegum Sans", cursive;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.weather-loading {
  text-align: center;
  padding: 1rem;
  font-size: 1.1rem;
  color: var(--accent);
  animation: loading-pulse 1.5s ease-in-out infinite;
}

@keyframes loading-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.weather-disclaimer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(129, 199, 132, 0.3);
  text-align: center;
}

.weather-disclaimer small {
  color: #666;
  font-size: 0.85rem;
}

.weather-disclaimer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.weather-disclaimer a:hover {
  text-decoration: underline;
}

/* Additional animations for enhanced UI */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form success animation */
.form-success-message {
  animation: slideIn 0.5s ease-out;
}

/* Weather loading spinner enhancement */
.weather-loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
  vertical-align: middle;
}

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

/* Enhanced focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Improved mobile touch targets */
@media (max-width: 768px) {
  button,
  .cta-button,
  a[role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Enhanced loading state for weather API */
.weather-info.loading {
  position: relative;
  opacity: 0.7;
}

.weather-info.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Responsive weather info */
@media (max-width: 480px) {
  .weather-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .weather-icon {
    width: 48px;
    height: 48px;
  }

  .weather-details h4 {
    font-size: 1.1rem;
  }

  .weather-temp {
    font-size: 1rem;
  }
}

/* Security and Captcha Styles */
.captcha-group {
  position: relative;
}

.captcha-question {
  background: linear-gradient(
    135deg,
    rgba(79, 195, 247, 0.1),
    rgba(129, 199, 132, 0.1)
  );
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(79, 195, 247, 0.3);
  margin: 0.5rem 0;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  font-size: 1.1rem;
}

.refresh-captcha {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
  font-family: inherit;
}

.refresh-captcha:hover {
  background: var(--vibrant);
  transform: translateY(-1px);
}

.refresh-captcha i {
  font-size: 0.9rem;
}

/* Honeypot fields - ensure they're completely hidden */
input[name="website"],
input[name="email_confirm"] {
  position: absolute !important;
  left: -9999px !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  z-index: -1 !important;
}

/* Enhanced security indicators */
.form-group.captcha-group label i {
  color: var(--secondary);
  margin-right: 0.3rem;
}

/* Mobile responsive adjustments for captcha */
@media (max-width: 768px) {
  .captcha-question {
    font-size: 1rem;
    padding: 0.8rem;
  }

  .refresh-captcha {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .captcha-question {
    font-size: 0.95rem;
    padding: 0.7rem;
  }

  .refresh-captcha {
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
  }
}

/* Success state for captcha */
form .captcha-group input.success {
  border-color: var(--accent) !important;
  background: rgba(129, 199, 132, 0.05);
  box-shadow: 0 0 0 2px rgba(129, 199, 132, 0.2);
}

/* Error state for captcha */
form .captcha-group input.error {
  border-color: var(--secondary) !important;
  background: rgba(255, 75, 92, 0.05);
  box-shadow: 0 0 0 2px rgba(255, 75, 92, 0.2);
}

/* Loading state enhancement for form submission */
form.loading .captcha-group {
  opacity: 0.6;
  pointer-events: none;
}

form.loading .refresh-captcha {
  background: #ccc;
  cursor: not-allowed;
}

/* Enhanced form security indicator */
.security-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(129, 199, 132, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(129, 199, 132, 0.2);
}

.security-indicator i {
  color: var(--accent);
}

/* Enhanced accessibility for security features */
.captcha-group [aria-label],
.refresh-captcha[aria-label] {
  outline: none;
}

.captcha-group [aria-label]:focus,
.refresh-captcha[aria-label]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Weather error state styling enhancement */
.weather-info.error {
  border-color: var(--secondary);
  background: linear-gradient(
    135deg,
    rgba(255, 75, 92, 0.1),
    rgba(255, 255, 255, 0.95)
  );
}

.weather-info.error .weather-header i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Additional styles to replace inline styles */
.hire-agreement-link {
  color: var(--secondary);
  font-weight: bold;
  text-decoration: underline;
}

.facebook-iframe {
  border: none;
  overflow: hidden;
}

.privacy-policy-content {
  margin: 1.5rem 0;
}

.privacy-policy-footer {
  font-size: 0.9rem;
  margin-top: 1rem;
}

.privacy-policy-footer a {
  color: var(--white);
}

.hire-agreement-footer {
  text-align: center;
  font-weight: bold;
  color: var(--secondary);
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

.facebook-link-box {
  background: var(--light-gray);
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}

.facebook-link-box p {
  margin-bottom: 1rem;
  color: var(--text);
}

.facebook-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1877f2;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.facebook-link:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.facebook-link i {
  font-size: 1.2rem;
}
