.cm-crm-contact {
  --cm-blue-900: #153d5b;
  --cm-blue-800: #1b527a;
  --cm-blue-700: #0964a8;
  --cm-blue-100: #eaf5fb;
  --cm-cyan-500: #12a9d6;
  --cm-ink: #20313d;
  --cm-muted: #60727d;
  --cm-line: #d8e4eb;
  --cm-mist: #f6fafc;
  --cm-white: #ffffff;
  --cm-success: #1d6c46;
  --cm-success-bg: #eaf8f0;
  --cm-error: #992f35;
  --cm-error-bg: #fff0f1;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.8fr);
  width: min(100%, 980px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--cm-line);
  border-radius: 18px;
  background: var(--cm-white);
  box-shadow: 0 24px 64px rgba(21, 61, 91, 0.12);
  color: var(--cm-ink);
  font: inherit;
}

.cm-crm-contact *,
.cm-crm-contact *::before,
.cm-crm-contact *::after {
  box-sizing: border-box;
}

.cm-crm-contact__main {
  container-name: cm-contact-form;
  container-type: inline-size;
  min-width: 0;
  padding: clamp(28px, 5vw, 52px);
}

.cm-crm-contact--form-only {
  display: block;
  width: 100%;
  max-width: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cm-crm-contact--form-only .cm-crm-contact__main {
  padding: 0;
}

.cm-crm-contact__header {
  max-width: 690px;
  margin-bottom: 30px;
}

.cm-crm-contact__eyebrow,
.cm-crm-contact__guide-label {
  margin: 0 0 9px;
  color: var(--cm-blue-700);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cm-crm-contact__title {
  margin: 0;
  color: var(--cm-blue-900);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.cm-crm-contact__intro {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--cm-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.cm-crm-contact__form {
  margin: 0;
}

.cm-crm-contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
}

.cm-crm-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.cm-crm-field--wide {
  grid-column: 1 / -1;
}

.cm-crm-field label {
  margin: 0;
  color: var(--cm-ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.cm-crm-field label span[aria-hidden="true"] {
  color: var(--cm-blue-700);
}

.cm-crm-field__optional {
  color: var(--cm-muted);
  font-weight: 500;
}

.cm-crm-field input,
.cm-crm-field select,
.cm-crm-field textarea {
  width: 100%;
  min-height: 48px;
  margin: 0;
  border: 1px solid var(--cm-line);
  border-radius: 9px;
  outline: none;
  background: var(--cm-mist);
  color: var(--cm-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  padding: 11px 13px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.cm-crm-field textarea {
  min-height: 126px;
  resize: vertical;
}

.cm-crm-field input::placeholder,
.cm-crm-field textarea::placeholder {
  color: #7a8a94;
  opacity: 1;
}

.cm-crm-field input:hover,
.cm-crm-field select:hover,
.cm-crm-field textarea:hover {
  border-color: #a9c2d1;
}

.cm-crm-field input:focus,
.cm-crm-field select:focus,
.cm-crm-field textarea:focus {
  border-color: var(--cm-blue-700);
  background: var(--cm-white);
  box-shadow: 0 0 0 4px rgba(9, 100, 168, 0.13);
}

.cm-crm-field input:invalid:not(:placeholder-shown),
.cm-crm-field textarea:invalid:not(:placeholder-shown) {
  border-color: #c45e63;
}

.cm-crm-field small {
  color: var(--cm-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.cm-crm-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.cm-crm-contact__status {
  display: none;
  margin-top: 22px;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.5;
}

.cm-crm-contact__status--success,
.cm-crm-contact__status--error {
  display: block;
}

.cm-crm-contact__status--success {
  background: var(--cm-success-bg);
  color: var(--cm-success);
}

.cm-crm-contact__status--error {
  background: var(--cm-error-bg);
  color: var(--cm-error);
}

.cm-crm-contact__actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px 20px;
  margin-top: 24px;
}

.cm-crm-contact button.cm-crm-contact__submit {
  appearance: none;
  min-height: 50px;
  margin: 0;
  border: 0 !important;
  border-radius: 9px;
  background: var(--cm-blue-700) !important;
  box-shadow: 0 10px 24px rgba(9, 100, 168, 0.22);
  color: var(--cm-white) !important;
  cursor: pointer;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 14px 22px;
  text-decoration: none;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.cm-crm-contact button.cm-crm-contact__submit:hover {
  background: var(--cm-blue-800) !important;
  color: var(--cm-white) !important;
  box-shadow: 0 13px 28px rgba(21, 61, 91, 0.26);
  transform: translateY(-1px);
}

.cm-crm-contact button.cm-crm-contact__submit:focus-visible {
  outline: 3px solid rgba(18, 169, 214, 0.45);
  outline-offset: 3px;
}

.cm-crm-contact button.cm-crm-contact__submit:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.cm-crm-contact__privacy {
  margin: 0;
  color: var(--cm-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.cm-crm-contact__privacy a {
  color: var(--cm-blue-700);
  font-weight: 700;
  text-underline-offset: 2px;
}

.cm-crm-contact__guide {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(18, 169, 214, 0.24), transparent 34%),
    linear-gradient(155deg, var(--cm-blue-900) 0%, #174966 100%);
  color: var(--cm-white);
  padding: clamp(30px, 4vw, 48px) clamp(24px, 3.5vw, 38px);
}

.cm-crm-contact__guide::after {
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(255, 255, 255, 0.035),
    0 0 0 52px rgba(255, 255, 255, 0.025);
  content: "";
  pointer-events: none;
}

.cm-crm-contact__guide-label {
  position: relative;
  z-index: 1;
  color: #8bdcf0;
}

.cm-crm-contact__steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  margin: 28px 0 36px;
  padding: 0;
  list-style: none;
}

.cm-crm-contact__steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
}

.cm-crm-contact__step-number {
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #9de4f4;
  font-size: 0.76rem;
  font-weight: 800;
  place-items: center;
}

.cm-crm-contact__steps strong {
  display: block;
  color: var(--cm-white);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.4;
}

.cm-crm-contact__steps p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  line-height: 1.55;
}

.cm-crm-contact__call {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 23px;
}

.cm-crm-contact__call span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

.cm-crm-contact__call a {
  color: var(--cm-white);
  font-size: 1.18rem;
  font-weight: 800;
  text-decoration-color: #8bdcf0;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 820px) {
  .cm-crm-contact {
    grid-template-columns: 1fr;
  }

  .cm-crm-contact__guide {
    padding-block: 30px;
  }

  .cm-crm-contact__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-block: 24px 28px;
  }

  .cm-crm-contact__steps li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .cm-crm-contact {
    border-radius: 14px;
  }

  .cm-crm-contact__main {
    padding: 28px 20px;
  }

  .cm-crm-contact__grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .cm-crm-field--wide {
    grid-column: auto;
  }

  .cm-crm-contact__actions {
    grid-template-columns: 1fr;
  }

  .cm-crm-contact button.cm-crm-contact__submit {
    width: 100%;
  }

  .cm-crm-contact__steps {
    grid-template-columns: 1fr;
  }

  .cm-crm-contact__steps li {
    grid-template-columns: 32px minmax(0, 1fr);
  }
}

@container cm-contact-form (max-width: 520px) {
  .cm-crm-contact__grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .cm-crm-field--wide {
    grid-column: auto;
  }

  .cm-crm-contact__actions {
    grid-template-columns: 1fr;
  }

  .cm-crm-contact button.cm-crm-contact__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cm-crm-contact *,
  .cm-crm-contact *::before,
  .cm-crm-contact *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
