@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --ct-purple: #6d5cff;
  --ct-purple-2: #8b78ff;
  --ct-orange: #ffac38;
  --ct-ink: #12152f;
  --ct-muted: #68708c;
  --ct-line: #e9eaf5;
  --ct-soft: #f6f3ff;
  --ct-white: #ffffff;
  --ct-shadow: 0 18px 46px rgba(64, 63, 120, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ct-ink);
  background:
    radial-gradient(circle at 83% 8%, rgba(109, 92, 255, 0.09), transparent 28%),
    radial-gradient(circle at 12% 28%, rgba(255, 172, 56, 0.06), transparent 24%),
    linear-gradient(180deg, #fbfbff 0%, #ffffff 48%, #fbfbff 100%);
}

.contact-nav {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--ct-line);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(67, 67, 100, 0.06);
}

.contact-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ct-ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-nav a i {
  color: var(--ct-muted);
}

.contact-nav a:hover,
.contact-nav a.active {
  color: var(--ct-purple);
  background: var(--ct-soft);
  border-color: rgba(109, 92, 255, 0.14);
}

.contact-nav a:hover i,
.contact-nav a.active i {
  color: var(--ct-purple);
}

.contact-page {
  width: min(1240px, calc(100% - 36px));
  margin: 28px auto 42px;
}

