@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  font-family: "DM Sans", sans-serif;
  color: #202b45;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  --accent: #6259e8;
  --muted: #788198;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(116, 105, 242, 0.1), transparent 34rem),
    radial-gradient(ellipse at 95% 95%, rgba(92, 176, 214, 0.1), transparent 30rem),
    #f5f7fb;
}

button,
input,
textarea {
  font: inherit;
}

.contact-page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 28px;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  overflow: hidden;
  min-height: 650px;
  border: 1px solid rgba(226, 230, 240, 0.8);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(37, 49, 83, 0.09);
}

.contact-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 74px 54px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.18), transparent 15rem),
    linear-gradient(145deg, #655de8 0%, #5148c7 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 27px;
  color: #e4e2ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9f1d0;
  content: "";
}

h1 {
  max-width: 390px;
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(2.35rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.contact-intro > p {
  max-width: 390px;
  margin: 22px 0 0;
  color: #e1e0ff;
  font-size: 1rem;
  line-height: 1.8;
}

.contact-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 54px;
}

.note-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 13px;
  color: #fff;
  font-size: 1.2rem;
}

.contact-note div {
  display: grid;
  gap: 4px;
}

.note-label {
  color: #d7d5ff;
  font-size: 0.8rem;
}

.contact-note a {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(32px, 6vw, 76px);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}

.field label {
  color: #303a52;
  font-size: 0.88rem;
  font-weight: 700;
}

.optional {
  color: #9aa2b3;
  font-size: 0.78rem;
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #e4e7ef;
  border-radius: 10px;
  outline: none;
  background: #fbfcfe;
  color: #202b45;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input {
  height: 49px;
  padding: 0 14px;
}

.field textarea {
  min-height: 130px;
  padding: 13px 14px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a5adbd;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(98, 89, 232, 0.12);
}

.field-hint {
  margin-top: -3px;
  color: #9099ab;
  font-size: 0.76rem;
}

.contact-form button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.contact-form button:hover {
  transform: translateY(-1px);
  background: #5148d3;
}

.contact-form button:focus-visible {
  outline: 3px solid rgba(98, 89, 232, 0.3);
  outline-offset: 3px;
}

.button-arrow {
  font-size: 1.2rem;
  transition: transform 160ms ease;
}

.contact-form button:hover .button-arrow {
  transform: translateX(3px);
}

.form-status {
  min-height: 1.25em;
  margin: 12px 0 0;
  color: #287c54;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}

.form-status:empty {
  margin-top: 0;
}

.form-disclaimer {
  margin: 8px 0 0;
  color: #8992a4;
  font-size: 0.74rem;
  line-height: 1.55;
  text-align: center;
}

footer {
  padding-top: 21px;
  color: #929bad;
  font-size: 0.8rem;
  text-align: center;
}

footer span {
  padding-left: 4px;
  color: var(--accent);
}

@media (max-width: 760px) {
  .contact-page {
    width: min(560px, calc(100% - 32px));
    padding-top: 28px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .contact-intro {
    min-height: 330px;
    padding: 42px 34px;
  }

  .contact-note {
    padding-top: 32px;
  }

  .contact-form {
    padding: 40px 34px;
  }
}

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-intro,
  .contact-form {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
