/* 
 * Toby App - Main stylesheet
 * HTML/CSS/JS Version
 */

/* ---------- Base ---------- */
:root {
  /* Colors */
  --toby-yellow: #ffcc00;
  --toby-dark: #1a1a1a;
  --toby-blue: #3b82f6;
  --toby-green: #10b981;
  --toby-light: #f5f5f5;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;

  /* Typography */
  /* Platform primary font: Stack Sans Text. Use system fallbacks where needed. */
  --font-sans: 'Stack Sans Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* Display headings may use Poppins for subtle difference if desired */
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --spacing-0: 0;
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;

  /* Other */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-md: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 0.75rem;
  --border-radius-2xl: 1rem;
  --border-radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--white);
}

/* Make form controls and buttons inherit the platform font-family so they match the rest of the site */
input,
textarea,
select,
button,
button *,
label {
  /* Ensure form controls use primary Stack Sans Text */
  font-family: var(--font-sans) !important;
  font-size: inherit;
}

/* Ensure placeholders use the same font and a muted color */
input::placeholder,
textarea::placeholder {
  font-family: inherit;
  color: var(--gray-400);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--toby-dark);
  margin-bottom: var(--spacing-4);
}

.section-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-4);
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 204, 0, 0.1);
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 32rem;
  margin: 0 auto var(--spacing-8);
  text-align: center;
}

.text-yellow {
  color: var(--toby-yellow);
  text-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
}

.text-blue {
  color: var(--toby-blue);
}

.text-green {
  color: var(--toby-green);
}

/* ---------- Layout ---------- */
.toby-container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .toby-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .toby-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section-header {
  margin-bottom: 3rem;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background-color: var(--toby-dark);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  /* Buttons should inherit the body font (var(--font-sans)) */
  font-family: inherit;
}

/* Asegurar que todo el botón sea clickeable, no solo el texto */
.btn-primary > *,
.btn-secondary > *,
a.btn-primary > *,
a.btn-secondary > *,
button > i,
button > span,
a > i,
a > span {
  pointer-events: none;
}

.btn-primary:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

/* Responsive adjustments for primary buttons - ONLY for mobile */
@media (max-width: 768px) {
  .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    min-height: 48px;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .btn-primary {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
}

.btn-secondary {
  display: inline-block;
  background-color: var(--toby-yellow);
  color: var(--toby-dark);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-secondary:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
  background-color: rgba(255, 204, 0, 0.1);
}

/* Responsive adjustments for secondary buttons - ONLY for mobile */
@media (max-width: 768px) {
  .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    min-height: 48px;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .btn-secondary {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--border-radius-full);
  background-color: var(--toby-yellow);
  margin-right: 0.5rem;
}

.logo-icon span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--toby-dark);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--toby-dark);
}

.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
    gap: 1.5rem;
  }
}

.nav-link {
  color: var(--gray-800);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--toby-yellow);
}

.desktop-cta {
  display: none;
}

@media (min-width: 768px) {
  .desktop-cta {
    display: block;
  }
}

.mobile-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 60;
}

.mobile-menu-button:hover {
  border-color: var(--toby-yellow);
  background-color: rgba(255, 204, 0, 0.1);
}

.mobile-menu-button.active {
  border-color: var(--toby-yellow);
  background-color: var(--toby-yellow);
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
}

.menu-icon, .close-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gray-900);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-button.active .menu-icon {
  transform: rotate(180deg);
}

.mobile-menu-button.active .close-icon {
  transform: rotate(0deg);
}

.hidden {
  display: none;
}

/* Mobile Menu - Slide Down from Top */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 55;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s ease,
              visibility 0.3s ease;
  overflow: hidden;
  border-bottom-left-radius: var(--border-radius-xl);
  border-bottom-right-radius: var(--border-radius-xl);
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  padding: 0.875rem 1rem;
  color: var(--gray-900);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  border-radius: var(--border-radius-lg);
  opacity: 0;
  transform: translateY(-10px);
}

.mobile-menu.active .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-nav-link:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu.active .mobile-nav-link:nth-child(2) {
  transition-delay: 0.15s;
}

.mobile-menu.active .mobile-nav-link:nth-child(3) {
  transition-delay: 0.2s;
}

.mobile-nav-link:hover {
  color: var(--toby-dark);
  background-color: rgba(255, 204, 0, 0.15);
  padding-left: 1.25rem;
}

