/* Help and contact page (views/contact.templ) */

.contact-hero {
  background: var(--dark-bg-color);
  padding: 3.5rem 0 3rem;
}
.contact-eyebrow {
  margin-bottom: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.contact-hero h1 {
  font-size: 2.75rem;
  line-height: 110%;
}

.contact-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
  gap: 2.5rem;
  align-items: start;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

/* Common questions */
.contact-faq h2 {
  margin-bottom: 1rem;
}
.contact-faq-list {
  background: var(--color-neutral);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
}
.contact-faq-item + .contact-faq-item {
  border-top: 1px solid var(--border-color);
}
.contact-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  list-style: none;
  cursor: pointer;
}
.contact-faq-item summary::-webkit-details-marker {
  display: none;
}
.contact-faq-item summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.contact-faq-question {
  font-size: 0.875rem;
  font-weight: 500;
}
.contact-faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: var(--medium-color);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-faq-icon-open,
.contact-faq-item[open] .contact-faq-icon-closed {
  display: none;
}
.contact-faq-item[open] .contact-faq-icon-open {
  display: block;
}
.contact-faq-answer {
  margin-top: -0.375rem;
  padding: 0 1.25rem 1rem;
  line-height: 150%;
}

/* Message form */
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-card {
  padding: 1.5rem;
  background: var(--color-neutral);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
}
.contact-card-intro {
  margin: 0.5rem 0 1.25rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.contact-field label {
  letter-spacing: 0.5px;
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: var(--color-neutral);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--dark-color);
  font-family: var(--font-text);
  font-size: 0.875rem;
  outline: none;
}
.contact-field textarea {
  min-height: 7rem;
  resize: vertical;
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(242, 96, 63, 0.15);
}
.contact-select-wrap {
  position: relative;
}
.contact-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
}
.contact-select-wrap .select-arrow {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  fill: var(--dark-color);
  pointer-events: none;
}
.contact-count {
  text-align: right;
}
.contact-count span {
  font-size: inherit;
  color: inherit;
}
#contact-msg:empty {
  display: none;
}
.contact-submit {
  width: 100%;
}
.contact-submit span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.contact-submit-busy,
.contact-form.htmx-request .contact-submit-idle {
  display: none;
}
.contact-form.htmx-request .contact-submit-busy {
  display: inline;
}
.contact-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}
.contact-sent h3 {
  margin-bottom: 0.5rem;
}

/* Other ways to reach us */
.contact-other {
  padding: 1.25rem 1.5rem;
  background: var(--dark-bg-color);
  border-radius: 0.75rem;
}
.contact-other-heading {
  font-size: 1rem;
  font-weight: 600;
}
.contact-other ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.875rem;
  list-style: none;
}
.contact-other li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}
.contact-other li span {
  font-size: 0.875rem;
}
.contact-other svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  fill: none;
  stroke: var(--dark-color);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .contact-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    padding: 2rem 0 1.75rem;
  }
  .contact-hero h1 {
    font-size: 2rem;
  }
  .contact-body {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  .contact-card {
    padding: 1.25rem;
  }
}