.container {
  display: grid;
  gap: 28px;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: 22px;
  min-height: 250px;
  padding: clamp(24px, 4.2vw, 46px);
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(232, 232, 248, 0.92);
  background:
    radial-gradient(circle at 76% 24%, rgba(109, 92, 255, 0.15), transparent 25%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 54%, #f7f5ff 100%);
  box-shadow: var(--ct-shadow);
}

.hero-kicker,
.contact-info-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ct-purple);
  background: var(--ct-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 680px;
  margin: 16px 0 12px;
  color: var(--ct-ink);
  font-size: clamp(2.35rem, 4.5vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: inline-block;
  color: var(--ct-purple);
  background: linear-gradient(90deg, var(--ct-purple), var(--ct-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy > p {
  max-width: 520px;
  margin: 0;
  color: var(--ct-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid var(--ct-line);
  border-radius: 999px;
  color: #2d3150;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(67, 67, 100, 0.05);
}

.hero-chips i {
  color: var(--ct-purple);
}

.hero-art {
  position: relative;
  min-height: 230px;
}

.headset-shell {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ct-purple);
  font-size: 12.6rem;
  filter: drop-shadow(0 22px 28px rgba(86, 75, 214, 0.19));
}

.chat-bubble {
  position: absolute;
  top: 88px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 24px 30px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(145deg, #ffbd4b, #ff8c2b);
  box-shadow: 0 20px 30px rgba(255, 139, 42, 0.22);
  transform: translateX(-50%);
}

.chat-bubble::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -10px;
  border-top: 16px solid #ff982f;
  border-left: 15px solid transparent;
}

.chat-bubble span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.art-mail,
.art-user,
.art-shield {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #7b68ff, #a091ff);
  box-shadow: 0 18px 30px rgba(86, 75, 214, 0.18);
}

.art-mail {
  top: 38px;
  left: 12%;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 1.45rem;
  transform: rotate(14deg);
}

.art-user {
  top: 86px;
  right: 10%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.25rem;
}

.art-shield {
  right: 16%;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 1.35rem;
  transform: rotate(-13deg);
}

.art-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(109, 92, 255, 0.32);
}

.dot-one {
  top: 28px;
  right: 24%;
}

.dot-two {
  right: 4%;
  top: 18px;
}

.contact-container {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: start;
}

.support-panel,
.contact-form {
  border: 1px solid var(--ct-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ct-shadow);
}

.support-panel {
  display: grid;
  gap: 20px;
  padding: clamp(18px, 2.4vw, 28px);
}

.contact-info-header h2,
.contact-form h2 {
  margin: 12px 0 8px;
  color: var(--ct-ink);
  font-size: clamp(1.15rem, 1.2vw + 0.9rem, 1.55rem);
  line-height: 1.18;
}

.contact-info-header p,
.contact-form-intro {
  margin: 0;
  color: var(--ct-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.support-steps {
  display: grid;
  gap: 14px;
}

.support-steps article,
.reach-grid article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--ct-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(64, 63, 120, 0.05);
}

.step-icon,
.reach-grid span {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  font-size: 1.05rem;
}

.step-icon.purple {
  color: #715cff;
  background: #f0ebff;
}

.step-icon.amber {
  color: #f59b18;
  background: #fff3dc;
}

.step-icon.green {
  color: #2fb874;
  background: #e9f9f1;
}

.support-steps h3,
.reach-panel h3,
.social-media h3 {
  margin: 0;
  color: #22263e;
  font-size: 0.94rem;
}

.support-steps p,
.reach-grid p {
  margin: 4px 0 0;
  color: var(--ct-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.reach-panel {
  display: grid;
  gap: 12px;
}

.reach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reach-grid article {
  padding: 14px;
}

.reach-grid span {
  width: 36px;
  height: 36px;
  color: var(--ct-purple);
  background: var(--ct-soft);
}

.reach-grid strong {
  display: block;
  color: #22263e;
  font-size: 0.82rem;
}

.social-media {
  display: grid;
  gap: 10px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--ct-purple);
  background: var(--ct-soft);
  text-decoration: none;
}

.contact-form {
  padding: clamp(18px, 2.6vw, 30px);
}

.contact-form h2 {
  margin-top: 0;
}

#contactForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  margin-top: 18px;
  transform-origin: 50% 70%;
  will-change: transform, opacity, filter;
}

#emailGroup,
.contact-account-chip,
.captcha-container,
.submit-btn {
  grid-column: 1 / -1;
}

#contactForm > .form-group:first-child {
  grid-column: 1 / -1;
}

.form-group {
  min-width: 0;
  margin: 0;
  position: relative;
}

.message-group {
  grid-row: span 2;
}

.hidden {
  display: none !important;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--ct-ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.required {
  color: #e05a53;
}

.form-group input,
.form-group textarea {
  width: 100%;
  min-height: 43px;
  border: 1px solid #dddff0;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--ct-ink);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 11px 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
  min-height: 114px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(109, 92, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(109, 92, 255, 0.12);
}

.form-group.focused label {
  color: var(--ct-purple);
}

.underline {
  display: none;
}

.form-support-note,
.contact-account-chip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(109, 92, 255, 0.1);
  border-radius: 8px;
  color: #5b6090;
  background: linear-gradient(135deg, #f7f4ff, #fff7ed);
  font-size: 0.84rem;
  line-height: 1.55;
}

.form-support-note i,
.contact-account-chip i {
  color: var(--ct-purple);
  margin-top: 2px;
}

.form-support-note strong {
  color: var(--ct-purple);
}

.contact-account-chip {
  margin: 0;
  color: #2f7b54;
  background: #edf9f2;
  border-color: #d9f0e2;
  font-weight: 700;
}

.contact-account-chip i {
  color: #2fb874;
}

.captcha-container {
  display: grid;
  grid-template-columns: minmax(170px, 0.48fr) minmax(0, 1fr);
  gap: 10px 14px;
  align-items: end;
}

.captcha-container label {
  grid-column: 1 / -1;
}

.captcha-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 45px;
  padding: 7px 8px 7px 13px;
  border: 1px solid #dddff0;
  border-radius: 8px;
  background: #fff;
}

.captcha-text {
  min-width: 0;
  color: var(--ct-ink);
  font-family: "Courier New", monospace;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  overflow-wrap: anywhere;
}

.refresh-captcha {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--ct-purple);
  background: var(--ct-soft);
  cursor: pointer;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--ct-purple), var(--ct-orange));
  box-shadow: 0 16px 26px rgba(109, 92, 255, 0.22);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
}

.submit-btn:hover {
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

#contactForm.fly-away-form {
  animation: contact-form-fly-away 1.15s cubic-bezier(0.42, 0, 0.2, 1) forwards;
  pointer-events: none;
}

#contactForm.return-home-form {
  animation: contact-form-return-home 0.82s cubic-bezier(0.2, 0.8, 0.24, 1) both;
}

.notification-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2500;
  display: grid;
  gap: 10px;
}

