.partner-cta {
  padding: 56px 0 72px;
  background: #29425c;
}

.partner-cta__inner {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid #e5eaf3;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.partner-cta__eyebrow {
  margin: 0 0 8px;
  color: #1f4fd7;
  font-weight: 700;
}

.partner-cta__copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.partner-cta__copy p:last-child {
  margin: 0;
  color: #667085;
  line-height: 1.7;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
}

.lead-modal.is-open {
  display: block;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(5px);
}

.lead-modal__dialog {
  position: relative;
  width: min(100% - 24px, 920px);
  max-height: 92vh;
  margin: 4vh auto 0;
  background: #fff;
  border-radius: 28px;
  border: 1px solid #e5eaf3;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.lead-modal__content {
  padding: 28px;
  max-height: 92vh;
  overflow: auto;
}

.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #f4f7fb;
  color: #0f172a;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.lead-modal__close:hover {
  background: #e8eef9;
  transform: scale(1.03);
}

.lead-modal__brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  padding-right: 44px;
}

.lead-modal__badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2d6cff, #1a44b3);
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

.lead-modal__brand h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
  color: #0f172a;
}

.lead-modal__brand p {
  margin: 6px 0 0;
  color: #667085;
  line-height: 1.55;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lead-stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2px;
}

.lead-stepper__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #98a2b3;
  font-weight: 700;
  transition: color 0.2s ease;
}

.lead-stepper__item span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eef2f7;
  color: #667085;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.lead-stepper__item.is-active {
  color: #1d4ed8;
}

.lead-stepper__item.is-active span {
  background: linear-gradient(135deg, #2d6cff, #1a44b3);
  color: #fff;
  box-shadow: 0 8px 18px rgba(45, 108, 255, 0.22);
}

.lead-stepper__item.is-completed {
  color: #065f46;
  cursor: pointer;
}

.lead-stepper__item.is-completed:hover {
  color: #047857;
}

.lead-stepper__item.is-completed span {
  background: #d1fae5;
  color: #065f46;
  box-shadow: none;
}

.lead-stepper__item.is-completed:hover span {
  background: #a7f3d0;
}

.lead-stepper__line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #dbe4f0 0%, #e8eef7 100%);
  border-radius: 999px;
}

.lead-step {
  display: none;
  background: #f9fbff;
  border: 1px solid #e5eaf3;
  border-radius: 18px;
  padding: 18px;
}

.lead-step.is-active {
  display: block;
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #344054;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  color: #101828;
  font: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.lead-form input,
.lead-form select {
  min-height: 46px;
  padding: 0 14px;
}

.lead-form textarea {
  min-height: 108px;
  padding: 12px 14px;
  resize: vertical;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: #98a2b3;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: #2d6cff;
  box-shadow: 0 0 0 4px rgba(45, 108, 255, 0.12);
}

.lead-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5eaf3;
  color: #344054;
  font-weight: 500;
}

.lead-check input {
  width: 16px;
  height: 16px;
  min-height: auto;
  margin: 0;
}

.lead-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #dbe4f0, transparent);
  margin: 4px 0;
}

.lead-feedback {
  min-height: 20px;
  border-radius: 12px;
  font-size: 0.94rem;
}

.lead-feedback.is-error {
  padding: 12px 14px;
  background: #fff1f3;
  color: #b42318;
  border: 1px solid #fecdca;
}

.lead-feedback.is-success {
  padding: 12px 14px;
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}

.lead-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.lead-submit,
.lead-actions .btn,
.lead-actions .btn.btn-secundario {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
}

.lead-submit {
  border: 0;
  background: linear-gradient(135deg, #2d6cff, #1a44b3);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(45, 108, 255, 0.2);
}

.lead-submit:hover {
  filter: brightness(1.02);
}

.lead-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.lead-actions .btn.btn-secundario {
  background: #fff;
  color: #344054;
  border: 1px solid #d0d5dd;
}

.lead-actions .btn.btn-secundario:hover {
  background: #f8fafc;
}

/* Checkboxes de aceite bloqueados enquanto contrato não foi lido */
.lead-check:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* === BLOCO CONTRATO DE PARCERIA V2 === */

.lead-contrato-wrapper {
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  overflow: hidden;
}

.lead-contrato-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e5eaf3;
  font-size: 0.83rem;
}

.lead-contrato-versao {
  color: #667085;
  font-size: 0.78rem;
}

.lead-contrato-scroll {
  height: 300px;
  overflow-y: auto;
  padding: 14px 18px;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #1e293b;
  background: #fff;
  scroll-behavior: smooth;
}

