:root {
  --color-primary: #2D3A2D;
  --color-secondary: #4A5D4A;
  --color-accent: #9C27B0;
}

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

body {
  font-family: 'Outfit', 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: translateX(32px);
  transition: all 0.6s ease-out;
}

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

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

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle at 2px 2px, rgba(156, 39, 176, 0.15) 2px, transparent 0);
  background-size: 40px 40px;
}

.decor-grid-lines {
  background-image: 
    linear-gradient(rgba(156, 39, 176, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 39, 176, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(156, 39, 176, 0.05) 10px,
    rgba(156, 39, 176, 0.05) 20px
  );
}

.decor-mesh {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.1) 0%, rgba(45, 58, 45, 0.05) 100%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(156, 39, 176, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(-135deg, rgba(156, 39, 176, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(156, 39, 176, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.decor-glow-element {
  box-shadow: 0 0 60px rgba(156, 39, 176, 0.2);
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cpattern id='rings' patternUnits='userSpaceOnUse' width='100' height='100'%3e%3ccircle cx='50' cy='50' r='20' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.1'/%3e%3ccircle cx='50' cy='50' r='35' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.05'/%3e%3c/pattern%3e%3c/defs%3e%3crect width='100%25' height='100%25' fill='url(%23rings)'/%3e%3c/svg%3e");
}

/* Intensity modifiers */
.decor-subtle {
  opacity: 0.3;
}

.decor-moderate {
  opacity: 0.6;
}

.decor-bold {
  opacity: 1;
}

/* Form styles */
.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

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

.form-error {
  color: #ef4444;
  font-size: 14px;
  margin-top: 4px;
  display: none;
}

.form-error.show {
  display: block;
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Custom checkbox */
.custom-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: white;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-checkbox:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.custom-checkbox:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

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

.star {
  width: 16px;
  height: 16px;
  fill: #fbbf24;
  color: #fbbf24;
}

.star.empty {
  fill: #e5e7eb;
  color: #e5e7eb;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  [data-animate] {
    transform: translateY(20px);
  }
  
  [data-animate].is-visible {
    transform: translateY(0);
  }
}