/* page-templates/page-contact.php */

.wnb-contact {
  background: #fff;
  font-family: var(--wnb-font-nav);
  letter-spacing: -0.02em;
}

.wnb-contact__wrap {
  max-width: var(--wnb-max-content);
  margin: 0 auto;
  padding: 2.25rem 1rem 3.5rem;
}

.wnb-contact__grid {
  display: grid;
  gap: 3rem;
}

.wnb-contact__hero-frame {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f5f5f5;
}

.wnb-contact__hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.wnb-contact__title {
  margin: 2rem 0 0;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.06em;
}

.wnb-contact__intro {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.wnb-contact__details {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wnb-contact__details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.0625rem;
}

.wnb-contact__details a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.wnb-contact__quote-cta {
  margin-top: 2.5rem;
}

.wnb-contact__form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 2rem 1.75rem 2.25rem;
}

.wnb-contact__form-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wnb-contact__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
}

.wnb-contact__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wnb-text);
}

.wnb-contact__field,
.wnb-contact__textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  background: transparent;
  padding: 0.625rem 0;
  font-size: 1rem;
  color: var(--wnb-text);
  outline: none;
  transition: border-color 0.15s ease;
}

.wnb-contact__field::placeholder,
.wnb-contact__textarea::placeholder {
  color: #aaaaaa;
}

.wnb-contact__field:focus,
.wnb-contact__textarea:focus {
  border-bottom-color: #000;
}

.wnb-contact__textarea {
  min-height: 4.25rem;
  resize: vertical;
  line-height: 1.625;
}

.wnb-contact__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.wnb-contact__chip {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: #fff;
  padding: 0.625rem 1rem;
  text-align: left;
  font-size: 0.8125rem;
  line-height: 1.375;
  color: var(--wnb-text);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wnb-contact__chip:hover {
  border-color: rgba(0, 0, 0, 0.45);
}

.wnb-contact__chip.is-selected {
  border-color: var(--wnb-text);
  background: var(--wnb-text);
  color: var(--wnb-bg);
}

.wnb-contact__submit {
  width: 100%;
}

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

  .wnb-contact__chip {
    font-size: 0.875rem;
  }

  .wnb-contact__form-title {
    font-size: 1.25rem;
  }

  .wnb-contact__intro {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .wnb-contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: start;
    column-gap: 3.5rem;
  }
}

@media (min-width: 1280px) {
  .wnb-contact__grid {
    column-gap: 5rem;
  }
}

@media (min-width: 640px) {
  .wnb-contact__hero-frame img {
    aspect-ratio: 3 / 2;
  }
}

@media (min-width: 420px) {
  .wnb-contact__submit {
    width: auto;
  }
}

/* ── Form feedback message ── */
.wnb-contact__msg {
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.wnb-contact__msg--success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.wnb-contact__msg--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}
