/* ========================================
   INDEX PAGE - HERO DESIGN
   ======================================== */

/* CSS Custom Properties for colors */
:root {
  --yellow-primary: #F7E226;
  --yellow-rgb: 247, 226, 38;
  --white-pure: #FFFFFF;
  --white-rgb: 255, 255, 255;
}

/* Body - override padding and color fixes for mobile */
body.page-home {
  padding-bottom: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Force sRGB color space */
  color-scheme: light only;
  /* Pure white background */
  background: var(--white-pure);
  background-color: rgb(var(--white-rgb));
  /* Flex layout for footer positioning */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Color fixes for correct display on mobile devices */
body.page-home,
body.page-home html {
  -webkit-text-size-adjust: 100%;
  background-color: rgb(var(--white-rgb));
}

/* Hardware acceleration for critical elements */
body.page-home .hero,
body.page-home .hero-card,
body.page-home .hero-inner,
body.page-home input,
body.page-home button {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Header - fully transparent on home page */
body.page-home header {
  background: transparent;
  background-color: transparent;
  position: relative;
  z-index: 15; /* Above confetti */
  box-shadow: none;
  border: none;
}

/* Header container - fixed height */
body.page-home #app-header {
  flex: 0 0 auto;
}

/* =========================================================
   HERO - WHITE BACKGROUND WITH FALLING CONFETTI
   ========================================================= */
body.page-home .hero {
  position: relative;
  margin: 0;
  padding: 0;
  min-height: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  overflow: visible;
  /* Pure white background */
  background: var(--white-pure);
  background-color: rgb(var(--white-rgb));
}

/* Main content - allows footer to be at the end */
body.page-home #app-footer {
  margin-top: auto;
}

/* Confetti container - created with JavaScript */
body.page-home .confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/* Confetti styles */
body.page-home .confetti {
  position: absolute;
  width: 6px;
  height: 16px;
  background: #F7E226;
  top: -20px;
  opacity: 0.8;
  animation: fall linear infinite;
}