.mobile-nav-link:active {
  background-color: rgba(255, 204, 0, 0.25);
}

.mobile-menu-cta {
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease 0.25s;
}

.mobile-menu.active .mobile-menu-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Hide unused elements in simplified menu */
.mobile-menu-logo,
.mobile-menu-close {
  display: none;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 9rem 0 4rem;
  background-image: linear-gradient(to bottom, rgba(255, 204, 0, 0.3), white);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
  }
}

.hero-text {
  width: 100%;
  margin-bottom: 0;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-text {
    width: 55%;
    margin-bottom: 0;
    text-align: left;
  }
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

.hero-image {
  width: 100%;
  display: flex;
  justify-content: center;
  perspective: 1000px;
  perspective-origin: center center;
}

@media (min-width: 1024px) {
  .hero-image {
    width: 40%;
    justify-content: center;
  }
}

.hero-image img {
  width: auto;
  max-width: 280px;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--border-radius-2xl);
  box-shadow: var(--shadow-xl);
}

/* Hero Floating Image Smooth Vertical Effect with Perspective */
.hero-floating-image {
  animation: float3D 4s ease-in-out infinite;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 20px 30px rgba(255, 204, 0, 0.2));
  will-change: transform;
  transform: rotateX(0deg) rotateY(-20deg);
  transform-style: preserve-3d;
}

.hero-floating-image:hover {
  transform: rotateX(0deg) rotateY(-20deg) scale(1.05);
  filter: drop-shadow(0 25px 40px rgba(255, 204, 0, 0.3));
  animation-play-state: paused;
}

/* Responsive adjustments for floating image */
@media (max-width: 768px) {
  .hero-floating-image {
    animation: float3DMobile 4s ease-in-out infinite;
    max-width: 220px;
    max-height: 400px;
  }
  
  .hero-floating-image:hover {
    transform: scale(1.02);
    animation-play-state: running;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .hero-floating-image {
    max-width: 250px;
    max-height: 450px;
  }
}

@keyframes float3D {
  0%, 100% {
    transform: rotateX(5deg) rotateY(-10deg) translateY(0px);
  }
  25% {
    transform: rotateX(5deg) rotateY(-10deg) translateY(-8px);
  }
  50% {
    transform: rotateX(5deg) rotateY(-10deg) translateY(-12px);
  }
  75% {
    transform: rotateX(5deg) rotateY(-10deg) translateY(-6px);
  }
}

@keyframes float3DMobile {
  0%, 100% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(-6px);
  }
  50% {
    transform: translateY(-10px);
  }
  75% {
    transform: translateY(-4px);
  }
}

/* ---------- Features Section ---------- */
.features {
  padding: 4rem 0;
  background-color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background-color: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 204, 0, 0.2);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
}

.icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--toby-blue);
}

.feature-card:nth-child(even) .icon {
  color: var(--toby-green);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--gray-600);
}

/* ---------- Stats Section ---------- */
.stats {
  padding: 4rem 0;
  background-color: rgba(255, 204, 0, 0.1);
}

.stats-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.stats-text {
  width: 100%;
}

@media (min-width: 768px) {
  .stats-text {
    width: 50%;
  }
}

.stats-title {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .stats-title {
    font-size: 2.25rem;
  }
}

.stats-description {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  background-color: var(--white);
  padding: 1rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray-600);
}

.stats-image {
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .stats-image {
    width: 50%;
  }
}

.stats-image img {
  width: 90%;
  max-width: 26rem;
  height: 25rem;
  object-fit: cover;
  border-radius: var(--border-radius-2xl);
  box-shadow: var(--shadow-xl);
}

