/* Closing scene: broad blue light, a sculpted brand mark and a complete device.
   The CSS illumination remains when WebGL is unavailable. */

.landing-contact {
  --lp-contact-light-y: 44%;

  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(5rem, 8vw, 8rem) 0;
  background:
    radial-gradient(ellipse at 23% var(--lp-contact-light-y), color-mix(in srgb, var(--lp-current) 44%, transparent), transparent 58%),
    radial-gradient(ellipse at 38% 81%, color-mix(in srgb, var(--lp-harbour) 12%, transparent), transparent 42%);
}

/* The last light dissolves onto the same ground as the footer. */
.landing-contact::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 9rem;
  background: linear-gradient(color-mix(in srgb, var(--lp-ground) 0%, transparent), var(--lp-ground));
  pointer-events: none;
}

canvas.landing-contact__field {
  --lp-field-ground: var(--lp-ground);

  position: absolute;
  inset: 14rem 0 auto;
  z-index: 0;
  width: 100%;
  height: 44rem;
  opacity: 0;
  mask-image: linear-gradient(transparent, #000 20%, #000 72%, transparent);
  pointer-events: none;
  transition: opacity 700ms ease;
}

canvas.landing-contact__field.is-live {
  opacity: 1;
}

.landing-contact__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3rem;
}

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

.landing-contact__copy .landing__eyebrow {
  color: color-mix(in srgb, var(--lp-harbour) 25%, white);
}

