:root {
  --ark-select-lead-orange: #f6a313;
  --ark-select-lead-orange-strong: #ff8a00;
  --ark-select-lead-bg: #03070d;
  --ark-select-lead-panel: #070b12;
  --ark-select-lead-field: #11161f;
  --ark-select-lead-line: rgba(154, 171, 201, 0.18);
  --ark-select-lead-copy: #f7f8fb;
  --ark-select-lead-muted: #9ba5b7;
  --ark-select-lead-error: #ff8b76;
}

html.ark-select-lead-locked,
body.ark-select-lead-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.ark-select-lead-drawer {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 520px);
  visibility: hidden;
  pointer-events: none;
}

.ark-select-lead-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.ark-select-lead-backdrop {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: rgba(0, 3, 8, 0.18);
  opacity: 0;
  cursor: default;
  backdrop-filter: blur(0);
  transition: opacity 0.35s ease, backdrop-filter 0.35s ease, background-color 0.35s ease;
}

.ark-select-lead-drawer.is-open .ark-select-lead-backdrop {
  opacity: 1;
  background: rgba(0, 3, 8, 0.74);
  backdrop-filter: blur(7px);
}

.ark-select-lead-panel {
  min-width: 0;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: var(--ark-select-lead-copy);
  background:
    radial-gradient(circle at 100% 0%, rgba(246, 163, 19, 0.055), transparent 30%),
    linear-gradient(180deg, #080c13 0%, #03070d 100%);
  border-left: 1px solid rgba(246, 163, 19, 0.22);
  box-shadow: -34px 0 90px rgba(0, 0, 0, 0.55);
  transform: translateX(105%);
  transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.ark-select-lead-drawer.is-open .ark-select-lead-panel {
  transform: translateX(0);
}

.ark-select-lead-header {
  position: relative;
  z-index: 2;
  padding: 28px 30px 22px;
  border-bottom: 1px solid var(--ark-select-lead-line);
  background: rgba(7, 11, 18, 0.97);
}

.ark-select-lead-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
}

.ark-select-lead-brand {
  margin-bottom: 15px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ark-select-lead-brand span {
  color: var(--ark-select-lead-orange);
  font-style: italic;
}

.ark-select-lead-header h2 {
  max-width: 410px;
  margin: 0;
  color: #fff !important;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.ark-select-lead-header p {
  max-width: 430px;
  margin: 13px 0 0;
  color: var(--ark-select-lead-muted) !important;
  font-size: 14px;
  line-height: 1.55;
}

.ark-select-lead-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(159, 176, 207, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: #eef2f9;
  font: 300 28px/1 Arial, sans-serif;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.ark-select-lead-close:hover,
.ark-select-lead-close:focus-visible {
  border-color: rgba(246, 163, 19, 0.68);
  background: rgba(246, 163, 19, 0.08);
  transform: rotate(4deg);
}

.ark-select-lead-close:disabled {
  opacity: 0.42;
  cursor: wait;
}

.ark-select-lead-progress {
  margin-top: 23px;
}

.ark-select-lead-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  font-size: 12px;
}

.ark-select-lead-progress-meta strong {
  color: #eef2f8;
  font-weight: 700;
}

.ark-select-lead-progress-meta span {
  color: #a4adbd;
}

.ark-select-lead-progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.085);
}

.ark-select-lead-progress-track i {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd21a, var(--ark-select-lead-orange-strong));
  box-shadow: 0 0 14px rgba(246, 163, 19, 0.4);
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.ark-select-lead-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 30px 36px;
  scrollbar-width: thin;
  scrollbar-color: rgba(246, 163, 19, 0.38) transparent;
}

.ark-select-lead-live {
  min-height: 20px;
  margin-bottom: 5px;
  color: #bac3d2;
  font-size: 13px;
  line-height: 1.45;
}

.ark-select-lead-live:empty {
  min-height: 0;
  margin-bottom: 0;
}

.ark-select-lead-live.is-error {
  margin-bottom: 17px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 139, 118, 0.28);
  border-radius: 10px;
  color: #ffd1c8;
  background: rgba(122, 35, 23, 0.18);
}

.ark-select-lead-live.is-success {
  color: #d5e9d0;
}

.ark-select-lead-screen[hidden],
.ark-select-footer-actions[hidden] {
  display: none !important;
}

.ark-select-lead-form {
  display: grid;
  gap: 21px;
}

.ark-select-field,
.ark-select-phone-fieldset,
.ark-select-choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ark-select-field > label,
.ark-select-phone-fieldset > legend,
.ark-select-choice-group > legend {
  display: block;
  margin-bottom: 9px;
  color: #e7ebf3;
  font-size: 13px;
  font-weight: 700;
}

.ark-select-field input,
.ark-select-country-label select,
.ark-select-number-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(157, 174, 203, 0.22);
  border-radius: 10px;
  background: var(--ark-select-lead-field);
  color: #f4f6fa;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ark-select-field > input,