/* ---------- Testimonials Section ---------- */
.testimonials {
  padding: 4rem 0;
  background-color: var(--white);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-slider {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-rating {
  display: flex;
  color: var(--toby-yellow);
  margin-bottom: 1rem;
}

.star {
  width: 1.25rem;
  height: 1.25rem;
}

.testimonial-text {
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 3rem;
  height: 3rem;
  border-radius: var(--border-radius-full);
  object-fit: cover;
  margin-right: 0.75rem;
}

.author-name {
  font-weight: 600;
  margin-bottom: 0;
}

.author-description {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ---------- Signup Form Section ---------- */
.signup {
  padding: 4rem 0;
  background-color: var(--toby-light);
}

.signup-form-container {
  max-width: 48rem;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--border-radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .signup-form-container {
    flex-direction: row;
  }
}

.signup-benefits {
  background-color: var(--toby-yellow);
  color: var(--toby-dark);
  padding: 2rem;
  flex: 1;
}

@media (min-width: 768px) {
  .signup-benefits {
    width: 33.333333%;
  }
}

.benefits-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.benefit-item {
  display: flex;
  align-items: start;
  margin-bottom: 1rem;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--white);
  border-radius: var(--border-radius-full);
  margin-right: 0.75rem;
  font-size: 0.75rem;  color: var(--toby-dark);
}

.info-content {
  margin: 0;
}

.info-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.info-content p:last-child {
  margin-bottom: 0;
}

.signup-form {
  padding: 2rem;
  flex: 2;
}

@media (min-width: 768px) {
  .signup-form {
    width: 66.666667%;
  }
}

.user-type-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .user-type-selector {
    flex-direction: row;
  }
}

/* Responsive adjustments for small screens */
@media (max-width: 639px) {
  .user-type-selector {
    gap: 0.5rem;
  }
}

.user-type-selector-with-close {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 639px) {
  .user-type-selector-with-close {
    gap: 0.75rem;
    align-items: stretch;
  }
}

.user-type-selector-with-close .user-type-selector {
  margin-bottom: 0;
  flex: 1;
}

.user-type-selector-with-close .modal-close {
  margin-top: 0;
  padding: 0.75rem;
  min-width: 48px;
  height: 48px;
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .user-type-selector-with-close .modal-close {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
  }
}

.user-type-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--gray-200);
  background: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  font-weight: 500;
  text-align: center;
}

.user-type-btn:hover {
  border-color: rgba(255, 204, 0, 0.5);
  background-color: rgba(255, 204, 0, 0.05);
}

.user-type-btn.active {
  border-color: var(--toby-yellow);
  background-color: rgba(255, 204, 0, 0.1);
  font-weight: 600;
  color: var(--toby-dark);
}

/* Responsive adjustments for user type buttons - ONLY for mobile */
@media (max-width: 639px) {
  .user-type-btn {
    font-size: 0.8rem;
    padding: 0.625rem 0.75rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .user-type-btn {
    font-size: 0.75rem;
    padding: 0.5rem;
    min-height: 40px;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--gray-300);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--gray-300);
  background-color: var(--white);
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  appearance: none;
  transition: all 0.2s ease;
}

.form-group select:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.5);
}

/* Checkbox group styling */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
  user-select: none;
}

.checkbox-label:hover {
  background-color: var(--gray-50);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.checkmark {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

/* Walker fields container */
#walker-fields {
  animation: fadeIn 0.3s ease-in-out;
}

#pet-owner-fields {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive for checkbox groups */
@media (max-width: 768px) {
  .checkbox-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .checkbox-label {
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
  }
}

/* ---------- FAQ Section ---------- */
.faq {
  padding: 4rem 0;
  background-color: var(--white);
}

.faq-container {
  max-width: 48rem;
  margin: 0 auto;
}

.accordion {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--gray-200);
}

.accordion-toggle {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: transparent;
  border: none;
  font-weight: 500;
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.accordion-toggle:hover {
  color: var(--toby-yellow);
}

.accordion-toggle::after {
  content: '+';
  font-size: 1.25rem;
}

.accordion-toggle.active::after {
  content: '−';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 0;
}

.accordion-content.active {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.accordion-content p {
  color: var(--gray-600);
}

.faq-cta {
  text-align: center;
  margin-top: 3rem;
}

.faq-cta p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--toby-dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-title {
  font-size: 1.25rem;
  color: var(--toby-yellow);
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--toby-yellow);
}

.social-link svg {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--toby-yellow);
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--toby-yellow);
  margin-right: 0.75rem;
}

.contact-item a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--toby-yellow);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* ---------- Floating Button ---------- */
.floating-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  animation: fadeIn 0.5s ease-out 1.5s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.floating-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--toby-yellow);
  color: var(--toby-dark);
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 204, 0, 0.3);
}

.floating-button a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.floating-button svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ---------- Toast Notification ---------- */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
}

.toast {
  background-color: var(--white);
  color: var(--gray-800);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  animation: slideIn 0.3s ease-out;
}

