
/* ---------- Contact ---------- */

.contact {
  padding: 5rem 0 8rem;
}

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


/* ---------- Header ---------- */

.contact-header {
  max-width: 760px;
  margin-bottom: 4rem;
}

.contact-header .eyebrow {
  margin-bottom: 1.25rem;
}

.contact-header h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.contact-header > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--color-text-muted-dark);
  font-size: 1.05rem;
  line-height: 1.7;
}


/* ---------- Messages ---------- */

.contact-messages {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-green-dark);
  background: var(--color-green-light);
}

.contact-messages p {
  margin: 0;
  color: var(--color-green-dark);
  font-size: 0.9rem;
}


/* ---------- Form ---------- */

.contact-form {
  max-width: 760px;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted-dark);
}


/* ---------- Inputs ---------- */

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;

  padding: 1rem 0;

  border: 0;
  border-bottom: 1px solid var(--color-border);

  border-radius: 0;

  background: transparent;

  color: var(--color-text);

  font-family: var(--font-body);
  font-size: 1rem;

  outline: none;

  transition:
    border-color 0.2s ease,
    padding 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-muted-dark);
  opacity: 0.65;
}


/* ---------- Focus ---------- */

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--color-green-dark);
}


/* ---------- Select ---------- */

.contact-form select {
  cursor: pointer;
  appearance: auto;
}


/* ---------- Textarea ---------- */

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}


/* ---------- Errors ---------- */

.form-error,
.form-errors {
  margin-top: 0.5rem;
  color: var(--color-rust);
  font-size: 0.8rem;
}

.form-error ul,
.form-errors ul {
  margin: 0;
  padding: 0;
  list-style: none;
}



/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .contact {
    padding: 3.5rem 0 5rem;
  }

  .contact-header {
    margin-bottom: 3rem;
  }

  .contact-header h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .contact-form {
    padding-top: 2rem;
  }

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


@media (max-width: 480px) {
  .contact {
    padding: 2.5rem 0 4rem;
  }

  .contact-header h1 {
    font-size: 3.2rem;
  }

  .contact-header > p:last-child {
    font-size: 0.95rem;
  }

  .contact-form button {
    width: 100%;
  }
}