/* Different colors for confetti */
body.page-home .confetti:nth-child(2n) { background: #FF6B6B; }
body.page-home .confetti:nth-child(3n) { background: #4ECDC4; }
body.page-home .confetti:nth-child(4n) { background: #95E1D3; }
body.page-home .confetti:nth-child(5n) { background: #F38181; }
body.page-home .confetti:nth-child(6n) { background: #AA96DA; }
body.page-home .confetti:nth-child(7n) { background: #FCBAD3; }
body.page-home .confetti:nth-child(8n) { background: #A8E6CF; }

/* Keyframe animation for falling */
@keyframes fall {
  to {
    transform: translateY(100vh) rotate(360deg);
  }
}

/* Keyframe for rotate */
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

/* Inner container for content */
body.page-home .hero-inner {
  position: relative;
  z-index: 2;
  width: min(1440px, 94vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  min-height: auto;
  padding: 60px 0;
  overflow: visible;
  /* Transparent background to see white underneath */
  background: transparent;
}

/* ===== YELLOW CARD ===== */
body.page-home .hero-card {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  margin: 0 auto;
  width: 720px;
  max-width: 720px;
  height: auto;
  overflow: visible;
  background: transparent;
  will-change: transform;
  transform: translateZ(0);
}

/* Pseudo-element for trapezoid shape - doesn't clip dropdowns */
body.page-home .hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--yellow-primary);
  background-color: rgb(var(--yellow-rgb));
  border-radius: 20px;
  z-index: -1;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  forced-color-adjust: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body.page-home .hero-card-inner {
  position: relative;
  z-index: 3;
  padding: 40px 48px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Mobile: ensure dropdowns can overflow below the card */
@media (max-width: 768px) {
  body.page-home .hero-card {
    overflow: visible;
    padding-bottom: 20px;
  }
}

body.page-home .hero-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  margin: 0 0 16px;
  font-size: 44px;
  color: #514f4f;
  line-height: 1.2;
}

body.page-home .hero-sub {
  margin: 0 0 28px;
  color: #2d2d2d;
  font-size: 16px;
  line-height: 1.5;
}

/* ===== FORM INSIDE ===== */
body.page-home .hero .inline-form,
body.page-home #search .inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

body.page-home .hero .inline-form .custom-dropdown,
body.page-home .hero .inline-form input {
  min-width: 0;
}

body.page-home .hero .inline-form input,
body.page-home #search .inline-form input {
  width: 100%;
  margin: 0;
  background: var(--white-pure);
  background-color: rgb(var(--white-rgb));
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  /* Hardware acceleration */
  transform: translateZ(0);
  -webkit-appearance: none;
  appearance: none;
}

body.page-home .hero .inline-form input:focus-visible,
body.page-home #search .inline-form input:focus-visible {
  outline: none;
  border-color: #84c5ed;
  box-shadow: 0 0 0 3px rgba(132, 197, 237, 0.18), 0 2px 12px rgba(0, 0, 0, 0.12);
}

body.page-home .hero .inline-form input::placeholder,
body.page-home #search .inline-form input::placeholder {
  color: #999;
}

body.page-home .hero .inline-form button[type="submit"],
body.page-home #search .inline-form button[type="submit"] {
  grid-column: 1 / -1;
  padding: 16px 28px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #84c5ed 0%, #b9d4eb 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(37, 174, 243, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
}

body.page-home .hero .inline-form button[type="submit"]:hover,
body.page-home #search .inline-form button[type="submit"]:hover {
  transform: translateY(-2px);
}

/* Dropdowns */
body.page-home .custom-dropdown {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: visible;
}

/* All dropdown menus - open UPWARD */
body.page-home .dropdown-cities,
body.page-home .dropdown-browse-cities,
body.page-home .dropdown-ages,
body.page-home .dropdown-kids-count {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #84c5ed 0%, #b9d4eb 100%);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  z-index: 999999;
  max-height: 240px;
  overflow-y: auto;
  display: none;
  /* Hardware acceleration */
  transform: translateZ(0);
  -webkit-appearance: none;
  appearance: none;
}

body.page-home .dropdown-cities.show,
body.page-home .dropdown-browse-cities.show,
body.page-home .dropdown-ages.show,
body.page-home .dropdown-kids-count.show {
  display: block;
  animation: slideUp 0.25s ease;
}

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

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

body.page-home .dropdown-cities div,
body.page-home .dropdown-browse-cities div,
body.page-home .dropdown-ages div,
body.page-home .dropdown-kids-count div {
  padding: 12px 16px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.page-home .dropdown-cities div:last-child,
body.page-home .dropdown-browse-cities div:last-child,
body.page-home .dropdown-ages div:last-child,
body.page-home .dropdown-kids-count div:last-child {
  border-bottom: none;
}

body.page-home .dropdown-cities div:hover,
body.page-home .dropdown-browse-cities div:hover,
body.page-home .dropdown-ages div:hover,
body.page-home .dropdown-kids-count div:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding-left: 22px;
}

/* Scrollbars */
body.page-home .dropdown-cities::-webkit-scrollbar,
body.page-home .dropdown-browse-cities::-webkit-scrollbar,
body.page-home .dropdown-ages::-webkit-scrollbar,
body.page-home .dropdown-kids-count::-webkit-scrollbar {
  width: 6px;
}

body.page-home .dropdown-cities::-webkit-scrollbar-track,
body.page-home .dropdown-browse-cities::-webkit-scrollbar-track,
body.page-home .dropdown-ages::-webkit-scrollbar-track,
body.page-home .dropdown-kids-count::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

body.page-home .dropdown-cities::-webkit-scrollbar-thumb,
body.page-home .dropdown-browse-cities::-webkit-scrollbar-thumb,
body.page-home .dropdown-ages::-webkit-scrollbar-thumb,
body.page-home .dropdown-kids-count::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

body.page-home .dropdown-cities::-webkit-scrollbar-thumb:hover,
body.page-home .dropdown-browse-cities::-webkit-scrollbar-thumb:hover,
body.page-home .dropdown-ages::-webkit-scrollbar-thumb:hover,
body.page-home .dropdown-kids-count::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Hide decorative lines */
body.page-home .hero-stripes {
  display: none;
}

/* Hide .hero-photo if it exists in HTML */
body.page-home .hero-photo {
  display: none;
}

/* Mobile Dropdown Modal - Full screen overlay */
body.page-home .mobile-dropdown-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Use dvh for mobile viewport height that accounts for browser UI */
  height: 100dvh;
  background: transparent;
  z-index: 1000000;
  animation: fadeIn 0.2s ease;
  /* Prevent any scrolling on the overlay */
  overflow: hidden;
  /* Ensure it's always in the viewport */
  touch-action: none;
}

body.page-home .mobile-dropdown-overlay.show {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
}

body.page-home .mobile-dropdown-modal {
  position: relative;
  background: linear-gradient(135deg, #84c5ed 0%, #b9d4eb 100%);
  border-radius: 20px;
  max-height: 70vh;
  max-height: 70dvh;
  display: flex;
  flex-direction: column;
  animation: slideUpModal 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  /* Safe area for devices with notch/home indicator */
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body.page-home .mobile-dropdown-header {
  padding: 20px;
  padding-top: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  /* Visual indicator for dragging */
  position: relative;
}

/* Drag indicator line */
body.page-home .mobile-dropdown-header::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

body.page-home .mobile-dropdown-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

body.page-home .mobile-dropdown-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.2s ease;
}

body.page-home .mobile-dropdown-close:hover,
body.page-home .mobile-dropdown-close:active {
  background: rgba(255, 255, 255, 0.35);
}

body.page-home .mobile-dropdown-content {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
}

body.page-home .mobile-dropdown-content div {
  padding: 16px 20px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.15s ease;
  /* Prevent text selection while tapping */
  -webkit-user-select: none;
  user-select: none;
}

body.page-home .mobile-dropdown-content div:last-child {
  border-bottom: none;
  /* Extra padding for last item before safe area */
  padding-bottom: 20px;
}

body.page-home .mobile-dropdown-content div:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Hover only on devices that support it */
@media (hover: hover) {
  body.page-home .mobile-dropdown-content div:hover {
    background: rgba(255, 255, 255, 0.15);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpModal {
  from {
    transform: translateY(100%);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile dropdown adjustments - use modal on mobile, hide regular dropdowns */
@media (max-width: 1024px) {
  /* Hide regular dropdowns on mobile - we use the modal instead */
  body.page-home .dropdown-cities,
  body.page-home .dropdown-ages,
  body.page-home .dropdown-kids-count {
    display: none;
  }

  /* Browse venues dropdown stays as a regular dropdown on mobile */
  body.page-home .browse-venues-form .dropdown-browse-cities {
    bottom: auto;
    top: calc(100% + 4px);
  }

  /* Ensure inputs stay fully rounded on mobile since we use modal */
  body.page-home .custom-dropdown input:focus {
    border-radius: 10px;
  }
}

/* Desktop only - search dropdowns open upwards */
@media (min-width: 1025px) {
  body.page-home .dropdown-cities,
  body.page-home .dropdown-ages,
  body.page-home .dropdown-kids-count {
    bottom: calc(100% + 4px);
    top: auto;
  }

  /* Browse venues dropdown opens downward */
  body.page-home .browse-venues-form .dropdown-browse-cities {
    bottom: auto;
    top: calc(100% + 4px);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  body.page-home .hero-card {
    width: 100%;
    max-width: 720px;
  }
}

@media (max-width: 1024px) {
  body.page-home .hero-card {
    width: 100%;
    max-width: 640px;
  }

  body.page-home .hero-card-inner {
    padding: 36px 40px;
  }

  body.page-home .hero-title {
    font-size: 38px;
  }

  /* Tablet portrait: stack form fields and make them full width */
  body.page-home .hero .inline-form,
  body.page-home #search .inline-form {
    grid-template-columns: 1fr;
    max-width: none;
    width: 100%;
  }

  body.page-home .hero .inline-form .custom-dropdown,
  body.page-home #search .inline-form .custom-dropdown,
  body.page-home .hero .inline-form input,
  body.page-home #search .inline-form input {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body.page-home .hero .inline-form,
  body.page-home #search .inline-form {
    grid-template-columns: 1fr;
    max-width: none;
    width: 100%;
  }

  /* When fields are stacked (one per row), make them full width */
  body.page-home .hero .inline-form .custom-dropdown,
  body.page-home #search .inline-form .custom-dropdown {
    width: 100%;
  }

  body.page-home .hero .inline-form input,
  body.page-home #search .inline-form input {
    width: 100%;
  }

  body.page-home .hero-card {
    width: 100%;
    max-width: 90%;
  }

  body.page-home .hero-card-inner {
    padding: 32px 24px;
  }

  body.page-home .hero-title {
    font-size: 32px;
  }

  body.page-home .hero-sub {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  body.page-home .hero-card {
    border-radius: 20px;
    max-width: 95%;
  }

  body.page-home .hero-card-inner {
    padding: 28px 20px;
  }

  body.page-home .hero-title {
    font-size: 26px;
  }

  body.page-home .hero-sub {
    font-size: 14px;
  }

  body.page-home .hero-inner {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  body.page-home .hero {
    min-height: auto;
  }

  body.page-home .hero-card {
    border-radius: 18px;
    max-width: 96%;
  }

  body.page-home .hero-card-inner {
    padding: 22px 14px;
  }

  body.page-home .party-promo-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  body.page-home .hero-title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  body.page-home .hero-sub {
    font-size: 13px;
    margin-bottom: 20px;
  }

  body.page-home .hero-inner {
    padding: 25px 0;
    min-height: auto;
  }

  /* Form fields spacing on small mobile */
  body.page-home .hero .inline-form,
  body.page-home #search .inline-form {
    gap: 10px;
  }

  body.page-home .hero .inline-form input,
  body.page-home #search .inline-form input {
    padding: 12px 14px;
    font-size: 14px;
  }

  body.page-home .hero .inline-form button[type="submit"],
  body.page-home #search .inline-form button[type="submit"] {
    padding: 14px 24px;
    font-size: 15px;
  }
}

/* Very small screens (360px and below) */
@media (max-width: 360px) {
  body.page-home .hero {
    min-height: auto;
  }

  body.page-home .hero-card {
    border-radius: 16px;
    max-width: 98%;
  }

  body.page-home .hero-card-inner {
    padding: 18px 12px;
  }

  body.page-home .hero-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.25;
  }

  body.page-home .hero-sub {
    font-size: 12px;
    margin-bottom: 16px;
    line-height: 1.4;
  }

  body.page-home .hero-inner {
    padding: 20px 0;
    min-height: auto;
  }

  body.page-home .hero .inline-form,
  body.page-home #search .inline-form {
    gap: 8px;
  }

  body.page-home .hero .inline-form input,
  body.page-home #search .inline-form input {
    padding: 11px 12px;
    font-size: 13px;
    border-radius: 8px;
  }

  body.page-home .hero .inline-form button[type="submit"],
  body.page-home #search .inline-form button[type="submit"] {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Media query for devices with wide color gamut (Display P3) */