.toast-success {
  border-left: 4px solid var(--toby-green);
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-icon {
  margin-right: 0.75rem;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-message {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  margin-left: 0.75rem;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ---------- Animations ---------- */
.floating-image {
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.bouncing-image {
  animation: none; /* Disable CSS animation in favor of GSAP */
  transition: transform 0.3s ease;
}

/* ---------- GSAP Animation Support ---------- */

/* Initial states for animation elements - will be overridden by GSAP */
.animate-fade-up,
.animate-section-header,
.animate-card,
.animate-stats-content,
.animate-stat-card,
.animate-stats-image,
.animate-testimonial,
.animate-form-container,
.animate-faq-container,
.animate-accordion-item,
.animate-cta {
  opacity: 0;
  will-change: transform, opacity;
}

/* Smooth transitions for all animated elements */
.animate-fade-up,
.animate-section-header,
.animate-card,
.animate-stats-content,
.animate-stat-card,
.animate-stats-image,
.animate-testimonial,
.animate-form-container,
.animate-faq-container,
.animate-accordion-item,
.animate-cta {
  transition: all 0.3s ease;
}

/* Enhanced header with backdrop blur support */
.header {
  transition: all 0.3s ease;
  backdrop-filter: blur(0px);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
}

/* Floating button enhanced animations */
.floating-button {
  transform-origin: center;
  transition: all 0.3s ease;
}

/* Card hover effects that work well with GSAP */
.feature-card,
.testimonial-card,
.stat-card {
  transition: all 0.3s ease;
}

.feature-card:hover,
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Smooth accordion animations */
.accordion-item {
  transition: all 0.3s ease;
}

.accordion-item:hover {
  transform: translateX(5px);
}

/* Enhanced bouncing image with GSAP override */
.bouncing-image {
  animation: none; /* Disable CSS animation in favor of GSAP */
  transition: transform 0.3s ease;
}

/* Subtle shadow effects for depth */
.hero-title,
.section-title {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Stagger animation support */
.features-grid .feature-card:nth-child(1) { animation-delay: 0s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(4) { animation-delay: 0.3s; }

.stats-grid .stat-card:nth-child(1) { animation-delay: 0s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 0.1s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.2s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.3s; }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .animate-section-header,
  .animate-card,
  .animate-stats-content,
  .animate-stat-card,
  .animate-stats-image,
  .animate-testimonial,
  .animate-form-container,
  .animate-faq-container,
  .animate-accordion-item,
  .animate-cta {
    opacity: 1;
    transform: none;
  }
  
  .bouncing-image {
    animation: none;
    transform: none;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Smooth performance optimizations */
.animate-card,
.animate-testimonial,
.animate-stat-card {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ---------- Coverage and Availability Section ---------- */
.coverage-availability {
  padding: 4rem 0;
  background: #ffcc004d;
}

@media (min-width: 768px) {
  .app-roadmap {
    padding: 2rem;
  }
}

.roadmap-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--toby-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.roadmap-description {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.scroll-hint {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  display: none;
}

@media (min-width: 1024px) {
  .scroll-hint {
    display: block;
  }
}

.scroll-hint-icon {
  display: inline-block;
  animation: slide 2s infinite;
  margin-left: 0.5rem;
}

@keyframes slide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .roadmap-timeline {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0 2rem 0;
    gap: 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--toby-primary) var(--gray-200);
  }
  
  .roadmap-timeline::-webkit-scrollbar {
    height: 6px;
  }
  
  .roadmap-timeline::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 3px;
  }
  
  .roadmap-timeline::-webkit-scrollbar-thumb {
    background: var(--toby-primary);
    border-radius: 3px;
  }
  
  .roadmap-timeline::-webkit-scrollbar-thumb:hover {
    background: var(--toby-dark);
  }
  
  .roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 3rem;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--toby-yellow), var(--toby-primary), var(--gray-300));
    z-index: 1;
  }
}

.roadmap-item {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  background: var(--white);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-xl);
  padding: 1rem;
  transition: all 0.3s ease;
}

@media (min-width: 1024px) {
  .roadmap-item {
    width: 120px;
    min-height: 220px;
    flex-shrink: 0;
  }
}

.roadmap-item::before {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 3px solid var(--white);
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: none;
}

@media (min-width: 1024px) {
  .roadmap-item::before {
    display: block;
    top: 2.5rem;
  }
}

.roadmap-item.completed {
  border-color: var(--toby-yellow);
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.05) 0%, var(--white) 100%);
}

