.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
}

.title {
  text-align: center;
  font-size: 24px;
  margin-top: 0 !important;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--text-color);
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

textarea {
  resize: vertical;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  border-width: 2px;
}

.contact-type {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  background-color: white;
  color: var(--text-color);
  transition: border-color 0.3s ease;
  cursor: pointer;
  appearance: none; /* Removes default browser styling */
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  border-width: 2px;
}

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

.btn-send {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-send:hover {
  transform: translateY(-5px);
  background-color: var(--secondary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#age-group {
  display: none; /* Hidden by default */
  transition: all 0.3s ease;
}

@media (max-width: 800px) {
  .contact-form {
    width: 95%;
    padding: 1rem;
    margin: 20px auto;
  }

  .title {
    font-size: 20px;
    margin-bottom: 1.5rem;
  }

  .btn-send {
    padding: 0.5rem;
    font-size: 14px;
  }
}

.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: center;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  color: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.chat-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.chat-hours {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
}

.chat-hours ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.chat-hours li {
  margin: 0.25rem 0;
}

.btn-chat {
  background: #28b348;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-chat:hover {
  background: #29c34d;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.info-section {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-box {
  background: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.info-box:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-box h3 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
}

.info-box p {
  margin: 0;
  line-height: 1.5;
}

.info-box a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

.info-box a:hover {
  text-decoration: underline;
}

.emergency-section {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  margin-top: 2rem;
}

.emergency-section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.emergency-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.emergency-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.emergency-card h3 {
  color: var(--primary-color);
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.emergency-number {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem;
  border-radius: 5px;
  margin: 0.5rem 0;
  font-weight: bold;
  text-align: center;
}

.emergency-link {
  border: 1px solid #ddd;
  padding: 0.75rem;
  border-radius: 5px;
  margin: 0.5rem 0;
}

.emergency-link strong {
  color: var(--primary-color);
}

.emergency-link a {
  color: var(--primary-light);
  text-decoration: none;
}

.emergency-link a:hover {
  text-decoration: underline;
}

.emergency-link small {
  color: #666;
  font-style: italic;
}

.emergency-note {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 5px;
  padding: 1rem;
  text-align: center;
}

.emergency-note p {
  margin: 0;
  color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
  .emergency-grid {
    grid-template-columns: 1fr;
  }

  .chat-container {
    padding: 0 1rem;
  }

  .emergency-section {
    padding: 1rem;
  }
}