.ark-select-country-label select {
  padding: 13px 14px;
}

.ark-select-field input::placeholder,
.ark-select-number-input input::placeholder {
  color: #6d7788;
}

.ark-select-field input:focus,
.ark-select-country-label select:focus,
.ark-select-number-input:focus-within {
  border-color: rgba(246, 163, 19, 0.78);
  box-shadow: 0 0 0 3px rgba(246, 163, 19, 0.1);
  background: #131922;
}

.ark-select-field input[aria-invalid="true"],
.ark-select-number-input:has(input[aria-invalid="true"]),
.ark-select-consent input[aria-invalid="true"] + span {
  border-color: rgba(255, 139, 118, 0.76);
}

.ark-select-phone-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.92fr) minmax(210px, 1.08fr);
  gap: 10px;
}

.ark-select-country-label,
.ark-select-number-label {
  display: grid;
  gap: 7px;
}

.ark-select-country-label > span,
.ark-select-number-label > span:first-child {
  color: #8994a6;
  font-size: 11px;
  font-weight: 600;
}

.ark-select-country-label select {
  appearance: auto;
  font-size: 13px;
}

.ark-select-number-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
}

.ark-select-number-input b {
  padding-left: 13px;
  color: var(--ark-select-lead-orange);
  font-size: 13px;
  font-weight: 700;
}

.ark-select-number-input input {
  min-width: 0;
  height: 48px;
  padding: 12px 13px 12px 9px;
  border: 0;
  background: transparent;
  color: #f4f6fa;
  font: inherit;
  outline: none;
}

.ark-select-field-error {
  min-height: 17px;
  margin: 6px 0 0;
  color: var(--ark-select-lead-error) !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}

.ark-select-consent {
  padding: 15px;
  border: 1px solid rgba(157, 174, 203, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.022);
}

.ark-select-consent > label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #cbd2de;
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
}

.ark-select-consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--ark-select-lead-orange);
}

.ark-select-consent a {
  display: inline-block;
  margin: 9px 0 0 27px;
  color: #f0b54d;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.ark-select-choice-group {
  display: grid;
  gap: 9px;
}

.ark-select-choice-group + .ark-select-choice-group {
  padding-top: 5px;
}

.ark-select-choice-group legend {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.4;
}

.ark-select-choice-group label {
  position: relative;
  display: block;
  cursor: pointer;
}

.ark-select-choice-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ark-select-choice-group label span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 13px 11px 42px;
  border: 1px solid rgba(157, 174, 203, 0.18);
  border-radius: 9px;
  background: var(--ark-select-lead-field);
  color: #dfe4ed;
  font-size: 13px;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ark-select-choice-group label span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 1px solid #778295;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 4px var(--ark-select-lead-field);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ark-select-choice-group input:checked + span {
  border-color: rgba(246, 163, 19, 0.72);
  color: #fff;
  background: rgba(246, 163, 19, 0.075);
}

.ark-select-choice-group input:checked + span::before {
  border-color: var(--ark-select-lead-orange);
  background: var(--ark-select-lead-orange);
}

.ark-select-choice-group input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(246, 163, 19, 0.12);
}

.ark-select-final-screen {
  padding: 34px 4px 10px;
  text-align: center;
}

.ark-select-success-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 22px;
  border: 1px solid rgba(246, 163, 19, 0.52);
  border-radius: 50%;
  color: #151009;
  background: linear-gradient(135deg, #ffd31c, #ff8b00);
  box-shadow: 0 18px 44px rgba(246, 163, 19, 0.2);
  font-size: 29px;
  font-weight: 800;
}

.ark-select-final-screen h3 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.ark-select-final-screen p {
  margin: 13px 0 0;
  color: #cbd2df !important;
  font-size: 16px;
}

.ark-select-final-screen small {
  display: block;
  max-width: 380px;
  margin: 16px auto 0;
  color: #7f8a9c;
  font-size: 12px;
  line-height: 1.6;
}

.ark-select-calendly-screen {
  min-height: 700px;
}

.ark-select-calendly-container {
  width: 100%;
  min-height: 700px;
  background: #fff;
}

.ark-select-lead-footer {
  position: relative;
  z-index: 2;
  padding: 17px 30px max(17px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--ark-select-lead-line);
  background: rgba(7, 11, 18, 0.98);
}

.ark-select-footer-actions {
  display: flex;
  gap: 11px;
}

.ark-select-footer-actions-split > * {
  flex: 1;
}

.ark-select-footer-actions-stack {
  flex-direction: column;
}

