/* DR CRM Lead Modal — shortcode */
.drcrm-lead-root { font-size: 16px; }
.drcrm-btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px; border: none; border-radius: 12px;
  font-size: 0.875rem; font-weight: var(--drcrm-cta-fw, 600); line-height: 1.2;
  color: var(--drcrm-cta-fg, #0d1333); background: var(--drcrm-cta-bg, #fff); cursor: pointer;
  font-family: "Instrument Sans", system-ui, sans-serif;
  transition: filter 0.2s;
}
.drcrm-btn-cta:hover { filter: brightness(0.94); }
.drcrm-btn-primary {
  display: block; width: 100%; padding: 12px 16px; border: none; border-radius: 12px;
  font-size: 0.875rem; font-weight: 600; color: #fff; background: #2563eb; cursor: pointer;
  text-align: center; text-decoration: none; font-family: inherit; transition: background 0.2s;
}
.drcrm-btn-primary:hover { background: #1d4ed8; }
.drcrm-btn-secondary {
  display: block; width: 100%; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 12px;
  font-size: 0.875rem; font-weight: 600; color: #0d1333; background: #f8fafc; cursor: pointer;
  text-align: center; font-family: inherit; transition: background 0.2s, border-color 0.2s;
}
.drcrm-btn-secondary:hover { background: #e2e8f0; border-color: #94a3b8; }
.drcrm-phone-confirm {
  margin-top: 0.75rem; padding: 1rem; border: 1px solid #e2e8f0; border-radius: 12px;
  background: #f8fafc; text-align: left;
}
.drcrm-phone-confirm__title { margin: 0 0 0.5rem; font-size: 0.9375rem; font-weight: 600; color: #0d1333; }
.drcrm-phone-confirm__text { margin: 0 0 0.9rem; font-size: 0.875rem; line-height: 1.4; color: #475569; }
.drcrm-phone-confirm__row { display: flex; flex-direction: column; gap: 0.5rem; }
@media (min-width: 22rem) { .drcrm-phone-confirm__row { flex-direction: row-reverse; } }
.drcrm-phone-confirm__row .drcrm-btn-primary, .drcrm-phone-confirm__row .drcrm-btn-secondary { width: auto; flex: 1; }
.drcrm-landing-err { margin-top: 0.75rem; padding: 0.75rem 0.9rem; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; }
.drcrm-landing-err__text { margin: 0; font-size: 0.875rem; line-height: 1.4; color: #b91c1c; }
.drcrm-form-lead { display: flex; flex-direction: column; }
.drcrm-form-lead__submit { margin-top: 0.25rem; }
.drcrm-form-lead__submit.is-drcrm-loading { opacity: 0.7; pointer-events: none; cursor: wait; }
[hidden] { display: none !important; }
.drcrm-lead-modal .drcrm-overlay {
  position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(13, 19, 51, 0.75); backdrop-filter: blur(4px);
}
.drcrm-lead-modal .drcrm-card {
  width: 100%; max-width: min(100% - 1.5rem, 26rem); max-height: min(90vh, 36rem); overflow: auto;
  background: #fff; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45); color: #0d1333;
  font-family: "Instrument Sans", system-ui, sans-serif;
}
.drcrm-lead-modal .drcrm-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.25rem 0; }
.drcrm-lead-modal .drcrm-card__head h2 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.drcrm-lead-modal .drcrm-card__close {
  flex-shrink: 0; width: 36px; height: 36px; border: none; border-radius: 10px; background: #f1f5f9; color: #0d1333; font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.drcrm-lead-modal .drcrm-card__close:hover { background: #e2e8f0; }
.drcrm-lead-modal .drcrm-card__body { padding: 0.75rem 1.25rem 1.5rem; }
.drcrm-f { margin-bottom: 1rem; }
.drcrm-f label { display: block; font-size: 0.8125rem; font-weight: 500; color: #334155; margin-bottom: 0.35rem; }
.drcrm-f input, .drcrm-wa__num input {
  width: 100%; min-height: 2.75rem; padding: 0.5rem 0.75rem; font-size: 0.9375rem; border: 1px solid #cbd5e1; border-radius: 10px; color: #0d1333; font-family: inherit; box-sizing: border-box;
}
.drcrm-f input::placeholder, .drcrm-wa__num input::placeholder { color: #94a3b8; }
.drcrm-f input:focus, .drcrm-wa__num input:focus { outline: 2px solid #0d1333; outline-offset: 0; border-color: #0d1333; }
.drcrm-f.is-invalid input, .drcrm-f.is-invalid .drcrm-ddi, .drcrm-wa__num.is-invalid input { border-color: #b91c1c; }
.drcrm-f__err { display: none; font-size: 0.75rem; color: #b91c1c; margin-top: 0.25rem; }
.drcrm-f.is-invalid .drcrm-f__err, .drcrm-wa__num.is-invalid .drcrm-f__err { display: block; }
.drcrm-wa { display: flex; flex-direction: column; gap: 0.35rem; }
.drcrm-wa__head { font-size: 0.8125rem; font-weight: 500; color: #334155; }
.drcrm-wa__row { display: grid; grid-template-columns: var(--wa-ddi-w, 4.5rem) minmax(0, 1fr); gap: 0.5rem 0.625rem; align-items: start; }
@media (min-width: 24rem) { .drcrm-wa__row { --wa-ddi-w: 4.75rem; } }
@media (max-width: 17.5rem) { .drcrm-wa__row { grid-template-columns: 1fr; --wa-ddi-w: 100%; } }
.drcrm-wa__ddi { min-width: 0; }
.drcrm-wa__ddi-inner { position: relative; }
.drcrm-wa__ddi-inner::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-25%);
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #64748b; pointer-events: none;
}
.drcrm-ddi {
  -webkit-appearance: none; appearance: none; width: 100%; min-height: 2.75rem; margin: 0; padding: 0.4rem 1.25rem 0.4rem 0.4rem;
  font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; text-align: center; color: #0d1333; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 10px; cursor: pointer; font-family: inherit; box-sizing: border-box;
}
.drcrm-ddi:hover { border-color: #94a3b8; }
.drcrm-ddi:focus { outline: 2px solid #0d1333; outline-offset: 0; border-color: #0d1333; background: #fff; }
.drcrm-wa__num { min-width: 0; }
.drcrm-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.drcrm-success { text-align: center; }
.drcrm-success p { margin: 0 0 0.75rem; font-size: 0.9375rem; color: #334155; }
.drcrm-summary { font-size: 0.8125rem; color: #64748b; word-break: break-all; margin-bottom: 0.75rem; }

/* Fluxo magic link: loading com passos */
.drcrm-landing-wait {
  padding: 0.5rem 0.25rem 0.5rem; text-align: left;
}
.drcrm-landing-wait__visual { display: flex; justify-content: center; margin-bottom: 0.9rem; }
.drcrm-landing-wait__ring {
  width: 2.5rem; height: 2.5rem; border: 2px solid #e2e8f0; border-top-color: #2563eb;
  border-radius: 50%;
  animation: drcrm-spin 0.85s linear infinite;
}
@keyframes drcrm-spin { to { transform: rotate(360deg); } }
.drcrm-landing-wait__title {
  margin: 0 0 0.4rem; font-size: 1.0625rem; font-weight: 600; color: #0d1333; text-align: center;
  transition: color 0.25s ease;
}
.drcrm-landing-wait__sub {
  margin: 0 0 1rem; font-size: 0.75rem; line-height: 1.4; color: #64748b; text-align: center;
}
.drcrm-landing-wait__list {
  margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.55rem;
}
.drcrm-landing-wait__step {
  display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8125rem; line-height: 1.35; color: #94a3b8;
  transition: color 0.35s ease, transform 0.35s ease; transform: translateX(0);
}
.drcrm-landing-wait__mark {
  flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin-top: 0.1rem; border-radius: 50%;
  border: 2px solid #e2e8f0; background: #f8fafc; transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  position: relative;
}
.drcrm-landing-wait__text { flex: 1; }
.drcrm-landing-wait__step.is-drcrm-current { color: #0d1333; }
.drcrm-landing-wait__step.is-drcrm-current .drcrm-landing-wait__mark {
  border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
  animation: drcrm-pulse-mark 1.1s ease-in-out infinite;
}
.drcrm-landing-wait__step--last.is-drcrm-current .drcrm-landing-wait__text { font-weight: 500; }
@keyframes drcrm-pulse-mark { 0%, 100% { box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12); } 50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18); } }
.drcrm-landing-wait__step.is-drcrm-done { color: #334155; }
.drcrm-landing-wait__step.is-drcrm-done .drcrm-landing-wait__mark {
  border-color: #10b981; background: #ecfdf5; animation: none; box-shadow: none;
}
.drcrm-landing-wait__step.is-drcrm-done .drcrm-landing-wait__mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 7px; border: solid #059669; border-width: 0 2px 2px 0;
  margin: -4px 0 0 -2px; transform: rotate(40deg) translate(-0.5px, -0.5px);
}
.drcrm-landing-wait__step.is-drcrm-finish .drcrm-landing-wait__text { color: #059669; }
@media (prefers-reduced-motion: reduce) {
  .drcrm-landing-wait__ring { animation: none; }
  .drcrm-landing-wait__step, .drcrm-landing-wait__mark { transition: none; }
  .drcrm-landing-wait__step.is-drcrm-current .drcrm-landing-wait__mark { animation: none; }
}