.roadmap-item.completed::before {
  background: var(--toby-yellow);
  box-shadow: 0 0 0 2px var(--toby-yellow);
}

.roadmap-item.active {
  border-color: var(--toby-primary);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, var(--white) 100%);
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.roadmap-item.active::before {
  background: var(--toby-primary);
  box-shadow: 0 0 0 2px var(--toby-primary);
  animation: pulse 2s infinite;
}

.roadmap-item.upcoming {
  border-color: var(--gray-400);
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.05) 0%, var(--white) 100%);
}

.roadmap-item.upcoming::before {
  background: var(--gray-400);
  box-shadow: 0 0 0 2px var(--gray-400);
}

.roadmap-item.future {
  border-color: var(--gray-300);
  background: linear-gradient(135deg, rgba(209, 213, 219, 0.05) 0%, var(--white) 100%);
  opacity: 0.8;
}

.roadmap-item.future::before {
  background: var(--gray-300);
  box-shadow: 0 0 0 2px var(--gray-300);
}

@keyframes pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.1);
  }
}

.roadmap-date {
  display: inline-block;
  background: var(--gray-100);
  color: var(--toby-dark);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-full);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.roadmap-item.completed .roadmap-date {
  background: var(--toby-yellow);
  color: var(--toby-dark);
}

.roadmap-item.active .roadmap-date {
  background: var(--toby-primary);
  color: var(--white);
}

.roadmap-item.upcoming .roadmap-date {
  background: var(--gray-400);
  color: var(--white);
}

.roadmap-item.future .roadmap-date {
  background: var(--gray-300);
  color: var(--white);
}

.roadmap-content {
  text-align: center;
}

