/* Contact page-only presentation. */
.page-contact .inner-main {
  padding-top: clamp(54px, 7vw, 92px);
}

.page-contact .contact-layout {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(540px, 1.15fr);
  width: min(1320px, calc(100% - 40px));
  gap: clamp(34px, 5vw, 78px);
  margin-bottom: clamp(76px, 8vw, 118px);
  padding: clamp(18px, 2vw, 28px);
  padding-bottom: clamp(12px, 1.2vw, 18px);
  overflow: hidden;
  border: 1px solid #252936;
  border-radius: 38px 12px 38px 12px;
  background:
    radial-gradient(circle at 12% 15%, rgba(205, 32, 31, 0.24), transparent 28%),
    linear-gradient(135deg, #10131b 0%, #171b25 58%, #20151a 100%);
  box-shadow: 0 35px 90px rgba(18, 24, 36, 0.18);
}

.page-contact .contact-layout::before,
.page-contact .contact-layout::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(239, 73, 72, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.page-contact .contact-layout::before {
  width: 420px;
  height: 420px;
  left: -245px;
  bottom: -210px;
}

.page-contact .contact-layout::after {
  width: 230px;
  height: 230px;
  left: -92px;
  bottom: -112px;
}

.page-contact .contact-intro {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: clamp(44px, 5vw, 72px) clamp(18px, 3vw, 42px);
  padding-bottom: clamp(22px, 2.5vw, 34px);
  color: #fff;
}

.page-contact .contact-intro .kicker {
  color: #ff8b89;
}

.page-contact .contact-layout h1 {
  max-width: 610px;
  margin: 28px 0 24px;
  color: #fff;
  font-size: clamp(50px, 4.8vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.page-contact .contact-layout h1 em {
  color: #ef4948;
}

.page-contact .contact-intro > p {
  max-width: 530px;
  color: #aeb6c7;
  font-size: 17px;
}

.page-contact .contact-note {
  margin-top: auto;
  padding-top: 64px;
}

.page-contact .contact-note > span {
  margin-bottom: 8px;
  color: #7f899d;
  font: 500 10px/1 "DM Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-note__cards {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.page-contact .contact-note__cards a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  max-width: 440px;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px 4px 14px 4px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.page-contact .contact-note__cards a > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px 3px 11px 3px;
  background: rgba(239, 73, 72, 0.16);
  color: #ff7775;
  font-style: normal;
  font-weight: 700;
}

.page-contact .contact-note__cards a > i svg {
  width: 19px;
  height: 19px;
  overflow: visible;
  fill: currentColor;
}

.page-contact .contact-note__cards a:first-child > i svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-contact .contact-note__cards .contact-social--instagram > i svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.page-contact .contact-note__cards a > span {
  display: grid;
  gap: 3px;
}

.page-contact .contact-note__cards small {
  color: #848da0;
  font: 500 9px/1 "DM Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-contact .contact-note__cards strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 550;
}

.page-contact .contact-note__cards a > b {
  color: #818b9d;
  font-size: 17px;
  font-weight: 400;
}

.page-contact .contact-note__cards a:hover {
  border-color: rgba(255, 119, 117, 0.45);
  background: rgba(239, 73, 72, 0.11);
  transform: translateX(4px);
}

.page-contact .contact-form {
  contain: layout paint;
  align-self: stretch;
  align-content: start;
  gap: 20px;
  padding: clamp(30px, 3.4vw, 48px);
  padding-bottom: clamp(22px, 2.2vw, 32px);
  border: 0;
  border-radius: 28px 7px 28px 7px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.contact-form__heading {
  padding-bottom: 18px;
  border-bottom: 1px solid #e7e9ee;
}

.contact-form__heading > span {
  color: var(--accent);
  font: 600 10px/1 "DM Mono", monospace;
  letter-spacing: 0.12em;
}

.contact-form__heading h2 {
  margin: 12px 0 5px;
  font: 600 clamp(27px, 2.5vw, 36px)/1.08 "Outfit", sans-serif;
  letter-spacing: -0.04em;
}

.contact-form__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.page-contact .contact-form label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0;
  color: #252a36;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.contact-form__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contact-form__label small {
  color: #8a93a3;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-contact .contact-form input,
.page-contact .contact-form select,
.page-contact .contact-form textarea {
  width: 100%;
  margin: 0;
  border-color: #dfe3ea;
  border-radius: 12px 4px 12px 4px;
  background: #f7f8fa;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.page-contact .contact-form input::placeholder,
.page-contact .contact-form textarea::placeholder {
  color: #a2a9b5;
}

.page-contact .contact-form input:focus,
.page-contact .contact-form select:focus,
.page-contact .contact-form textarea:focus {
  border-color: #ef4948;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(239, 73, 72, 0.1);
}

.page-contact .contact-form select {
  appearance: none;
  padding-right: 54px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23111827' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
  background-size: 14px 8px;
}

.page-contact .contact-form button {
  justify-self: start;
  min-width: 0;
  min-height: 48px;
  margin-top: 4px;
  padding: 0 20px;
  border-radius: 12px 4px 12px 4px;
  font-size: 12px;
  gap: 14px;
}

.page-contact .contact-form button .long-arrow {
  font-size: 19px;
}

.page-contact .contact-form button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
  transform: none;
}

.contact-is-sending .contact-form button:disabled {
  cursor: wait;
}

.contact-is-sending {
  overflow: hidden;
}

.contact-is-sending .site-header,
.contact-is-sending main,
.contact-is-sending .site-footer,
.contact-is-sending .floating-contact {
  pointer-events: none;
  user-select: none;
}

.contact-sending {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 24px;
  background: rgba(10, 13, 20, 0.76);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(12px);
}

.contact-sending[hidden] {
  display: none;
}

.contact-sending__scene {
  position: relative;
  width: 150px;
  height: 92px;
  margin-bottom: 25px;
}

.contact-sending__envelope {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 42px;
  width: 72px;
  height: 50px;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.28));
  animation: contact-envelope-flight 1.15s cubic-bezier(.45, 0, .25, 1) infinite;
}

.contact-sending__envelope-body {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
}

.contact-sending__envelope-body::before,
.contact-sending__envelope-body::after {
  content: "";
  position: absolute;
  bottom: -24px;
  width: 52px;
  height: 52px;
  background: #f2f4f8;
  transform: rotate(45deg);
}

.contact-sending__envelope-body::before { left: -25px; }
.contact-sending__envelope-body::after { right: -25px; }

.contact-sending__letter {
  position: absolute;
  z-index: 1;
  top: -12px;
  left: 9px;
  width: 54px;
  height: 38px;
  border-radius: 4px 4px 0 0;
  background:
    linear-gradient(#ef4948, #ef4948) 9px 10px / 28px 3px no-repeat,
    linear-gradient(#cbd2dd, #cbd2dd) 9px 19px / 37px 2px no-repeat,
    #fff;
  animation: contact-letter-pack 1.15s ease-in-out infinite;
}

.contact-sending__trail {
  position: absolute;
  top: 47px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-sending__trail i {
  width: 22px;
  height: 3px;
  border-radius: 4px;
  background: #ef4948;
  animation: contact-mail-trail 1.15s ease-in-out infinite;
}

.contact-sending__trail i:nth-child(2) { width: 13px; animation-delay: .1s; }
.contact-sending__trail i:nth-child(3) { width: 7px; animation-delay: .2s; }

.contact-sending strong {
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.035em;
}

.contact-sending small {
  margin-top: 9px;
  color: #bec5d2;
  font-size: 13px;
}

.contact-success {
  width: min(500px, calc(100% - 32px));
  padding: clamp(30px, 5vw, 48px);
  border: 0;
  border-radius: 28px 8px 28px 8px;
  background: #fff;
  color: #171b25;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.contact-success::backdrop {
  background: rgba(10, 13, 20, 0.76);
  backdrop-filter: blur(12px);
}

.contact-success__icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  background: #eaf8f1;
  color: #20935d;
  font-size: 28px;
  font-weight: 700;
}

.contact-success > span {
  color: #168556;
  font: 600 10px/1 "DM Mono", monospace;
  letter-spacing: 0.14em;
}

.contact-success h2 {
  margin: 14px 0 12px;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.contact-success h2 > span,
.contact-success h2 strong {
  display: block;
}

.contact-success h2 strong {
  overflow: hidden;
  margin-top: 5px;
  color: #168556;
  font-weight: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-success p {
  margin: 0 auto 28px;
  max-width: 390px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-success .button {
  min-width: 150px;
  justify-content: center;
  background: #168556;
  box-shadow: 0 12px 26px rgba(22, 133, 86, 0.24);
}

@keyframes contact-envelope-flight {
  0%, 100% { transform: translate(-8px, 3px) rotate(-3deg); }
  50% { transform: translate(10px, -5px) rotate(2deg); }
}

@keyframes contact-letter-pack {
  0%, 18% { transform: translateY(-5px); }
  48%, 100% { transform: translateY(11px); }
}

@keyframes contact-mail-trail {
  0%, 100% { opacity: .18; transform: translateX(10px) scaleX(.6); }
  45% { opacity: 1; transform: none; }
}

.contact-form__captcha {
  width: min(304px, 100%);
  min-height: 78px;
  margin-top: 2px;
  overflow: hidden;
}

.contact-form__captcha--placeholder {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 10px 12px;
  border: 1px solid #d5d8dc;
  border-radius: 2px;
  background: #fafafa;
  color: #202124;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.captcha-preview__checkbox {
  width: 26px;
  height: 26px;
  border: 2px solid #555;
  border-radius: 2px;
  background: #fff;
}

.contact-form__captcha--placeholder > strong {
  font-size: 14px;
  font-weight: 500;
}

.captcha-preview__brand {
  display: grid;
  justify-items: center;
  color: #555;
}

.captcha-preview__brand i {
  color: #4968ad;
  font-size: 25px;
  font-style: normal;
  line-height: 0.9;
}

.captcha-preview__brand small {
  margin-top: 3px;
  font-size: 8px;
}

.captcha-preview__brand em {
  font-size: 6px;
  font-style: normal;
}

.page-contact .contact-form > small {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-contact .contact-form > small span {
  color: #2db878;
  font-size: 8px;
}

@media (min-width: 901px) {
  .page-contact .contact-form {
    gap: 30px;
  }

  .page-contact .contact-form label {
    gap: 8px;
  }

  .contact-form__row {
    gap: 22px;
  }

  .contact-form__captcha {
    margin-top: 4px;
  }
}

@media (max-width: 980px) {
  .page-contact .contact-layout {
    grid-template-columns: 1fr;
  }

  .page-contact .contact-note {
    margin-top: 38px;
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  .page-contact .inner-main {
    padding-top: 34px;
  }

  .page-contact .contact-layout {
    width: min(100% - 24px, 1180px);
    gap: 10px;
    padding: 10px;
    padding-bottom: 8px;
    border-radius: 26px 8px 26px 8px;
  }

  .page-contact .contact-intro {
    padding: 36px 16px 30px;
    padding-bottom: 20px;
  }

  .page-contact .contact-layout h1 {
    font-size: clamp(45px, 14vw, 64px);
  }

  .page-contact .contact-form {
    padding: 26px 18px;
    padding-bottom: 20px;
    border-radius: 22px 6px 22px 6px;
  }

  .page-contact .contact-form input,
  .page-contact .contact-form select,
  .page-contact .contact-form textarea {
    font-size: 16px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .contact-form__captcha .g-recaptcha {
    transform: scale(0.84);
    transform-origin: left top;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-contact .contact-note a {
    transition: none;
  }

  .contact-sending__envelope,
  .contact-sending__letter,
  .contact-sending__trail i {
    animation-duration: 2s;
  }
}
