/* Form card: centered, constrained width, subtle elevation */
.contact-section form {
  max-width: 500px;        /* cap line length for readability */
  margin: 2rem auto;       /* center the form with vertical spacing */
  padding: 2rem;           /* interior padding */
  background: #ffffff;        /* white panel */
  border-radius: 8px;      /* soft corners */
  box-shadow: 0 4px 12px rgba(122, 122, 122, 0.08); /* gentle lift */
}

/* Section heading */
.contact-section h2 {
  text-align: center;
  margin-top: 1.5rem; /* space above the heading */
  margin-bottom: 1.5rem; /* space below the heading */
  font-size: 1.75rem;
  color: var(--color-accent);
}

/* Labels above each control */
.contact-section label {
  display: block;          /* stack label on its own line */
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

/* Text inputs + textarea */
.contact-section input,
.contact-section textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease;
}

/* Clear focus state for accessibility */
.contact-section input:focus,
.contact-section textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(192,8,8,0.15); /* subtle focus ring */
}

/* Submit button */
.contact-section button[type="submit"] {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

/* Hover/active affordances */
.contact-section button[type="submit"]:hover {
  background: #bb0000;
}
.contact-section button[type="submit"]:active {
  transform: translateY(1px);
}

/* Small screens: tighten spacing */
@media (max-width: 480px) {
  .contact-section form {
    padding: 1.5rem;
    margin: 1rem;
  }
}