/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* Root Variables */
:root {
  --background: hsl(210, 20%, 98%);
  --foreground: hsl(215, 30%, 12%);
  --primary: hsl(215, 50%, 18%);
  --primary-foreground: hsl(210, 40%, 98%);
  --secondary: hsl(210, 25%, 93%);
  --accent: hsl(152, 60%, 42%);
  --accent-foreground: hsl(0, 0%, 100%);
  --muted-foreground: hsl(215, 15%, 45%);
  --border: hsl(214, 25%, 88%);
  --destructive: hsl(0, 84%, 60%);
  --card: hsl(0, 0%, 100%);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-soft: 0 4px 24px -4px rgba(33, 60, 91, 0.08);
  --shadow-elevated: 0 12px 40px -8px rgba(33, 60, 91, 0.12);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 4rem 0 3rem;
  background: var(--primary);
  color: var(--primary-foreground);
  overflow: hidden;
  margin-top: 80px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.3) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(52, 168, 121, 0.2);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

/* Features Section */
.features-section {
  padding: 3rem 0;
  background: rgba(210, 220, 230, 0.3);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(52, 168, 121, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}

.feature-text h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Form Section */
.form-section {
  padding: 6rem 0;
  background: var(--background);
}

.form-wrapper {
  max-width: 48rem;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-header p {
  font-size: 1rem;
  color: var(--muted-foreground);
}

/* Support Form */
.support-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--foreground);
  background: var(--card);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52, 168, 121, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--destructive);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.error-message {
  display: block;
  color: var(--destructive);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  min-height: 1.25rem;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

.category-btn:hover {
  border-color: rgba(52, 168, 121, 0.5);
  background: rgba(52, 168, 121, 0.05);
}

.category-btn.active {
  border-color: var(--accent);
  background: rgba(52, 168, 121, 0.1);
  color: var(--accent);
}

.category-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.625rem;
  background: var(--accent);
  color: var(--accent-foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 40px rgba(52, 168, 121, 0.2);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(52, 168, 121, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Success Message */
.success-message {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  animation: fadeInScale 0.5s ease-out;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(52, 168, 121, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
}

.success-message h3 {
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.success-message p {
  font-size: 1rem;
  color: var(--muted-foreground);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-section {
    padding: 8rem 0 4rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .form-section {
    padding: 4rem 0;
  }
  
  .support-form {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}