/* Contact page. Mobile first. Breakpoints: 640px, 900px. */

body:has(.cm-contact) {
  margin: 0;
  background: #fff;
}

body.ct-modal-open {
  overflow: hidden;
}

.cm-contact,
.cm-contact *,
.ct-modal,
.ct-modal * {
  box-sizing: border-box;
}

.cm-contact,
.ct-modal {
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.cm-contact {
  position: relative;
  z-index: 1;
  background: #fff;
  font-size: 17px;
  line-height: 1.6;
}

.cm-contact a {
  color: inherit;
  text-decoration: none;
}

.cm-contact a:focus,
.cm-contact button:focus,
.ct-modal button:focus {
  outline: none;
}

.cm-contact a:focus-visible,
.cm-contact button:focus-visible,
.ct-modal button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.cm-contact .ct-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.cm-contact .ct {
  padding: 144px 0 96px;
  text-align: center;
}

.cm-contact .ct-in {
  max-width: 1080px;
}

.cm-contact h1 {
  margin: 0 auto;
  max-width: 15ch;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}

.cm-contact .ct-sub {
  max-width: 52ch;
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.cm-contact .ct-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 44px;
}

.cm-contact .ct-c {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 22px 26px;
  border-radius: 20px;
  background: var(--ctbg);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.cm-contact .ct-or { --ctbg: #FFF1E8; }
.cm-contact .ct-bl { --ctbg: #EAF1FF; }

.cm-contact .ct-c:hover {
  filter: brightness(0.985);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -20px rgba(12, 12, 16, 0.3);
}

.cm-contact .ct-ic {
  width: 52px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(12, 12, 16, 0.06), inset 0 0 0 1px rgba(11, 11, 12, 0.06);
}

.cm-contact .ct-ic svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cm-contact .ct-c h2 {
  margin: 18px 0 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cm-contact .ct-c p {
  max-width: 44ch;
  margin: 10px 0 26px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.cm-contact .ct-lk {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(11, 11, 12, 0.18);
  background: rgba(255, 255, 255, 0.6);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cm-contact .ct-lk::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
}

.cm-contact .ct-c:hover .ct-lk {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.cm-contact .ct-lk svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.cm-contact .ct-c:hover .ct-lk svg {
  transform: translateX(3px);
}

.cm-contact .ct-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.cm-contact .ct-call:hover {
  border-color: rgba(11, 11, 12, 0.3);
  transform: translateY(-1px);
}

.cm-contact .ct-ic-sm {
  width: 40px;
  height: 40px;
  background: #F5F5F3;
  box-shadow: none;
  flex: none;
}

.cm-contact .ct-cl {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.cm-contact .ct-cl b {
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.cm-contact .ct-cl small {
  font-size: 13.5px;
  color: var(--ink-3);
}

.cm-contact .ct-fin {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 118px 0;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.cm-contact .ct-fin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -140px;
  transform: translateX(-50%);
  width: 900px;
  max-width: 100%;
  height: 320px;
  background: radial-gradient(ellipse, rgba(59, 123, 255, 0.16), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.cm-contact .ct-fin h2 {
  max-width: 46ch;
  margin: 0 auto;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}

.cm-contact .ct-fin p {
  max-width: 94ch;
  margin: 26px auto 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.62);
}

.cm-contact .ct-fin-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

.cm-contact .ct-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cm-contact .ct-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px rgba(12, 12, 16, 0.35);
}

.cm-contact .ct-cta-light {
  background: #fff;
  color: var(--ink);
}

.cm-contact .ct-cta-light:hover {
  background: #F0F0EC;
  color: var(--ink);
}

.cm-contact .ct-cta-line {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
}

.cm-contact .ct-cta-line:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.cm-contact .ct-fin a:focus-visible {
  outline-color: #fff;
}

/* Sales dialog. Not a native <dialog>: the top layer would cover the reCAPTCHA challenge. */
.ct-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(11, 11, 12, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ct-modal[hidden] {
  display: none;
}

.ct-modal .ct-modal-in {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 28px 20px 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.45);
  animation: ctModalIn 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes ctModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

.ct-modal .ct-modal-x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #F3F3F1;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ct-modal .ct-modal-x:hover {
  background: #E9E9E6;
  color: var(--ink);
}

.ct-modal .ct-modal-x svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.ct-modal h2 {
  margin: 0 0 22px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

#from_main1 form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

#from_main1 .form-show {
  display: grid;
  gap: 14px;
}

#from_main1.trail-form {
  float: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

#from_main1 .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
}

#from_main1 .row > [class*="col-"] {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
}

#from_main1 .form-show > .row:first-child {
  grid-template-columns: 1fr;
}

#from_main1 .trail-grp {
  padding: 0;
  margin: 0;
}

#from_main1 .label-name {
  display: block;
  padding: 0 0 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

#from_main1 .form-control {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#from_main1 textarea.form-control {
  height: auto;
  min-height: 100px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

#from_main1 .form-control::placeholder {
  color: #A3A3AA;
  font-size: 15px;
}

#from_main1 .form-control:focus {
  border-color: rgba(11, 11, 12, 0.35);
  box-shadow: 0 0 0 4px rgba(59, 123, 255, 0.1);
}

#from_main1 form.was-validated .form-control:invalid {
  border-color: #E5484D;
}

#from_main1 .list-unstyled {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

#from_main1 .invalid-feedback {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #E5484D;
}

#from_main1 form.was-validated .form-control:invalid ~ .invalid-feedback {
  display: block;
}