.ark-select-btn {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 10px;
  font: 700 13px/1.2 Manrope, sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.ark-select-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.ark-select-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.ark-select-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.ark-select-btn-primary {
  width: 100%;
  border: 1px solid #ffb120;
  color: #171109;
  background: linear-gradient(135deg, #ffd21b, #ff8b00);
  box-shadow: 0 14px 32px rgba(246, 163, 19, 0.18), inset 0 1px rgba(255, 255, 255, 0.45);
}

.ark-select-btn-secondary {
  border: 1px solid rgba(164, 181, 209, 0.3);
  color: #edf1f8;
  background: #101620;
}

.ark-select-btn-secondary:hover:not(:disabled) {
  border-color: rgba(246, 163, 19, 0.55);
}

.ark-select-lead-panel.is-saving {
  cursor: progress;
}

@media (max-width: 720px) {
  .ark-select-lead-drawer {
    grid-template-columns: 1fr;
  }

  .ark-select-lead-backdrop {
    display: none;
  }

  .ark-select-lead-panel {
    width: 100%;
    border-left: 0;
    transform: translateY(4%);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  }

  .ark-select-lead-drawer.is-open .ark-select-lead-panel {
    transform: translateY(0);
    opacity: 1;
  }

  .ark-select-lead-header {
    padding: 20px 19px 17px;
  }

  .ark-select-lead-brand {
    margin-bottom: 11px;
  }

  .ark-select-lead-header h2 {
    font-size: 25px;
  }

  .ark-select-lead-header p {
    margin-top: 9px;
    font-size: 13px;
  }

  .ark-select-lead-close {
    width: 38px;
    height: 38px;
  }

  .ark-select-lead-progress {
    margin-top: 17px;
  }

  .ark-select-lead-body {
    padding: 22px 19px 28px;
  }

  .ark-select-phone-row {
    grid-template-columns: 1fr;
  }

  .ark-select-lead-footer {
    padding: 14px 19px max(14px, env(safe-area-inset-bottom));
  }

  .ark-select-footer-actions-split,
  .ark-select-footer-actions-stack {
    flex-direction: column-reverse;
  }

  .ark-select-footer-actions-split .ark-select-btn,
  .ark-select-footer-actions-stack .ark-select-btn {
    width: 100%;
  }

  .ark-select-calendly-screen {
    min-height: calc(100dvh - 260px);
  }

  .ark-select-calendly-container {
    min-height: calc(100dvh - 260px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ark-select-lead-panel,
  .ark-select-lead-backdrop,
  .ark-select-lead-progress-track i,
  .ark-select-btn {
    transition: none !important;
  }
}

/* V115 · Calendly em área integral e fluxo reiniciável */
.ark-select-lead-panel.is-calendly .ark-select-lead-body {
  overflow: hidden;
  padding: 0;
}

.ark-select-lead-panel.is-calendly .ark-select-lead-live {
  position: absolute;
  z-index: 5;
  left: 22px;
  right: 22px;
  top: 10px;
  pointer-events: none;
}

.ark-select-lead-panel.is-calendly .ark-select-calendly-screen {
  height: 100%;
  min-height: 0;
}

.ark-select-lead-panel.is-calendly .ark-select-calendly-container,
.ark-select-lead-panel.is-calendly .calendly-inline-widget,
.ark-select-lead-panel.is-calendly .calendly-inline-widget iframe {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

.ark-select-lead-panel.is-calendly .ark-select-calendly-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
}

.ark-select-lead-panel.is-calendly .calendly-inline-widget {
  position: absolute !important;
  inset: 0 !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
}

.ark-select-lead-panel.is-calendly .ark-select-lead-footer {
  padding-top: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

@media (max-width: 720px) {
  .ark-select-lead-panel.is-calendly .ark-select-lead-header {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .ark-select-lead-panel.is-calendly .ark-select-lead-brand,
  .ark-select-lead-panel.is-calendly .ark-select-lead-header p {
    display: none;
  }

  .ark-select-lead-panel.is-calendly .ark-select-lead-header h2 {
    font-size: 23px;
  }

  .ark-select-lead-panel.is-calendly .ark-select-lead-progress {
    margin-top: 12px;
  }
}

/* V124 — feedback instantâneo e carregamento do Calendly */
.ark-select-btn{display:flex!important;align-items:center;justify-content:center;gap:10px}
.ark-select-btn.is-loading{cursor:wait}
.ark-select-btn.is-loading::before{content:"";width:17px;height:17px;border:2px solid rgba(5,11,22,.22);border-top-color:#07101f;border-radius:50%;animation:arkSelectSpin .7s linear infinite;flex:none}
.ark-select-btn-secondary.is-loading::before{border-color:rgba(255,255,255,.22);border-top-color:#fff}
.ark-select-calendly-loading{min-height:620px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:#657188;background:#fff}
.ark-select-calendly-loading i{width:34px;height:34px;border:3px solid rgba(248,153,13,.18);border-top-color:#f8990d;border-radius:50%;animation:arkSelectSpin .8s linear infinite}
@keyframes arkSelectSpin{to{transform:rotate(360deg)}}