@media (color-gamut: p3) {
  body.page-home .hero-card {
    /* In P3 color space, use slightly more saturated yellow */
    background: rgb(var(--yellow-rgb));
    filter: saturate(0.95) brightness(1.02);
  }
}

/* For devices with sRGB only */
@media (color-gamut: srgb) {
  body.page-home .hero-card {
    background: rgb(var(--yellow-rgb));
  }
}

/* Fallback for old browsers */
@media not all and (color-gamut) {
  body.page-home .hero-card {
    background: var(--yellow-primary);
  }
}

/* Remove color adjustments from browser */
body.page-home .hero-card,
body.page-home input,
body.page-home button {
  forced-color-adjust: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* =========================================================
   PARTY PROMO CARD (inside hero)
   ========================================================= */
body.page-home .party-promo-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #84c5ed 0%, #b9d4eb 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(37, 174, 243, 0.3);
  transition: all 0.3s ease;
}

body.page-home .party-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 174, 243, 0.4);
}

/* =========================================================
   BROWSE VENUES CARD (inside hero)
   ========================================================= */
body.page-home .browse-venues-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
  max-width: 460px;
}

body.page-home .browse-venues-form .custom-dropdown {
  flex: 1;
}

/* Browse venues dropdown opens DOWNWARD (not upward like search dropdowns) */
body.page-home .browse-venues-form .dropdown-browse-cities {
  bottom: auto;
  top: calc(100% + 4px);
  animation-name: slideDown;
}