.landing-contact__copy .landing__headline {
  font-size: clamp(2.75rem, 4.5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.045em;
}

.landing-contact__copy .landing__headline em {
  color: color-mix(in srgb, var(--lp-harbour) 30%, white);
}

.landing-contact__copy .landing__sub {
  max-width: 27rem;
  margin-top: 1.75rem;
  color: var(--lp-mute);
  line-height: 1.75;
}

.landing-contact__login {
  margin: 1.5rem 0 0;
  color: var(--lp-mute);
  font-size: .8125rem;
}

.landing-contact__login a {
  display: inline-block;
  margin-left: .35rem;
  padding-bottom: .1rem;
  border-bottom: 1px solid var(--lp-line-strong);
  color: var(--lp-ink-strong);
  font-weight: 500;
  transition: border-color 180ms ease, color 180ms ease;
}

.landing-contact__login a:hover {
  border-color: var(--lp-cyan);
  color: var(--lp-cyan);
}

.landing-contact__login i {
  margin-left: .4rem;
  font-size: .65rem;
}

.landing-contact__product {
  position: relative;
  height: clamp(23rem, 80vw, 26rem);
  margin-top: 2.5rem;
  isolation: isolate;
}

/* A soft contact shadow anchors the two objects without cropping the phone. */
.landing-contact__product::before {
  content: "";
  position: absolute;
  inset: auto 0 .1rem;
  height: 3rem;
  z-index: -1;
  background: radial-gradient(ellipse, rgb(0 0 0 / 45%), transparent 68%);
  pointer-events: none;
}

/* Each depth layer uses the original brand silhouette. The wrapper is unmasked
   so the offset edges and their shadows are not clipped by the front face. */
.landing-contact__mark {
  position: absolute;
  top: 2.75rem;
  left: 0;
  width: 72%;
  filter:
    drop-shadow(.5rem 1rem .5rem rgb(0 0 0 / 28%))
    drop-shadow(0 1.75rem 1.5rem rgb(0 0 0 / 28%));
  pointer-events: none;
}

.landing-contact__mark-slab::before,
.landing-contact__mark-slab::after,
.landing-contact__mark-edge {
  position: absolute;
  inset: 0;
  mask-image: url("../../../brand/svg/concloud-icon.svg");
  mask-repeat: no-repeat;
  mask-size: contain;
}

.landing-contact__mark-slab {
  position: relative;
  width: 100%;
  aspect-ratio: 571 / 395;
  transform: perspective(60rem) rotateX(10deg) rotateY(-18deg) rotateZ(-8deg);
}

.landing-contact__mark-slab::before,
.landing-contact__mark-slab::after {
  content: "";
}

.landing-contact__mark-slab::before {
  background: linear-gradient(135deg, #a6c0d4, #3c5974 42%, #8baac2 65%, #243b56);
  transform: translate(2.1%, 3.2%);
}

.landing-contact__mark-edge {
  background: linear-gradient(145deg, #f5fbff 10%, #a2bed4 38%, #e9f7ff 54%, #64849f 78%, #b9ddf2);
  transform: translate(.9%, 1.5%);
}

.landing-contact__mark-slab::after {
  background:
    linear-gradient(118deg, transparent 34%, rgb(255 255 255 / 65%) 47%, transparent 60%),
    linear-gradient(155deg, #fff 5%, #edf5fb 32%, #b8cddd 59%, #e4f1f9 76%, #b5d3e9);
}

.landing-contact__phone {
  position: absolute;
  top: .4rem;
  right: 8%;
  width: 10rem;
  pointer-events: none;
}

/* The shell owns its tilt; entrance transforms only touch the outer wrapper. */
.landing-contact__phone .lp-phone {
  transform: perspective(70rem) rotateX(5deg) rotateY(-16deg) rotateZ(8deg);
}

.landing-contact__phone .lp-phone::before {
  content: "";
  position: absolute;
  inset: .2cqw -1.9cqw -.2cqw 1cqw;
  z-index: -1;
  border-radius: 17cqw;
  background: linear-gradient(100deg, #172336 65%, #667d94 90%, #d3dce5 96%, #263b52);
  box-shadow: 5cqw 12cqw 18cqw rgb(0 0 0 / 45%);
}

.landing-contact__phone .lp-phone__body {
  position: relative;
  padding: 1.1cqw;
  background: linear-gradient(112deg, #a5b5c7, #e4ebf2 2%, #52647b 4%, #1b2639 47%, #72869b 94%, #d5e2ee 98%, #5b7189);
  box-shadow:
    inset 0 0 0 .35cqw rgb(233 244 255 / 65%),
    inset -.5cqw 0 1cqw rgb(0 0 0 / 60%),
    .4cqw .2cqw 0 #0a111d;
}

.landing-contact__phone .lp-phone__black {
  padding: 2cqw;
  background: #03060b;
  box-shadow: inset 0 0 0 .4cqw #242d3b;
}

.landing-contact__phone .lp-phone__button {
  width: 1cqw;
  background: linear-gradient(90deg, #26354b, #a2b6c9 45%, #4d6178);
  box-shadow: 0 .5cqw .5cqw rgb(0 0 0 / 40%);
}

.landing-contact__phone .lp-phone__button--mute {
  top: 31cqw;
  height: 7cqw;
}

.landing-contact__phone .lp-phone__button--up {
  top: 47cqw;
  height: 12cqw;
}

.landing-contact__phone .lp-phone__button--down {
  top: 64cqw;
  height: 12cqw;
}

.landing-contact__phone .lp-phone__button--power {
  top: 51cqw;
  height: 19cqw;
}

.landing-contact__phone .lp-phone__shadow {
  display: none;
}

.landing-contact__phone .lp-phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset .5cqw .5cqw 1cqw rgb(216 235 255 / 12%);
  background: linear-gradient(118deg, rgb(211 238 255 / 12%), transparent 32%, transparent 58%, rgb(157 205 238 / 3%) 75%, transparent);
  pointer-events: none;
}

.landing-contact__phone .lp-phone__island {
  box-shadow: inset 0 .4cqw .6cqw rgb(148 168 191 / 13%);
}

.landing-contact__phone .lp-phone__island::before {
  content: "";
  position: absolute;
  inset: 4.4cqw auto auto 5cqw;
  width: 13cqw;
  height: .8cqw;
  border-radius: 1cqw;
  background: #111722;
}

.landing-contact__phone .lp-phone__island::after {
  content: "";
  position: absolute;
  top: 3cqw;
  right: 3cqw;
  width: 3.5cqw;
  height: 3.5cqw;
  border: .4cqw solid #172d40;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #719bb5, #132f51 25%, #050811 65%);
}

/* The card. It carries the surface so its contents — the form, or the
   confirmation that replaces it — can be swapped without the panel flickering. */
.landing-contact__panel {
  min-width: 0;
  margin-bottom: 4rem;
  padding: 1.5rem;
  background: linear-gradient(140deg, color-mix(in srgb, var(--lp-ground-raised) 88%, var(--lp-harbour)), var(--lp-ground));
  border: 1px solid var(--lp-line-strong);
  border-radius: var(--lp-radius-xl);
  box-shadow: 0 32px 80px -32px rgb(0 0 0 / 55%), inset 0 1px 0 rgb(255 255 255 / 6%);
  backdrop-filter: blur(20px);
}

.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 honeypot off-screen, matching the existing form behavior. */
.landing-contact__field:has(.landing-contact__decoy) {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (width >= 36rem) {
  .landing-contact__product {
    max-width: 34rem;
    height: 28rem;
  }

  .landing-contact__mark {
    top: 4rem;
    left: 4%;
    width: 76%;
  }

  .landing-contact__phone {
    right: 8%;
    width: 12rem;
  }

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

@media (width >= 56rem) {
  .landing-contact {
    --lp-contact-light-y: 69%;
  }

  canvas.landing-contact__field {
    inset: 0;
    height: 100%;
  }

  .landing-contact__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
    gap: clamp(3rem, 7vw, 7rem);
  }

  .landing-contact__product {
    height: 29rem;
    margin-top: 3rem;
  }

  .landing-contact__mark {
    top: 3rem;
    left: 0;
    width: 85%;
  }

  .landing-contact__phone {
    right: 7%;
    width: 12rem;
  }

  .landing-contact__panel {
    margin-top: .25rem;
    margin-bottom: 6rem;
  }
}

@media (width >= 75rem) {
  .landing-contact__product {
    height: 31rem;
  }

  .landing-contact__mark {
    top: 3.5rem;
    width: 88%;
  }

  .landing-contact__phone {
    right: 8%;
    width: 13.25rem;
  }
}
