* {
  box-sizing: border-box;
}

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700;800&display=swap");

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  background: #f7f7f9;
  color: #1f2632;
}

.page-content {
  padding: clamp(24px, 5vw, 64px) clamp(16px, 3vw, 50px);
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

.page-content h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: #1d2530;
  margin: 0 0 12px;
}

.page-content > .container > p {
  font-size: 16px;
  line-height: 1.6;
  color: #687083;
  margin: 0 0 32px;
}

.page-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1d2530;
  margin: 0 0 16px;
}

.contact-info,
.contact-form,
.social-links {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  padding: clamp(20px, 4vw, 32px);
  margin-bottom: 24px;
}

.contact-info p {
  font-size: 15px;
  line-height: 1.8;
  color: #2d3040;
  margin: 0;
}

.contact-info p strong {
  color: #1d2530;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #1d2530;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: #1f2632;
  background: #f7f7f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1d2530;
  box-shadow: 0 0 0 3px rgba(29, 37, 48, 0.12);
  background: #fff;
}

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

/* Invalid state — applied by script only after the user has left the field. */
.form-group input.is-invalid {
  border-color: #d63031;
  background-color: #fff6f6;
}

.form-group input.is-invalid:focus {
  border-color: #d63031;
  box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.15);
  background-color: #fff;
}

.form-error {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #d63031;
}

.form-error[hidden] {
  display: none;
}

/* Kept separate from the input/textarea rules above: those use the `background`
   shorthand, which would wipe out the custom chevron below. */
.form-group select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: #1f2632;
  background-color: #f7f7f9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23687083' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group select:focus {
  outline: none;
  border-color: #1d2530;
  box-shadow: 0 0 0 3px rgba(29, 37, 48, 0.12);
  background-color: #fff;
}

/* Grey out the "Select a topic" placeholder until a real choice is made. */
.form-group select:invalid {
  color: #8a8f99;
}

/* .form-group sets no display, so the UA default for [hidden] applies — this
   just guards against that changing later. */
.form-group[hidden] {
  display: none;
}

.contact-form button[type="submit"] {
  margin-top: 4px;
  border: none;
  background: #1d2530;
  color: #fff;
  padding: 13px 28px;
  border-radius: 19px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button[type="submit"]:hover {
  background: #2b3646;
}

.social-links p {
  font-size: 15px;
  color: #687083;
  margin: 0 0 16px;
}

.social-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.social-links a {
  display: inline-block;
  text-decoration: none;
  color: #1d2530;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.social-links a:hover {
  background: #1d2530;
  border-color: #1d2530;
  color: #fff;
}

@media (max-width: 600px) {
  .page-content {
    padding: 24px 16px;
  }

  .contact-info,
  .contact-form,
  .social-links {
    border-radius: 12px;
    padding: 20px;
  }

  .social-links ul {
    flex-direction: column;
  }

  .social-links a {
    text-align: center;
  }

  .contact-form button[type="submit"] {
    width: 100%;
  }
}
