:root {
  --ink: #061a3a;
  --blue: #047fc1;
  --blue-2: #0b99e2;
  --whatsapp: #25d366;
  --whatsapp-2: #128c7e;
  --paper: #ffffff;
  --soft: #f3f8fd;
  --line: #d7e2ee;
  --muted: #2d4260;
  --danger: #c93434;
  --shadow: 0 22px 60px rgba(6, 26, 58, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(4, 127, 193, 0.12), transparent 32%),
    linear-gradient(180deg, #eef5fb 0%, #fbfdff 48%, #eaf3fb 100%);
}

.cm-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(215, 226, 238, 0.8);
  backdrop-filter: blur(14px);
}

.cm-brand,
.cm-link,
.cm-anchor {
  color: inherit;
  text-decoration: none;
}

.cm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.cm-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.cm-link {
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 13px;
  font-weight: 500;
}

.cm-shell {
  width: min(100%, 980px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 112px 18px 42px;
  display: grid;
  place-items: center;
}

.cm-intro,
.cm-form,
.cm-success {
  width: min(100%, 820px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 44px);
}

.cm-eyebrow,
.cm-progress-head,
.cm-field-hint,
.cm-counter {
  font-family: "DM Mono", monospace;
}

.cm-eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(36px, 7vw, 70px);
}

h2 {
  font-size: clamp(30px, 5vw, 48px);
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.cm-primary,
.cm-secondary {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.cm-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(4, 127, 193, 0.2);
}

.cm-secondary {
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
}

.cm-primary:disabled,
.cm-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cm-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.cm-progress {
  height: 8px;
  overflow: hidden;
  background: var(--soft);
  border-radius: 999px;
}

.cm-progress div {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  border-radius: inherit;
  transition: width 0.2s ease;
}

.cm-slide {
  min-height: 360px;
  padding: 34px 0 18px;
}

.cm-question {
  margin-bottom: 18px;
}

.cm-question h2 {
  font-size: clamp(25px, 4vw, 42px);
}

.cm-fields {
  display: grid;
  gap: 34px;
}

.cm-field {
  display: grid;
  gap: 12px;
  padding-bottom: 4px;
}

.cm-field-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.cm-field-top label {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.cm-field-top span {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  line-height: 1.7;
  text-transform: uppercase;
}

.cm-field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.cm-input,
.cm-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: 500 16px/1.5 "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  outline: none;
}

.cm-input {
  min-height: 56px;
  padding: 0 16px;
}

.cm-textarea {
  min-height: 150px;
  padding: 16px;
  resize: vertical;
}

.cm-input:focus,
.cm-textarea:focus,
.cm-choice:has(input:focus-visible) {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(4, 127, 193, 0.1);
}

.cm-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cm-choice {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.cm-choice input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  accent-color: var(--blue);
}

.cm-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cm-other {
  margin-top: 4px;
}

.cm-counter {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.cm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.cm-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cm-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-2));
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(37, 211, 102, 0.22);
}

.cm-error {
  min-height: 24px;
  margin: 0 0 12px;
  color: var(--danger);
  font-size: 14px;
}

.hidden {
  display: none !important;
}

@media (max-width: 620px) {
  .cm-topbar {
    height: 66px;
  }

  .cm-brand span {
    max-width: 170px;
    line-height: 1.1;
  }

  .cm-link {
    display: none;
  }

  .cm-shell {
    padding-top: 92px;
  }

  .cm-slide {
    min-height: 420px;
  }

  .cm-field-top {
    display: grid;
    gap: 4px;
  }

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

  .cm-actions {
    flex-direction: column-reverse;
  }

  .cm-primary,
  .cm-secondary,
  .cm-whatsapp {
    width: 100%;
  }
}
