/* Closing scene: one solid Deep Current block. Its cut top-left corner is the
   45° chamfer of the Contecto mark — colour comes from the block itself, not
   from light around it (DESIGN.md, No-Template-Grammar Rule). The copy sits on
   the blue; the form sits on an opaque navy card inside it. */

.landing-contact {
  --lp-contact-cut: clamp(1.75rem, 5vw, 4rem);
  --lp-contact-ink: color-mix(in srgb, var(--lp-current) 14%, white);
}

.landing-contact__block {
  display: grid;
  gap: 2.5rem;
  padding: calc(var(--lp-contact-cut) + 1rem) 1.25rem 1.25rem;
  background: var(--lp-current);
  clip-path: polygon(var(--lp-contact-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--lp-contact-cut));
}

.landing-contact__copy {
  min-width: 0;
}

.landing-contact__copy .landing__headline {
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  line-height: 1;
}

.landing-contact__copy .landing__sub {
  max-width: 27rem;
  margin-top: 1.5rem;
  color: var(--lp-contact-ink);
  line-height: 1.7;
}

.landing-contact__login {
  margin: 1.5rem 0 0;
  color: var(--lp-contact-ink);
  font-size: .9375rem;
}

.landing-contact__login a {
  display: inline-block;
  margin-left: .35rem;
  padding-block: .6rem;
  color: var(--lp-ink-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  transition: text-decoration-thickness 180ms ease;
}

.landing-contact__login a:hover {
  text-decoration-thickness: 2px;
}

/* The card. It carries the surface so its contents — the form, or the
   confirmation that replaces it — can be swapped without the panel flickering.
   Opaque, so it takes a real offset shadow and no blur. */
.landing-contact__panel {
  min-width: 0;
  padding: 1.5rem;
  background: var(--lp-hull);
  border-radius: var(--lp-radius-lg);
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 55%);
}

.landing-contact__form {
  display: grid;
  gap: 1.1rem;
}

.landing-contact__form-heading {
  margin: 0 0 .4rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--lp-line-faint);
  color: var(--lp-ink-strong);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -.01em;
}

.landing-contact__form .landing-contact__field {
  display: grid;
  gap: .5rem;
  margin: 0;
}

.landing-contact__field label,
.landing-contact__label {
  color: var(--lp-ink);
  font-size: .75rem;
  font-weight: 500;
}

.landing-contact__field label abbr {
  color: var(--lp-mute);
  text-decoration: none;
}

.landing-contact__field input,
.landing-contact__field select,
.landing-contact__field textarea {
  width: 100%;
  padding: .75rem .875rem;
  color: var(--lp-ink-strong);
  font: inherit;
  font-size: 1rem;
  background: rgb(3 12 28 / 38%);
  border: 1px solid rgb(166 194 218 / 17%);
  border-radius: var(--lp-radius-sm);
  transition: border-color var(--lp-dur-quick) ease, box-shadow var(--lp-dur-quick) ease;
}

.landing-contact__field textarea {
  resize: vertical;
  min-height: 7rem;
}
.landing-contact__field input:focus,
.landing-contact__field select:focus,
.landing-contact__field textarea:focus {
  border-color: var(--lp-harbour);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-harbour) 20%, transparent);
  outline: none;
}

.landing-contact__phone-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: .5rem;
}

.landing-contact__phone-input select,
.landing-contact__phone-input input {
  min-width: 0;
}

.landing-contact__phone-input select {
  color-scheme: dark;
}

.landing-contact__phone-input .choices {
  min-width: 0;
  margin: 0;
  font-size: .875rem;
}

.landing-contact__phone-input .choices__inner {
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: .75rem 1.75rem .75rem .875rem;
  border: 1px solid var(--lp-line-strong);
  border-radius: var(--lp-radius-sm);
  background: var(--lp-ground);
  color: var(--lp-ink-strong);
  font-size: inherit;
}

.landing-contact__phone-input .choices__list--single {
  padding: 0;
}