.notification {
  width: min(340px, calc(100vw - 26px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-left: 4px solid rgba(255, 255, 255, 0.48);
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 14px 24px rgba(10, 34, 50, 0.22);
  opacity: 0;
  transform: translateX(120%);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.hide {
  opacity: 0;
  transform: translateX(120%);
}

.notification.success { background: #227b4a; }
.notification.error { background: #a84639; }
.notification.warning { background: #a87719; }
.notification.info { background: #1f6f9c; }

.notification-title {
  margin-bottom: 3px;
  font-weight: 800;
}

.notification-message {
  font-size: 0.86rem;
  opacity: 0.95;
}

.notification-close {
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(16, 18, 46, 0.58);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: min(460px, 100%);
  padding: 26px;
  border: 1px solid var(--ct-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(16, 18, 46, 0.24);
  text-align: center;
}

.checkmark {
  display: block;
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  stroke: #2d8f5a;
}

.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 5;
  fill: none;
  animation: stroke 0.55s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.28s cubic-bezier(0.65, 0, 0.45, 1) 0.7s forwards;
}

.modal-content h2 {
  margin: 0 0 8px;
  color: var(--ct-ink);
}

.modal-content p {
  margin: 0 0 16px;
  color: var(--ct-muted);
  line-height: 1.6;
}

.modal-close-btn {
  min-height: 40px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--ct-purple), var(--ct-orange));
  font-weight: 800;
  cursor: pointer;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes stroke {
  to { stroke-dashoffset: 0; }
}

@keyframes contact-form-fly-away {
  0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0deg); filter: blur(0); }
  32% { opacity: 1; transform: translate3d(0, -18px, 0) scale(0.98) rotate(-1deg); filter: blur(0); }
  72% { opacity: 0.72; transform: translate3d(26px, -130px, 0) scale(0.74) rotate(5deg); filter: blur(0.5px); }
  100% { opacity: 0; transform: translate3d(140px, -260px, 0) scale(0.44) rotate(10deg); filter: blur(2px); }
}

@keyframes contact-form-return-home {
  0% { opacity: 0; transform: translate3d(140px, -260px, 0) scale(0.44) rotate(10deg); filter: blur(2px); }
  45% { opacity: 1; transform: translate3d(-10px, 14px, 0) scale(1.02) rotate(-1deg); filter: blur(0); }
  70% { transform: translate3d(4px, -5px, 0) scale(0.995) rotate(0.25deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0deg); filter: blur(0); }
}

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

  .hero-art {
    min-height: 210px;
    order: -1;
  }

  .headset-shell {
    font-size: 10.5rem;
  }

  .chat-bubble {
    top: 76px;
  }
}

@media (max-width: 680px) {
  .contact-page {
    width: calc(100% - 18px);
    margin: 14px auto 30px;
  }

  .contact-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-inline: 10px;
  }

  .contact-nav a {
    flex: 0 0 auto;
    font-size: 0.82rem;
  }

  .container {
    gap: 16px;
  }

  .contact-hero {
    min-height: 0;
    padding: 20px 14px;
  }

  .hero-art {
    min-height: 0;
    display: none;
  }

  .hero-copy h1 {
    margin-top: 12px;
    font-size: 1.86rem;
    line-height: 1.08;
  }

  .hero-copy > p {
    font-size: 0.88rem;
  }

  .hero-chips {
    gap: 8px;
    margin-top: 16px;
  }

  .hero-chips span {
    width: 100%;
    justify-content: flex-start;
    font-size: 0.76rem;
  }

  .support-panel,
  .contact-form {
    padding: 14px;
  }

  .support-steps article,
  .reach-grid article {
    padding: 13px;
  }

  .reach-grid,
  #contactForm,
  .captcha-container {
    grid-template-columns: 1fr;
  }

  .message-group {
    grid-row: auto;
  }

  .captcha-container label {
    grid-column: auto;
  }

  .form-support-note {
    display: block;
  }

  .form-support-note i {
    margin-right: 6px;
  }

  .notification-container {
    top: 10px;
    right: 8px;
    left: 8px;
  }

  .notification {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .hero-copy h1 {
    font-size: 1.65rem;
  }

  .support-steps article {
    align-items: flex-start;
  }
}

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