* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #FFFBEB;
  font-family: 'Newsreader', serif;
}

/* Subtle background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(217, 119, 6, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(194, 112, 62, 0.04) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 15 L30 12 L25 15 Z' fill='%23D97706' fill-opacity='0.03'/%3E%3Ccircle cx='15' cy='40' r='4' fill='none' stroke='%23D97706' stroke-opacity='0.03' stroke-width='1'/%3E%3Ccircle cx='45' cy='45' r='3' fill='none' stroke='%23C2703E' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

#root {
  position: relative;
  z-index: 1;
}

/* Custom input focus glow */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #D97706 !important;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2), 0 0 12px rgba(217, 119, 6, 0.1) !important;
}

/* Toggle switch */
.toggle-track {
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: #d1d5db;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-track.active {
  background: #D97706;
}

.toggle-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-track.active .toggle-thumb {
  transform: translateX(22px);
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #FDE68A;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #D97706;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #D97706;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

/* Step transitions */
.step-enter {
  opacity: 0;
  transform: translateX(30px);
}

.step-active {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-exit {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.3s ease;
}

/* File upload area */
.file-drop-zone {
  border: 2px dashed #FCD34D;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(254, 243, 199, 0.3);
}

.file-drop-zone:hover {
  border-color: #D97706;
  background: rgba(254, 243, 199, 0.6);
}

.file-drop-zone.has-file {
  border-style: solid;
  border-color: #D97706;
  background: rgba(254, 243, 199, 0.5);
}

/* Checkbox custom */
.custom-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.custom-checkbox.checked {
  background: #D97706;
  border-color: #D97706;
}

/* Radio custom */
.custom-radio {
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.custom-radio.selected {
  border-color: #D97706;
}

.custom-radio.selected::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #D97706;
}

/* Submit button */
.submit-btn {
  background: linear-gradient(135deg, #D97706, #B45309);
  color: white;
  border: none;
  padding: 16px 48px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
  font-family: 'Bricolage Grotesque', sans-serif;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Confetti animation */
@keyframes confetti-fall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confetti-fall linear forwards;
  z-index: 100;
  pointer-events: none;
}

/* Celebration bounce */
@keyframes celebrate-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.celebrate {
  animation: celebrate-bounce 0.6s ease infinite;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Card hover */
.review-card {
  transition: all 0.2s ease;
}

.review-card:hover {
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.1);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fade-in-up 0.5s ease forwards;
}

.fade-in-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-up-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-up-delay-4 { animation-delay: 0.4s; opacity: 0; }