.lead-contrato-scroll:focus-visible {
  outline: 2px solid #2d6cff;
  outline-offset: -2px;
}

.lead-contrato-scroll h1 {
  font-size: 0.95rem;
  margin: 0 0 10px;
  color: #0f172a;
}

.lead-contrato-scroll h2 {
  font-size: 0.88rem;
  margin: 16px 0 6px;
  color: #0f172a;
  border-bottom: 1px solid #e5eaf3;
  padding-bottom: 4px;
}

.lead-contrato-scroll h3 {
  font-size: 0.83rem;
  margin: 12px 0 4px;
  color: #1e293b;
}

.lead-contrato-scroll p {
  margin: 0 0 8px;
}

.lead-contrato-scroll ul {
  margin: 0 0 8px;
  padding-left: 18px;
}

.lead-contrato-scroll li {
  margin-bottom: 3px;
}

.lead-contrato-scroll hr {
  border: none;
  border-top: 1px solid #e5eaf3;
  margin: 12px 0;
}

.lead-contrato-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  margin: 8px 0;
}

.lead-contrato-scroll th,
.lead-contrato-scroll td {
  border: 1px solid #d0d5dd;
  padding: 5px 8px;
  text-align: left;
  vertical-align: top;
}

.lead-contrato-scroll th {
  background: #f1f5f9;
  font-weight: 700;
}

.lead-contrato-scroll code {
  font-family: monospace;
  font-size: 0.76rem;
  background: #f1f5f9;
  padding: 1px 4px;
  border-radius: 4px;
}

.lead-contrato-scroll em {
  color: #475569;
  font-size: 0.76rem;
}

.lead-contrato-progress {
  padding: 8px 14px;
  background: #f8fafc;
  border-top: 1px solid #e5eaf3;
  min-height: 34px;
  display: flex;
  align-items: center;
}

.lead-contrato-progress__label {
  font-size: 0.76rem;
  color: #667085;
}

.lead-contrato-progress__label.is-done {
  color: #027a48;
  font-weight: 700;
}

#wrapAceiteContrato[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* === FIM CONTRATO === */

/* === SEÇÃO HORÁRIO DE FUNCIONAMENTO === */

.lead-horario-section {
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  padding: 14px;
  background: #f9fbff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead-horario-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  display: block;
  margin-bottom: 2px;
}

.lead-horario-desc {
  font-size: 0.78rem;
  color: #667085;
  margin: 0;
  line-height: 1.5;
}

.lead-horario-operacoes {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lead-horario-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #344054;
  margin: 0 0 4px;
}

.lead-horario-grade-wrapper {
  border: 1px solid #e5eaf3;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.lead-horario-grade-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #344054;
  padding: 6px 12px;
  background: #f1f5f9;
  margin: 0;
  border-bottom: 1px solid #e5eaf3;
}

.lead-schedule-grid {
  display: flex;
  flex-direction: column;
}

.lead-schedule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  min-height: 34px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.lead-schedule-row:last-child {
  border-bottom: none;
}

.lead-schedule-day {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 148px;
  font-size: 0.82rem;
  color: #344054;
  cursor: pointer;
  flex-shrink: 0;
  min-height: auto;
  padding: 0;
  border: none;
  background: none;
}

.lead-schedule-day input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-height: auto;
  margin: 0;
  flex-shrink: 0;
}

.lead-schedule-times {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #667085;
}

.lead-schedule-open {
  display: flex;
  align-items: center;
  gap: 5px;
}

.lead-schedule-closed {
  font-size: 0.78rem;
  color: #98a2b3;
  font-style: italic;
}

.lead-schedule-times input[type="time"] {
  width: 90px;
  height: 28px;
  min-height: auto;
  padding: 0 6px;
  font-size: 0.78rem;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #fff;
  color: #101828;
}

.lead-schedule-times input[type="time"]:focus {
  outline: none;
  border-color: #2d6cff;
  box-shadow: 0 0 0 3px rgba(45, 108, 255, 0.1);
}

.lead-schedule-times input[type="time"]:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  background: #f9fafb;
}

/* === FIM HORÁRIO === */

@media (max-width: 768px) {
  .partner-cta__inner {
    grid-template-columns: 1fr;
  }

  .lead-modal__dialog {
    width: min(100% - 16px, 920px);
    margin-top: 2vh;
    border-radius: 18px;
  }

  .lead-modal__content {
    padding: 18px;
  }

  .lead-grid {
    grid-template-columns: 1fr;
  }

  .lead-stepper {
    gap: 8px;
  }

  .lead-stepper__item strong {
    font-size: 0.9rem;
  }

  .lead-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lead-submit,
  .lead-actions .btn {
    width: 100%;
  }
}