/* A style sheet, defining styling for components local to the Contact page. */
@import url("_variables.css");

/* Horizontal dividers between sections */
.section-divider {
  border: 0;
  height: 3px;
  background-color: var(--accent-color);
  margin: 0px 0;
}

#main-content {
  padding: 0rem;
}

.contact-intro {
  margin-bottom: 2rem;
  max-width: 800px;
}

.contact-container {
  width: 65%;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.contact-form {
  background-color: var(--accent-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--accent-font-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #5b86e5;
  box-shadow: 0 0 0 3px rgba(91, 134, 229, 0.1);
}

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

.submit-btn {
  display: block;
  margin: 0 auto;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-color)
  );
  color: var(--accent-color);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 1rem;
  }

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

  .form-group input,
  .form-group textarea {
    padding: 0.6rem;
  }

  .submit-btn {
    width: 100%;
  }
}
