/* CSS Variables */
:root {
  --primary: hsl(210, 55%, 20%);
  --accent: hsl(168, 55%, 43%);
  --foreground: hsl(210, 15%, 15%);
  --muted-foreground: hsl(210, 10%, 45%);
  --background: hsl(210, 20%, 98%);
  --card: hsl(0, 0%, 100%);
  --border: hsl(210, 20%, 90%);
  --destructive: hsl(0, 70%, 50%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.contact-hero {
  position: relative;
  padding: 4rem 0 3rem;
  background: var(--primary);
  color: white;
  overflow: hidden;
}

.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-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out 0.2s;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  animation: fadeInUp 0.6s ease-out 0.4s;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background: var(--background);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

/* Contact Form */
.contact-form-wrapper {
  width: 100%;
}

.form-header {
  margin-bottom: 2rem;
}

.form-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-description {
  color: var(--muted-foreground);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--foreground);
  background: var(--card);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52, 168, 121, 0.1);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--destructive);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  font-size: 0.875rem;
  color: var(--destructive);
  display: none;
}

.error-message.visible {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

.btn-submit {
  background: var(--accent);
  color: white;
  width: auto;
}

.btn-submit:hover {
  background: hsl(168, 55%, 38%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(52, 168, 121, 0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Contact Info */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.info-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
}

.info-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;
}

.info-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
}

.info-label {
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.info-value {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.action-card {
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid;
}

.action-card.accent {
  background: rgba(52, 168, 121, 0.05);
  border-color: rgba(52, 168, 121, 0.2);
}

.action-card.primary {
  background: rgba(33, 60, 91, 0.05);
  border-color: rgba(33, 60, 91, 0.2);
}

.action-icon {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.75rem;
}

.action-card.accent .action-icon {
  color: var(--accent);
}

.action-card.primary .action-icon {
  color: var(--primary);
}

.action-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.action-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.btn-action {
  background: var(--accent);
  color: white;
  width: 100%;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-action:hover {
  background: hsl(168, 55%, 38%);
}

.btn-action-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  width: 100%;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-action-outline:hover {
  background: var(--primary);
  color: white;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 1000;
  min-width: 320px;
}

.toast.show {
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.toast-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.toast-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Responsive Design */
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: 3.75rem;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 8rem 0 4rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .contact-section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    min-width: auto;
  }
}