/* Contact page + confirmation page (page-contact.php / page-thank-you.php) */

.hs-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.hs-contact__form-card {
  max-width: none;
}

.hs-contact__form-title {
  font-size: 26px;
  margin-bottom: 8px;
}

.hs-contact__form-lead {
  font-size: 15px;
  margin-bottom: 32px;
  max-width: 60ch;
}

/* Form structure */
.hs-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.hs-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hs-field--full {
  grid-column: 1 / -1;
}

.hs-field__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--hs-navy);
}

.hs-field__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hs-slate);
  background-color: var(--hs-cloud);
  border: 1px solid var(--hs-mist);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 6px;
}

.hs-field__hint {
  font-size: 13px;
  color: var(--hs-slate);
  margin: 0;
}

.hs-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--hs-ink);
  background-color: var(--hs-white);
  border: 1px solid var(--hs-mist);
  border-radius: var(--radius-control);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hs-input:hover {
  border-color: #cbd8e2;
}

.hs-input:focus,
.hs-input:focus-visible {
  outline: none;
  border-color: var(--hs-blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.18);
}

.hs-input::placeholder {
  color: #93a3ae;
}

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

.hs-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--hs-slate) 50%), linear-gradient(135deg, var(--hs-slate) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.hs-file {
  min-height: 48px;
  padding: 12px 14px;
  background-color: var(--hs-cloud);
  border-style: dashed;
}

.hs-file::file-selector-button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--hs-navy);
  background-color: var(--hs-white);
  border: 1px solid var(--hs-mist);
  border-radius: var(--radius-control);
  padding: 8px 14px;
  margin-right: 12px;
  cursor: pointer;
}

/* Validation feedback, adjacent to the field per DESIGN.md */
.hs-input:user-invalid {
  border-color: var(--hs-error);
}

.hs-input:user-invalid:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.16);
}

/* Grouped fieldsets (long forms use grouping per DESIGN.md) */
.hs-fieldset {
  border: 0;
  border-top: 1px solid var(--hs-mist);
  padding: 0;
  margin: 0 0 32px;
}

.hs-fieldset:first-of-type {
  border-top: 0;
}

.hs-fieldset__legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--hs-navy);
  padding: 0 0 16px;
}

.hs-fieldset:first-of-type .hs-fieldset__legend {
  padding-top: 0;
}

.hs-fieldset:not(:first-of-type) .hs-fieldset__legend {
  padding-top: 28px;
}

.hs-fieldset__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--hs-blue);
}

/* Submit row */
.hs-form__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.hs-form__submit {
  align-self: flex-start;
  min-width: 200px;
  height: 50px;
  font-size: 15px;
}

.hs-form__note {
  font-size: 13px;
  color: var(--hs-slate);
  margin: 0;
  max-width: 62ch;
}

.hs-form__note strong {
  color: var(--hs-navy);
  font-weight: 600;
}

/* Side column */
.hs-contact__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hs-contact__card {
  background-color: var(--hs-cloud);
  border: 1px solid var(--hs-mist);
  border-radius: var(--radius-card);
  padding: 24px;
}

.hs-contact__card-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hs-blue);
  margin-bottom: 14px;
}

.hs-contact__mail {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.hs-contact__muted {
  font-size: 13px;
  color: var(--hs-slate);
  margin: 0;
}

.hs-contact__facts {
  margin: 0;
}

.hs-contact__facts dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hs-slate);
  margin-bottom: 2px;
}

.hs-contact__facts dd {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--hs-ink);
}

.hs-contact__facts dd:last-child {
  margin-bottom: 0;
}

.hs-contact__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 14px;
  line-height: 1.65;
  color: var(--hs-ink);
}

.hs-contact__list li {
  margin-bottom: 8px;
}

.hs-contact__list li:last-child {
  margin-bottom: 0;
}

.hs-contact__list li::marker {
  color: var(--hs-blue);
}

/* Confirmation page */
.hs-thanks__band {
  background-color: var(--hs-cloud);
  border-bottom: 1px solid var(--hs-mist);
  padding: var(--space-section) 0;
}

.hs-thanks__card {
  max-width: 640px;
  margin-inline: auto;
  background-color: var(--hs-white);
  border: 1px solid var(--hs-mist);
  border-radius: var(--radius-card);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  box-shadow: 0 1px 2px rgba(11, 39, 66, 0.04), 0 20px 40px -32px rgba(11, 39, 66, 0.35);
  animation: hs-thanks-in 0.4s ease-out both;
}

.hs-thanks__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--hs-white);
  background-color: var(--hs-success);
}

.hs-thanks__card .hs-kicker {
  margin-bottom: 12px;
}

.hs-thanks__title {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-bottom: 16px;
}

.hs-thanks__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--hs-slate);
  max-width: 46ch;
  margin: 0 auto 32px;
}

.hs-thanks__body {
  text-align: left;
  margin-bottom: 32px;
}

.hs-thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@keyframes hs-thanks-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-thanks__card {
    animation: none;
  }

  .hs-input {
    transition: none;
  }
}

@media (max-width: 900px) {
  .hs-contact__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .hs-form__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .hs-form__submit {
    width: 100%;
    min-width: 0;
  }

  .hs-thanks__actions .hs-btn {
    width: 100%;
  }
}

/* Honeypot field: hidden from people, tempting to simple bots. */
.hs-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Inline notice shown when a submission is rejected. */
.hs-form__notice {
  border: 1px solid #B42318;
  background: #FEF3F2;
  color: #B42318;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.5;
}