#from_main1 .first_sp,
#from_main1 .phone_or,
#from_main1 .first_me,
#from_main1 .phone_me,
#from_main1 .first_me2,
#from_main1 .first_sp22,
#from_main1 .first_sp_b4 {
  display: none;
  font-size: 12px;
}

#from_main1 .first_me_b,
#from_main1 .first_me_b2,
#from_main1 .first_me_n,
#from_main1 .first_sp_b,
#from_main1 .first_sp2_n22,
#from_main1 .first_sp2_b_n,
#from_main1 .first_sp2_b_n22 {
  font-size: 12px;
  color: #E5484D;
}

#from_main1 #dvcaptcha {
  float: none !important;
  margin: 2px 0 0 !important;
  max-width: 100%;
  overflow: hidden;
}

#from_main1 #captchaValidationError {
  margin-top: 6px;
}

#from_main1 button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: #0B0B0C;
  color: #fff;
  font: inherit;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(11, 11, 12, 0.55);
  transition: background 0.2s;
}

#from_main1 button[type="submit"]::after {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s;
}

#from_main1 button[type="submit"]:hover,
#from_main1 button[type="submit"]:active,
#from_main1 button[type="submit"]:focus-visible {
  background: #2A2A2E !important;
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(11, 11, 12, 0.55);
}

#from_main1 button[type="submit"]:hover::after {
  transform: translateX(3px);
}

#popupMessage {
  display: none;
  position: fixed;
  top: 100px;
  right: 42px;
  z-index: 999999;
  padding: 15px;
  border-radius: 5px;
  background-color: #f44336;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 521px) {
  .ct-modal .ct-modal-in {
    padding: 36px 36px 32px;
  }

  #from_main1 .form-show > .row:first-child {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 640px) {
  .cm-contact .ct-wrap {
    padding: 0 32px;
  }

  .cm-contact .ct {
    padding: 176px 0 120px;
  }

  .cm-contact .ct-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 60px;
  }

  .cm-contact .ct-c {
    padding: 44px 48px 38px;
  }

  .cm-contact .ct-fin h2 {
    text-wrap: nowrap;
  }
}

@media (max-width: 820px) {
  .cm-contact .ct-fin h2 {
    text-wrap: balance;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cm-contact .ct-c,
  .cm-contact .ct-lk,
  .cm-contact .ct-lk svg,
  .cm-contact .ct-call,
  .cm-contact .ct-cta,
  .ct-modal .ct-modal-in,
  #from_main1 button[type="submit"]::after {
    animation: none;
    transition: none;
  }

  .cm-contact .ct-c:hover,
  .cm-contact .ct-call:hover,
  .cm-contact .ct-cta:hover {
    transform: none;
  }
}
