:root {
  --contact-sidebar-x: 0px;
  --contact-sidebar-w: 0px;
  --contact-sidebar-gap: 0px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body.contact-page {
  margin: 0;
  color: #17142d;
  background:
    radial-gradient(circle at 78% 18%, rgba(213, 240, 255, 0.72), transparent 34%),
    radial-gradient(circle at 26% 50%, rgba(230, 221, 255, 0.72), transparent 38%),
    linear-gradient(135deg, #faf9ff 0%, #f4f2ff 48%, #eef8ff 100%);
  font-family: "Manrope", system-ui, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-main {
  width: min(1000px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 16px 44px;
}

.topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  min-height: 52px !important;
  margin-bottom: 20px !important;
}

.brand img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

.contact-hero {
  margin-bottom: 24px;
}

.contact-header h1,
.contact-hero h1 {
  margin: 0;
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: clamp(2.25rem, 3.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.contact-header p,
.contact-hero p {
  max-width: 650px;
  margin: 10px 0 0;
  color: #605b78;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.contact-back-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(110, 82, 220, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #5f46c7;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(73, 54, 136, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.contact-back-link:hover {
  border-color: rgba(110, 82, 220, 0.38);
  box-shadow: 0 10px 26px rgba(73, 54, 136, 0.13);
  transform: translateY(-1px);
}

.contact-back-link:focus-visible {
  outline: 3px solid rgba(118, 87, 231, 0.24);
  outline-offset: 3px;
}

.contact-back-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-brand {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 28px rgba(87, 76, 168, 0.16);
}

.contact-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 24px;
  align-items: start;
}

.contact-panel,
.contact-support-card {
  border: 1px solid rgba(221, 217, 241, 0.9);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 55px rgba(87, 76, 168, 0.12);
  backdrop-filter: blur(22px);
}

.contact-panel {
  min-width: 0;
  padding: clamp(20px, 2vw, 24px);
  border-radius: 28px;
}

#contact-form {
  display: grid;
  gap: 10px;
}

.contact-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #29243f;
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid #dcd8ec;
  border-radius: 13px;
  outline: none;
  background: rgba(255, 255, 255, 0.94);
  color: #211d37;
  font: 600 0.92rem/1.45 "Manrope", sans-serif;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-field input,
.contact-field select {
  min-height: 44px;
  padding: 0 14px;
}

.contact-field textarea {
  min-height: 80px;
  padding: 11px 14px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: rgba(109, 86, 216, 0.7);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(109, 86, 216, 0.12);
}

.contact-field small {
  justify-self: end;
  color: #85809a;
  font-size: 0.72rem;
  font-weight: 600;
}

.contact-upload {
  min-height: 60px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px dashed rgba(109, 86, 216, 0.42);
  border-radius: 16px;
  background: rgba(248, 246, 255, 0.74);
  color: #39334f;
  cursor: pointer;
  text-align: left;
}

.contact-upload:hover {
  border-color: #6d56d8;
  background: #f7f4ff;
}

.contact-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-upload-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: #725bdc;
  background: #ece7ff;
}

.contact-upload-icon svg,
.contact-captcha button svg,
.contact-success svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-upload strong,
.contact-upload small {
  display: block;
}

.contact-upload strong {
  font-size: 0.84rem;
}

.contact-upload em {
  color: #817b94;
  font-style: normal;
  font-weight: 600;
}

.contact-upload small {
  margin-top: 4px;
  color: #817b94;
  font-size: 0.72rem;
}

.contact-captcha {
  margin: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(250px, auto) minmax(170px, 1fr);
  align-items: end;
  gap: 12px;
  border: 1px solid #e1ddef;
  border-radius: 17px;
  background: rgba(250, 249, 255, 0.78);
}

.contact-captcha legend {
  padding: 0 6px;
  color: #29243f;
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-captcha-row img {
  width: 210px;
  max-width: calc(100% - 52px);
  height: 60px;
  border: 1px solid #e0dcef;
  border-radius: 14px;
}

.contact-captcha button,
.contact-success button {
  border: 0;
  font: 800 0.82rem "Manrope", sans-serif;
  cursor: pointer;
}

.contact-captcha button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #634ed6;
  background: #ece7ff;
}

.contact-status {
  min-height: 0;
  padding: 0;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-status:not(:empty) {
  min-height: 42px;
  padding: 11px 13px;
}

.contact-status.error {
  color: #8b2534;
  background: #fff0f2;
}

.contact-status.info {
  color: #4e438e;
  background: #f0edff;
}

.contact-submit {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #755cf0, #5b40db);
  color: #fff;
  box-shadow: 0 12px 26px rgba(91, 64, 219, 0.24);
  font: 800 0.96rem "Manrope", sans-serif;
  cursor: pointer;
}

.contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(91, 64, 219, 0.29);
}

.contact-submit:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.contact-recipient {
  margin: -4px 0 0;
  color: #6f6982;
  font-size: 0.76rem;
  text-align: center;
}

.contact-recipient a,
.contact-support-card a {
  color: #674fda;
  font-weight: 800;
  text-decoration: none;
}

.contact-support-card {
  position: sticky;
  top: 30px;
  padding: 26px;
  border-radius: 24px;
}

.contact-support-card h2 {
  margin: 0;
  font: 700 1.4rem/1.15 "Outfit", "Manrope", sans-serif;
}

.contact-support-card > p {
  margin: 11px 0 20px;
  color: #676178;
  font-size: 0.82rem;
  line-height: 1.55;
}

.contact-support-card dl,
.contact-support-card dl div {
  display: grid;
  gap: 5px;
}

.contact-support-card dl {
  margin: 0;
  gap: 18px;
}

.contact-support-card dl div {
  padding-top: 17px;
  border-top: 1px solid #ebe8f4;
}

.contact-support-card dt {
  color: #332d4a;
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-support-card dd {
  margin: 0;
  color: #6b657d;
  font-size: 0.78rem;
  line-height: 1.5;
}

.contact-success {
  min-height: 520px;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.contact-success:not([hidden]) {
  display: grid;
}

.contact-success > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #23845c;
  background: #e7f7ef;
}

.contact-success svg {
  width: 32px;
  height: 32px;
}

.contact-success h2 {
  margin: 4px 0 0;
  font: 700 1.65rem "Outfit", "Manrope", sans-serif;
}

.contact-success p {
  max-width: 380px;
  margin: 0;
  color: #68627b;
  line-height: 1.55;
}

.contact-success button {
  min-height: 44px;
  margin-top: 9px;
  padding: 0 18px;
  border-radius: 999px;
  color: #644dd5;
  background: #ece7ff;
}

.contact-nav {
  position: fixed;
  top: 84px;
  left: var(--contact-sidebar-x);
  z-index: 100;
  width: var(--contact-sidebar-w);
  min-height: min(680px, calc(100dvh - 120px));
  padding: 18px 14px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 7px;
  border: 1px solid rgba(220, 216, 247, 0.94);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 58px rgba(124, 110, 179, 0.15);
  backdrop-filter: blur(24px);
}

.contact-nav.dew-tabs .dew-tab,
.contact-nav a {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  place-items: center start;
  gap: 8px;
  border-radius: 16px;
  color: #74708a;
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-nav.dew-tabs .dew-tab-label {
  max-width: none !important;
  padding: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

.contact-nav.dew-tabs .dew-tab.active,
.contact-nav a.active {
  color: #574ca8;
  background: #e9e5fb;
  box-shadow: none;
}

@media (min-width: 769px) {
  .contact-nav,
  .contact-nav.dew-tabs {
    position: fixed !important;
    top: 84px !important;
    right: auto !important;
    bottom: auto !important;
    left: var(--contact-sidebar-x) !important;
    width: var(--contact-sidebar-w) !important;
    min-height: min(680px, calc(100dvh - 120px)) !important;
    padding: 18px 14px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-content: start !important;
    justify-content: stretch !important;
    gap: 7px !important;
    border-radius: 28px !important;
    transform: none !important;
  }

  .contact-nav.dew-tabs .dew-tab,
  .contact-nav a {
    width: 100% !important;
    min-width: 0 !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 12px !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    place-items: center start !important;
    gap: 8px !important;
    border-radius: 16px !important;
  }

  .contact-nav.dew-tabs .dew-tab-label {
    display: block !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 980px) and (min-width: 769px) {
  .contact-main {
    width: calc(100% - var(--contact-sidebar-x) - var(--contact-sidebar-w) - var(--contact-sidebar-gap) - 24px);
  }

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

  .contact-support-card {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --contact-sidebar-x: 0px;
    --contact-sidebar-w: 0px;
    --contact-sidebar-gap: 0px;
  }

  .contact-main {
    width: 100%;
    margin: 0;
    padding: 24px 14px 112px;
  }

  .contact-header {
    align-items: center;
    margin-bottom: 18px;
  }

  .contact-header h1 {
    font-size: 2.25rem;
  }

  .contact-header p {
    margin-top: 8px;
    font-size: 0.88rem;
  }

  .contact-header-actions {
    gap: 8px;
  }

  .contact-back-link,
  .dew-back-button {
    min-height: 38px !important;
    padding: 6px 14px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }

  .contact-back-link span,
  .dew-back-button span {
    display: inline-block !important;
  }

  .contact-brand {
    width: 50px;
    height: 50px;
    flex: none;
  }

  .contact-brand img {
    width: 42px;
    height: 42px;
  }

  .contact-layout,
  .contact-two-column {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .contact-captcha {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .contact-support-card {
    position: static;
    padding: 22px;
  }

  .contact-nav,
  .contact-nav.dew-tabs {
    position: fixed !important;
    top: auto !important;
    right: 14px !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    left: 14px !important;
    width: auto !important;
    min-height: 64px !important;
    padding: 8px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    border-radius: 999px !important;
    transform: none !important;
  }

  .contact-nav.dew-tabs .dew-tab,
  .contact-nav a {
    flex: 0 0 auto !important;
    width: 45px !important;
    min-width: 45px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    display: flex !important;
    grid-template-columns: none !important;
    justify-content: center !important;
    border-radius: 999px !important;
  }

  .contact-nav.dew-tabs .dew-tab-label {
    max-width: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
  }

  .contact-nav.dew-tabs .dew-tab.active {
    width: auto !important;
    min-width: 106px !important;
    padding: 0 14px !important;
  }

  .contact-nav.dew-tabs .dew-tab.active .dew-tab-label {
    max-width: 90px !important;
    padding-left: 7px !important;
    opacity: 1 !important;
  }
}

@media (max-width: 390px) {
  .contact-nav.dew-tabs .dew-tab,
  .contact-nav a {
    width: 42px !important;
    min-width: 42px !important;
  }

  .contact-nav.dew-tabs .dew-tab.active {
    min-width: 96px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
