@import url('Pages.css');
@import url('https://fonts.googleapis.com/css2?family=Amsterdam+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

#contact {
  font-family: 'Poppins', sans-serif;
}

#contact .contact-page {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

#contact .contact-page__intro,
#contact .contact-page__newsletter-title {
  font-family: 'Amsterdam One', cursive;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
  text-align: center;
}

#contact .contact-page__newsletter-title {
  margin-top: 0.5rem;
}

#contact .contact-page__form,
#contact .contact-page__newsletter-form {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.08);
}

#contact .contact-page__row {
  display: grid;
  gap: 1.25rem;
}

#contact .contact-page__row--split {
  grid-template-columns: 1fr;
}

#contact .contact-page__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

#contact .contact-page__field label {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

#contact .contact-page__optional {
  font-weight: 400;
  font-size: 0.85rem;
  opacity: 0.7;
}

#contact .contact-page__field :is(input, textarea) {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#contact .contact-page__field :is(input, textarea):focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

#contact .contact-page__field textarea {
  resize: vertical;
  min-height: 140px;
}

#contact .contact-page__submit,
#contact .contact-page__newsletter-submit {
  justify-self: start;
  padding: 0.9rem 2.5rem;
  border-radius: 999px;
  border: none;
  background: #111;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#contact .contact-page__submit:hover,
#contact .contact-page__newsletter-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

#contact .contact-page__submit span {
  display: inline-block;
}

#contact .contact-page__submit .wait,
#contact .contact-page__submit .good {
  display: none;
}

#contact #contact_form.envoi .idle {
  display: none;
}

#contact #contact_form.envoi .wait {
  display: inline-block;
}

#contact #contact_form.envoye .wait {
  display: none;
}

#contact #contact_form.envoye .good {
  display: inline-block;
}

#contact .contact-page__newsletter-feedback {
  margin: 0;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(17, 17, 17, 0.08);
}

#contact .contact-page__newsletter-feedback--error {
  color: #b00020;
  background: rgba(176, 0, 32, 0.12);
}

#contact .contact-page__newsletter-feedback--success {
  color: #0f5132;
  background: rgba(16, 185, 129, 0.18);
}

@media (min-width: 640px) {
  #contact .contact-page__row--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #contact .contact-page__form,
  #contact .contact-page__newsletter-form {
    padding: 2.25rem;
  }
}