.roadmap-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 auto 0.75rem;
  padding: 0.375rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1023px) {
  .roadmap-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.roadmap-item.completed .roadmap-icon {
  background: rgba(255, 204, 0, 0.1);
  color: var(--toby-yellow);
}

.roadmap-item.active .roadmap-icon {
  background: rgba(59, 130, 246, 0.1);
  color: var(--toby-primary);
}

.roadmap-item.upcoming .roadmap-icon {
  background: rgba(156, 163, 175, 0.1);
  color: var(--gray-500);
}

.roadmap-item.future .roadmap-icon {
  background: rgba(209, 213, 219, 0.1);
  color: var(--gray-400);
}

.roadmap-icon svg {
  width: 0.75rem;
  height: 0.75rem;
}

.roadmap-feature {
  font-size: 1rem;
  font-weight: 600;
  color: var(--toby-dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.roadmap-status {
  color: var(--gray-600);
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.roadmap-item.active .roadmap-status {
  color: var(--toby-primary);
  font-weight: 600;
}

.roadmap-details {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.detail-item {
  background: var(--gray-50);
  color: var(--gray-700);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.625rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  text-align: center;
}

.roadmap-item.completed .detail-item {
  background: rgba(255, 204, 0, 0.1);
  border-color: rgba(255, 204, 0, 0.2);
  color: var(--toby-dark);
}

.roadmap-item.active .detail-item {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--toby-primary);
}

.roadmap-note {
  text-align: center;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--border-radius-lg);
  border: 2px dashed var(--gray-300);
}

.roadmap-note p {
  color: var(--gray-600);
  margin: 0;
}

.roadmap-link {
  color: var(--toby-primary);
  text-decoration: none;
  font-weight: 600;
}

.roadmap-link:hover {
  text-decoration: underline;
}

/* Coverage CTA */
.coverage-cta {
  background: var(--toby-primary);
  border-radius: var(--border-radius-2xl);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
}

.cta-content {
  max-width: 32rem;
  margin: 0 auto;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.share-btn {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.share-btn:hover {
  background: var(--white);
  color: var(--toby-primary);
}

/* Verification Process Section Updates */
.verification-process {
  padding: 4rem 0;
  background: #ffcc004d;
}

.verification-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .verification-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .verification-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.verification-step {
  background: var(--white);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.verification-step:hover {
  border-color: var(--toby-dark);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.step-number {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--toby-yellow);
  color: var(--toby-dark);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.step-icon {
  background: var(--toby-light);
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--toby-primary);
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--toby-dark);
  margin-bottom: 1rem;
}

.step-description {
  color: var(--gray-600);
  line-height: 1.6;
}

.verification-cta {
  background: var(--white);
  border-radius: var(--border-radius-2xl);
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.verification-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.verification-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--toby-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.verification-message {
  font-size: 1.125rem;
  color: var(--toby-dark);
  font-weight: 500;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  .roadmap-item {
    padding: 1rem;
  }
  
  .roadmap-item::before {
    display: none;
  }
    .roadmap-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.75rem;
    padding: 0.375rem;
  }
  
  .roadmap-icon svg {
    width: 0.875rem;
    height: 0.875rem;
  }
  
  .roadmap-feature {
    font-size: 1rem;
  }
  
  .verification-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .coverage-cta {
    padding: 2rem 1rem;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
}

/* Why Choose Toby Section */
.why-choose-toby {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.why-choose-toby::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 204, 0, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--toby-yellow);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  color: var(--toby-yellow);
  background: rgba(255, 204, 0, 0.1);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  background: var(--toby-yellow);
  color: var(--toby-dark);
  transform: scale(1.1);
}

.benefit-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--toby-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.benefit-description {
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 0.9rem;
}

/* Stats Section */
.stats-section {
  background: var(--white);
  border-radius: var(--border-radius-2xl);
  padding: 3rem 2rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--toby-yellow);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  line-height: 1;
}

.stat-label {
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Enhanced CTA Section */
.why-choose-toby .cta-section {
  background: linear-gradient(135deg, var(--toby-yellow) 0%, #ffb800 100%);
  border-radius: var(--border-radius-2xl);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.why-choose-toby .cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, -10px) rotate(180deg); }
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  color: var(--toby-dark);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cta-description {
  color: var(--toby-dark);
  opacity: 0.8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.cta-buttons .btn-primary {
  background: var(--toby-dark);
  color: var(--white);
  border: 2px solid var(--toby-dark);
  font-weight: 700;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  min-width: 280px;
}

.cta-buttons .btn-primary:hover {
  background: var(--white);
  color: var(--toby-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-buttons .btn-secondary {
  background: transparent;
  color: var(--toby-dark);
  border: 2px solid var(--toby-dark);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  min-width: 200px;
}

.cta-buttons .btn-secondary:hover {
  background: var(--toby-dark);
  color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
  .why-choose-toby {
    padding: 3rem 0;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  
  .benefit-card {
    padding: 1.5rem;
  }
  
  .stats-section {
    padding: 2rem 1rem;
    margin-bottom: 3rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .why-choose-toby .cta-section {
    padding: 2rem 1rem;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Modal Styles ---------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  max-width: 56rem;
  max-height: 90vh;
  width: 100%;
  background: var(--white);
  border-radius: var(--border-radius-2xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  transform: scale(0.9) translateY(-20px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--toby-dark);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius-lg);
  color: var(--gray-600);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background-color: var(--gray-100);
  color: var(--toby-dark);
}

.modal-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.modal-content {
  max-height: calc(90vh - 80px);
  overflow-y: auto;
}

.modal-form {
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-container {
    max-width: 95vw;
    max-height: 95vh;
    margin: 0;
  }
  
  .modal-header {
    padding: 1rem;
  }
  
  .modal-title {
    font-size: 1.25rem;
  }
  
  .modal-form .signup-form-container {
    flex-direction: column;
  }
  
  .modal-form .signup-benefits {
    width: 100%;
  }
  
  .modal-form .signup-form {
    width: 100%;
  }
}

/* Modal animation improvements */
@media (prefers-reduced-motion: reduce) {
  .modal-overlay,
  .modal-container {
    transition: none;
  }
}

/* ---------- Enhanced Form Styles for Walker Registration ---------- */

/* Checkbox Groups */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}

.form-check {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  transition: all 0.2s ease;
  cursor: pointer;
}

.form-check:hover {
  background: rgba(255, 204, 0, 0.05);
  border-color: rgba(255, 204, 0, 0.3);
}

.form-check-input {
  margin: 0;
  margin-right: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--toby-yellow);
  cursor: pointer;
}

.form-check-label {
  margin: 0;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--gray-700);
  font-weight: 500;
}

.form-check:has(.form-check-input:checked) {
  background: rgba(255, 204, 0, 0.1);
  border-color: var(--toby-yellow);
}

.form-check:has(.form-check-input:checked) .form-check-label {
  color: var(--toby-dark);
  font-weight: 600;
}

/* Walker Fields Styling */
#walker-fields {
  border-top: 2px solid var(--gray-200);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

#walker-fields .form-group:first-child {
  margin-top: 0;
}

/* Select styling for walker forms */
#walker-fields select.form-control {
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  appearance: none;
}

/* Enhanced textarea styling */
#walker-fields textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Number input styling */
#walker-fields input[type="number"] {
  padding-right: 1rem;
}

/* Responsive adjustments for walker fields */
@media (max-width: 768px) {
  .checkbox-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .form-check {
    padding: 0.5rem;
  }
  
  .form-check-label {
    font-size: 0.85rem;
  }
}

/* Auth card enhancements for walker registration */
.auth-card {
  max-width: 600px;
  width: 100%;
}

#walker-fields .auth-card {
  max-width: 700px;
}

/* Form section headers */
.form-section-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--toby-dark);
  margin-bottom: 1rem;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.form-section-header:first-child {
  margin-top: 0;
}

/* ---------- Auth Page Styles ---------- */
.auth-page {
  background: linear-gradient(135deg, #ffcc00 0%, #ffd633 100%);
  min-height: 100vh;
}

.auth-section {
  padding: 2rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.auth-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.auth-welcome {
  color: var(--toby-dark);
}

.auth-welcome h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.auth-welcome p {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.welcome-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--white);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--toby-dark);
}

/* Ensure SVGs inside the icon are block-level and centered visually */
.feature-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.feature-item > span {
  display: block;
  align-self: center;
}

.feature-item span {
  font-weight: 500;
  color: var(--toby-dark);
}

/* Auth form container */
.auth-form-container {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.auth-form {
  max-width: 100%;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--toby-dark);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: var(--gray-600);
  font-size: 1rem;
}

/* User type selector */
.user-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.user-type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  background: var(--white);
  color: var(--gray-600);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 3.5rem;
}

.user-type-btn:hover {
  border-color: var(--toby-yellow);
  background: #fffef0;
}

.user-type-btn.active {
  border-color: var(--toby-yellow);
  background: var(--toby-yellow);
  color: var(--toby-dark);
}

/* Onboarding Progress */
.onboarding-progress {
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: relative;
  align-items: center;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  background: var(--gray-200);
  z-index: 1;
  border-radius: var(--border-radius-full);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 150px;
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: var(--border-radius-full);
  background: var(--white);
  border: 3px solid var(--gray-200);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.step-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-align: center;
  transition: all 0.3s ease;
  font-weight: 500;
  line-height: 1.4;
  max-width: 120px;
  white-space: normal;
  margin-top: 0.5rem;
}

/* Active and completed step states */
.step.active .step-number,
.step.completed .step-number {
  border-color: var(--toby-yellow);
  background: var(--toby-yellow);
  color: var(--toby-dark);
  box-shadow: 0 3px 6px rgba(255, 204, 0, 0.3);
}

.step.active .step-label,
.step.completed .step-label {
  color: var(--toby-dark);
  font-weight: 600;
}

/* Progress bar container */
.progress-bar {
  position: relative;
  height: 3px;
  background: transparent;
  margin: -1.5rem 1.5rem 1rem 1.5rem;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--toby-yellow);
  z-index: 2;
  border-radius: var(--border-radius-full);
  transition: width 0.5s ease;
  width: 0%;
}

@media (max-width: 768px) {
  .progress-bar {
    margin: -1.25rem 1rem 1rem 1rem;
  }
}

/* Adjust spacing for mobile */
@media (max-width: 768px) {
  .progress-steps {
    padding: 0 0.5rem;
  }
  
  .progress-steps::before {
    left: 1rem;
    right: 1rem;
  }
  
  .step {
    max-width: 100px;
  }
  
  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
  }
  
  .step-label {
    font-size: 0.75rem;
    max-width: 90px;
    margin-top: 0.375rem;
  }
  
  .progress-bar {
    margin: -1.25rem 1rem 1rem 1rem;
  }
}

/* Content section transitions */
.content-section {
  opacity: 0;
  position: absolute;
  width: 100%;
  transition: opacity 0.3s ease;
}

.content-section.active {
  opacity: 1;
  position: relative;
}

.welcome-content {
  position: relative;
  min-height: 400px;
}


/* Enable global loader styles */
.btn-loading {
    color: transparent !important;
    position: relative;
    pointer-events: none;
    cursor: wait;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
}

/* Specific styling for register page spinner */
.auth-page .btn-loading::after {
    margin-top: -13px;
    border: 3px solid rgb(255 255 255);
}

@keyframes btn-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
