:root {
  --color-primary: #0D4F6F;
  --color-secondary: #1E6B8A;
  --color-accent: #00BCD4;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* Button fixes */
button, .btn, [class*="btn-"], a[href="#order_form"] {
  white-space: nowrap;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

form button[type="submit"] {
  white-space: normal;
  width: 100%;
}

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

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Transitions */
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.rotate-180 {
  transform: rotate(180deg);
}

/* Form styles */
.form-input {
  appearance: none;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  outline: none;
  transition: all 0.15s ease-in-out;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-input.error {
  border-color: #ef4444;
}

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: 
    linear-gradient(currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    currentColor,
    currentColor 1px,
    transparent 1px,
    transparent 20px
  );
}

.decor-mesh {
  background: 
    radial-gradient(at 40% 20%, rgba(0, 188, 212, 0.3) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(13, 79, 111, 0.3) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(30, 107, 138, 0.3) 0px, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  opacity: 0.1;
  filter: blur(60px);
  pointer-events: none;
}

.decor-subtle {
  opacity: 0.05;
}

.decor-moderate {
  opacity: 0.1;
}

.decor-bold {
  opacity: 0.2;
}

/* Rating stars */
.rating-stars {
  display: inline-flex;
  gap: 2px;
}

.rating-star {
  color: #fbbf24;
}

.rating-star.half {
  background: linear-gradient(90deg, #fbbf24 50%, #d1d5db 50%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* Product badge */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Countdown timer */
.countdown-timer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border-radius: 0.5rem;
  padding: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  min-width: 3rem;
}

.countdown-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
  line-height: 1;
}

.countdown-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Order form styles */
.order-form {
  max-width: 28rem;
  margin: 0 auto;
}

.order-form .form-group {
  margin-bottom: 1rem;
}

.order-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.order-form .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
}

.order-form .checkbox-group input[type="checkbox"] {
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.order-form .checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.4;
  cursor: pointer;
}

/* Price display */
.price-display {
  text-align: center;
  margin-bottom: 1.5rem;
}

.price-current {
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--color-primary);
}

.price-old {
  font-size: 1.25rem;
  color: #9ca3af;
  text-decoration: line-through;
  margin-right: 0.5rem;
}

.price-save {
  display: inline-block;
  background: #dc2626;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
}

/* Loading states */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive utilities */
@media (max-width: 640px) {
  .countdown-timer {
    gap: 0.5rem;
  }
  
  .countdown-item {
    padding: 0.5rem;
    min-width: 2.5rem;
  }
  
  .countdown-number {
    font-size: 1.25rem;
  }
  
  .countdown-label {
    font-size: 0.625rem;
  }
}