@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(222.2, 84%, 4.9%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(222.2, 84%, 4.9%);
  --primary: hsl(217, 98%, 53%);
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(210, 40%, 96.1%);
  --secondary-foreground: hsl(222.2, 47.4%, 11.2%);
  --muted: hsl(210, 40%, 96.1%);
  --muted-foreground: hsl(215.4, 16.3%, 46.9%);
  --accent: hsl(249, 100%, 69%);
  --accent-foreground: hsl(0, 0%, 98%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --border: hsl(214.3, 31.8%, 91.4%);
  --input: hsl(214.3, 31.8%, 91.4%);
  --ring: hsl(217, 98%, 53%);
  --radius: 1rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  margin: 0;
}

/* Slider custom styles */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--secondary);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--primary);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--primary);
}

/* Mobile menu overlay */
#mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 40;
}

#mobile-menu-overlay.open {
  display: block;
}

/* Mobile menu drawer */
#mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 300px;
  background: var(--card);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.5rem;
  border-left: 1px solid var(--border);
}

#mobile-menu.open {
  transform: translateX(0);
}

/* Partners accordion */
#partners-content {
  display: none;
}

#partners-content.open {
  display: block;
}

/* Offer cards hidden */
.offer-card-hidden {
  display: none;
}

/* Cookie banner */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 100;
  width: calc(100% - 2rem);
  max-width: 24rem;
}

/* Custom checkbox pill style */
.method-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.method-pill label {
  cursor: pointer;
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid var(--input);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  transition: all 0.15s;
}

.method-pill input[type="checkbox"]:checked + label {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.method-pill label:hover {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.method-pill input[type="checkbox"]:checked + label:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Form error messages */
.field-error {
  color: var(--destructive);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Agreement checkbox */
.agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.agreement-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--primary);
}

/* SVG grid background */
.hero-bg-svg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* Approval colors */
.approval-high { color: #0dd149; }
.approval-medium { color: #ff9500; }
.approval-low { color: #c11d1d; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hover lift effect */
.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
}

/* Backdrop blur for header */
.header-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Legal document modal */
#legal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  justify-content: center;
  align-items: flex-end;
}

#legal-modal-overlay.open {
  display: flex;
}

#legal-modal {
  background: var(--card);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow-y: auto;
  padding: 2rem;
}

@media (min-width: 768px) {
  #legal-modal-overlay {
    align-items: center;
  }
  #legal-modal {
    border-radius: var(--radius);
    max-height: 70vh;
  }
}