.landing-contact__phone-input .choices__list--single .choices__item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-contact__phone-input .choices[data-type*="select-one"]::after {
  right: .75rem;
  border-color: var(--lp-mute) transparent transparent;
}

.landing-contact__phone-input .choices[data-type*="select-one"].is-open::after {
  border-color: transparent transparent var(--lp-mute);
}

.landing-contact__phone-input .choices.is-focused .choices__inner {
  border-color: var(--lp-harbour);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-harbour) 20%, transparent);
}

.landing-contact__phone-input .choices__list--dropdown {
  z-index: 10;
  width: calc(225% + .625rem);
  margin-top: .5rem;
  padding: .5rem;
  border: 1px solid var(--lp-line-strong);
  border-radius: var(--lp-radius-sm);
  background: var(--lp-ground-raised);
  box-shadow: 0 16px 40px rgb(0 0 0 / 35%);
  color: var(--lp-ink-strong);
}

.landing-contact__phone-input .choices__list--dropdown .choices__item {
  padding: .75rem;
  border-radius: var(--lp-radius-sm);
}

.landing-contact__phone-input .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: color-mix(in srgb, var(--lp-harbour) 20%, transparent);
}

.landing-contact__phone-input .choices[data-type*="select-one"] .choices__input {
  margin-bottom: .5rem;
  border: 1px solid var(--lp-line-strong);
  background: var(--lp-ground);
  color: var(--lp-ink-strong);
}

.landing-contact__hint,
.landing-contact__privacy {
  margin: 0;
  color: var(--lp-mute);
  font-size: .75rem;
  line-height: 1.6;
}

.landing-contact__privacy a {
  color: var(--lp-ink-strong);
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media (width <= 380px) {
  .landing-contact__phone-input {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-contact__phone-input .choices__list--dropdown {
    width: 100%;
  }
}


.landing-contact__form .landing-btn {
  justify-content: space-between;
  margin-top: .4rem;
  padding-inline: 1.125rem;
  background: color-mix(in srgb, var(--lp-harbour) 16%, white);
  color: var(--lp-hull);
  box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
  font-size: .875rem;
}

.landing-contact__form .landing-btn:hover {
  background: color-mix(in srgb, var(--lp-harbour) 8%, white);
  box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
}

.landing-contact__field-error,
.landing-contact__error {
  color: var(--lp-red);
  font-size: .8125rem;
}

/* The confirmation state. It stands in for the whole form inside the card, so
   it owns its own rhythm rather than inheriting the form's field gap. */
.landing-contact__sent {
  display: grid;
  justify-items: start;
  gap: .75rem;
  padding-block: 1.5rem;
}

.landing-contact__sent-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: .5rem;
  color: var(--lp-green);
  font-size: 1rem;
  background: color-mix(in srgb, var(--lp-green) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--lp-green) 36%, transparent);
  border-radius: 50%;
}

.landing-contact__sent-title {
  margin: 0;
  color: var(--lp-ink-strong);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -.01em;
}

.landing-contact__sent-body {
  max-width: 24rem;
  margin: 0;
  color: #9eafc6;
  font-size: .875rem;
  line-height: 1.7;
}

.landing-contact__sent .landing__text-link {
  margin-top: .75rem;
  font-size: .8125rem;
}

/* The in-flight submit. The card is answering, so the button must stop
   inviting a second press. */
.landing-contact__form[data-busy] .landing-btn {
  opacity: .55;
  pointer-events: none;
}

/* Keep the whole trap (including its label) off-screen without relying on :has().
   The template also excludes it from screen readers and keyboard interaction. */
.landing-contact__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


@media (width >= 36rem) {
  .landing-contact__block {
    padding-inline: 2rem;
    padding-bottom: 2rem;
  }

  .landing-contact__panel {
    padding: 2.25rem;
  }
}

@media (width >= 56rem) {
  .landing-contact__block {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
    gap: clamp(3rem, 6vw, 6rem);
    padding: calc(var(--lp-contact-cut) + 1.5rem) clamp(2.5rem, 5vw, 5rem) clamp(2.5rem, 5vw, 5rem);
  }
}