body.page-home .browse-venues-form input {
  width: 100%;
  margin: 0;
  background: var(--white-pure);
  background-color: rgb(var(--white-rgb));
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  transform: translateZ(0);
  -webkit-appearance: none;
  appearance: none;
}

body.page-home .browse-venues-form input:focus-visible {
  outline: none;
  border-color: #84c5ed;
  box-shadow: 0 0 0 3px rgba(132, 197, 237, 0.18), 0 2px 12px rgba(0, 0, 0, 0.12);
}

body.page-home .browse-venues-form input::placeholder {
  color: #999;
}

body.page-home .browse-venues-form .party-promo-btn {
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

@media (max-width: 480px) {
  body.page-home .browse-venues-form {
    flex-direction: column;
  }

  body.page-home .browse-venues-form .party-promo-btn {
    width: 100%;
    text-align: center;
  }
}

/* Clear button for optional fields - override global button styles */
body.page-home button.field-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  min-height: 20px;
  max-height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  color: #555;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-shadow: none;
  letter-spacing: 0;
  flex: 0 0 auto;
  z-index: 10;
  transition: background 0.2s ease;
}

body.page-home button.field-clear-btn:hover {
  background: rgba(0, 0, 0, 0.22);
  color: #333;
}

/* Ensure input has right padding for the clear button */
body.page-home .hero .inline-form .custom-dropdown input.has-clear-btn {
  padding-right: 34px;
}

