.contact-form_component {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 148 72% 42%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96%;
  --secondary-foreground: 222.2 84% 4.9%;
  --muted: 210 40% 96%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96%;
  --accent-foreground: 222.2 84% 4.9%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 148 72% 42%;
  --radius: 0.5rem;
}

.contact-form_card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.contact-form_header {
  margin-bottom: 1.5rem;
}

.contact-form_title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--card-foreground));
}

.contact-form_subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.form-label_required::after {
  content: " *";
  color: hsl(var(--destructive));
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 0.75rem;
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  background-color: hsl(var(--background));
  font-size: 0.875rem;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-button {
  width: 100%;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: calc(var(--radius) - 2px);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  margin-top: 0.5rem;
}

.form-button:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.form-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- CSS FIX --- */
/* The 'display: none;' property has been removed from this rule. */
/* Hiding is now handled by the inline style in the HTML, as per Basin docs. */
.form-message {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-message_success {
  background-color: hsl(143 85% 96%);
  color: hsl(140 100% 27%);
  border: 1px solid hsl(145 92% 91%);
}

.form-message_error {
  background-color: hsl(0 86% 97%);
  color: hsl(0 74% 42%);
  border: 1px solid hsl(0 93% 94%);
}

/* This .show class is no longer needed with the simplified JS */

@media (max-width: 768px) {
  .contact-header_title {
    font-size: 1.875rem;
  }

  .form-group_grid {
    grid-template-columns: 1fr;
  }

  .contact-page {
    padding: 1rem 0;
  }

  .contact-form_card {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .contact-header {
    margin-bottom: 2rem;
  }
}