/* Override for #search container */
body.page-home #search {
  margin: 0;
  padding: 0;
  max-width: none;
  width: auto;
}

/* =========================================================
   HOW IT WORKS SECTION
   ========================================================= */
body.page-home .how-it-works,
body.page-home .features,
body.page-home .faq,
body.page-home .about-platform {
  padding: 80px 0;
  background: var(--white-pure);
}

body.page-home .how-it-works {
  background: linear-gradient(180deg, #ffffff 0%, #fefce8 100%);
}

body.page-home .section-inner {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

body.page-home .how-it-works h2,
body.page-home .features h2,
body.page-home .faq h2,
body.page-home .about-platform h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: #1e293b;
  text-align: center;
  margin: 0 0 12px;
}

body.page-home .section-subtitle {
  text-align: center;
  font-size: 16px;
  color: #64748b;
  margin: 0 0 48px;
  line-height: 1.5;
}

body.page-home .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

/* Connecting line between steps */
body.page-home .steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--yellow-primary), #84c5ed, var(--yellow-primary));
  opacity: 0.4;
  z-index: 0;
}

body.page-home .step {
  text-align: center;
  padding: 32px 24px;
  position: relative;
  z-index: 1;
  background: var(--white-pure);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
}

body.page-home .step:hover {
  transform: translateY(-4px);
}

body.page-home .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow-primary) 0%, #fde047 100%);
  color: #1e293b;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(247, 226, 38, 0.35);
}

body.page-home .step h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #1e293b;
  margin: 0 0 10px;
}

body.page-home .step p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* =========================================================
   FEATURES SECTION
   ========================================================= */
body.page-home .features {
  background: #f8fafc;
}

body.page-home .features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

body.page-home .feature-card {
  background: var(--white-pure);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.page-home .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(247, 226, 38, 0.3);
}

body.page-home .feature-card i {
  font-size: 28px;
  color: var(--white-pure);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--yellow-primary) 0%, #fde047 100%);
  box-shadow: 0 4px 12px rgba(247, 226, 38, 0.3);
}

body.page-home .feature-card:nth-child(2) i {
  background: linear-gradient(135deg, #84c5ed 0%, #60a5fa 100%);
  box-shadow: 0 4px 12px rgba(132, 197, 237, 0.3);
}

body.page-home .feature-card:nth-child(3) i {
  background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
  box-shadow: 0 4px 12px rgba(244, 114, 182, 0.3);
}

body.page-home .feature-card:nth-child(4) i {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.3);
}

body.page-home .feature-card:nth-child(5) i {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

body.page-home .feature-card:nth-child(6) i {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
}

body.page-home .feature-card h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #1e293b;
  margin: 0 0 8px;
}

body.page-home .feature-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* =========================================================
   FAQ SECTION
   ========================================================= */
body.page-home .faq {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

body.page-home .faq-list {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white-pure);
  border-radius: 20px;
  padding: 8px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

body.page-home .faq-list details {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.page-home .faq-list details:last-child {
  border-bottom: none;
}

body.page-home .faq-list summary {
  padding: 20px 0;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.page-home .faq-list summary::-webkit-details-marker {
  display: none;
}

body.page-home .faq-list summary::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 18px;
  font-weight: 500;
  color: #64748b;
  flex-shrink: 0;
  margin-left: 16px;
  transition: all 0.2s ease;
}

body.page-home .faq-list details[open] summary::after {
  content: '\2212';
  background: var(--yellow-primary);
  color: #1e293b;
}

body.page-home .faq-list details p {
  margin: 0 0 20px;
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
  padding-right: 44px;
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
body.page-home .about-platform {
  background: #f8fafc;
  text-align: center;
}

body.page-home .about-platform p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
  color: #475569;
  line-height: 1.8;
}

/* =========================================================
   RESPONSIVE - New sections
   ========================================================= */
@media (max-width: 768px) {
  body.page-home .how-it-works,
  body.page-home .features,
  body.page-home .faq,
  body.page-home .about-platform {
    padding: 48px 0;
  }

  body.page-home .how-it-works h2,
  body.page-home .features h2,
  body.page-home .faq h2,
  body.page-home .about-platform h2 {
    font-size: 26px;
    margin-bottom: 8px;
  }

  body.page-home .section-subtitle {
    font-size: 14px;
    margin-bottom: 32px;
  }

  body.page-home .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.page-home .steps-grid::before {
    display: none;
  }

  body.page-home .step {
    padding: 24px 20px;
  }

  body.page-home .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  body.page-home .feature-card {
    padding: 24px 16px;
  }

  body.page-home .feature-card i {
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  body.page-home .feature-card h3 {
    font-size: 16px;
  }

  body.page-home .feature-card p {
    font-size: 13px;
  }

  body.page-home .faq-list {
    padding: 4px 20px;
  }
}

@media (max-width: 480px) {
  body.page-home .features-grid {
    grid-template-columns: 1fr;
  }

  body.page-home .how-it-works h2,
  body.page-home .features h2,
  body.page-home .faq h2,
  body.page-home .about-platform h2 {
    font-size: 22px;
  }

  body.page-home .faq-list summary {
    font-size: 15px;
  }

  body.page-home .faq-list details p {
    padding-right: 0;
  }

  body.page-home .about-platform p {
    font-size: 14px;
  }
}
