/* cta.css — Sistema de CTA: Card Dr. Felipe + Modal + WhatsApp Flutuante */

/* ══════════════════════════════════════
   OVERLAY DE CAPTURA DE LEAD
══════════════════════════════════════ */
.lead-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #0F1C33 0%, #1B2A4A 100%);
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lead-overlay.visible { display: flex; }

.lead-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  animation: modalIn 0.35s cubic-bezier(0.22,1,0.36,1) both;
}

.lead-card__logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 4px;
}

.lead-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: #1B2A4A;
  margin: 0;
  line-height: 1.2;
}

.lead-card__sub {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.lead-card .form-field { display: flex; flex-direction: column; gap: 5px; }

.lead-card .form-field label {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lead-card .form-field input {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #1a202c;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.lead-card .form-field input:focus {
  border-color: #1B2A4A;
  box-shadow: 0 0 0 3px rgba(27,42,74,0.08);
}
.lead-card .form-field input.error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}

.lead-card__btn {
  width: 100%;
  background: linear-gradient(135deg, #C9A84C 0%, #b8932e 100%);
  color: #1B2A4A;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
  margin-top: 4px;
}
.lead-card__btn:hover { opacity: 0.92; transform: translateY(-1px); }

@media (max-width: 480px) {
  .lead-card { padding: 28px 22px; }
}

/* ══════════════════════════════════════
   CARD DO DR. FELIPE (inline no chat)
══════════════════════════════════════ */
.felipe-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #1B2A4A 0%, #0F1C33 100%);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 4px 0 4px 56px;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(27,42,74,0.3), 0 0 0 1px rgba(201,168,76,0.1);
  animation: cardSlideIn 0.4s cubic-bezier(0.22,1,0.36,1) both;
  cursor: default;
}

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.felipe-card__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid #C9A84C;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.felipe-card__info {
  flex: 1;
  min-width: 0;
}

.felipe-card__badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: #C9A84C;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.felipe-card__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 2px;
}

.felipe-card__title {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 12px;
}

.felipe-card__btn {
  width: 100%;
  background: linear-gradient(135deg, #C9A84C 0%, #b8932e 100%);
  color: #1B2A4A;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-align: center;
}
.felipe-card__btn:hover { opacity: 0.9; transform: scale(1.02); }

/* ══════════════════════════════════════
   MODAL DE CONSULTA
══════════════════════════════════════ */
.consult-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,16,30,0.82);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayIn 0.25s ease both;
}
.consult-overlay.hidden { display: none; }

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.consult-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
  animation: modalIn 0.35s cubic-bezier(0.22,1,0.36,1) both;
  position: relative;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header do modal */
.consult-modal__header {
  background: linear-gradient(135deg, #1B2A4A 0%, #0F1C33 100%);
  border-radius: 20px 20px 0 0;
  padding: 28px 28px 24px;
  position: relative;
}

.consult-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.consult-modal__close:hover { background: rgba(255,255,255,0.22); }

.consult-modal__doctor {
  display: flex;
  align-items: center;
  gap: 16px;
}

.consult-modal__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2.5px solid #C9A84C;
  box-shadow: 0 0 0 4px rgba(201,168,76,0.15);
  flex-shrink: 0;
}

.consult-modal__doc-info { flex: 1; }

.consult-modal__free-badge {
  display: inline-block;
  background: #C9A84C;
  color: #1B2A4A;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.consult-modal__doc-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 2px;
}

.consult-modal__doc-title {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

/* Body do modal */
.consult-modal__body {
  padding: 28px;
}

/* Resumo do caso */
.case-summary {
  background: #f8faff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #1B2A4A;
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  margin-bottom: 24px;
}

.case-summary__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
}

.case-summary__text {
  font-size: 13px;
  line-height: 1.65;
  color: #2d3748;
}

/* Linha do tempo */
.consult-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 24px;
  position: relative;
}

.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #C9A84C, rgba(201,168,76,0.3));
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1B2A4A;
  border: 2px solid #C9A84C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #C9A84C;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
  margin-bottom: 8px;
}

.timeline-label {
  font-size: 10px;
  font-weight: 600;
  color: #1B2A4A;
  line-height: 1.3;
  padding: 0 4px;
}

.timeline-sub {
  font-size: 9px;
  color: #94a3b8;
  margin-top: 2px;
  padding: 0 4px;
}

/* Formulário */
.consult-form { display: flex; flex-direction: column; gap: 14px; }

.form-field { display: flex; flex-direction: column; gap: 5px; }

.form-field label {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-field input {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #1a202c;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.form-field input:focus {
  border-color: #1B2A4A;
  box-shadow: 0 0 0 3px rgba(27,42,74,0.08);
}

.consult-disclaimer {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.5;
}

.btn-consult {
  width: 100%;
  background: linear-gradient(135deg, #1B2A4A 0%, #0F1C33 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(27,42,74,0.3);
}
.btn-consult:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,42,74,0.4);
}
.btn-consult:disabled { opacity: 0.55; cursor: not-allowed; }

/* Estado de sucesso */
.consult-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 28px;
  gap: 12px;
}
.consult-success.visible { display: flex; }

.success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #059669, #047857);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 8px;
  box-shadow: 0 8px 24px rgba(5,150,105,0.3);
}

.success-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #1B2A4A;
}

.success-text {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  max-width: 340px;
}

.btn-wpp-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  margin-top: 8px;
}
.btn-wpp-success:hover { opacity: 0.9; transform: scale(1.02); }

/* ══════════════════════════════════════
   BOTÃO WHATSAPP FLUTUANTE
══════════════════════════════════════ */
.wpp-float {
  position: fixed;
  bottom: 140px;
  right: 24px;
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.wpp-float.visible { display: flex; }

.wpp-float__tooltip {
  background: #1B2A4A;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.wpp-float__tooltip::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: -5px;
  border: 5px solid transparent;
  border-top-color: #1B2A4A;
  border-bottom: none;
}

.wpp-float:hover .wpp-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}

.wpp-float__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  animation: wppPulse 2.5s ease-in-out infinite;
}
.wpp-float__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  animation: none;
}

@keyframes wppPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}

.wpp-float__btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ══════════════════════════════════════
   URGÊNCIA
══════════════════════════════════════ */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220,38,38,0.12);
  border: 1px solid rgba(220,38,38,0.35);
  color: #DC2626;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 0 16px;
  animation: urgencyPulse 1.8s ease-in-out infinite;
}
@keyframes urgencyPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

/* ══════════════════════════════════════
   BARRA CTA FIXA NO CHAT
══════════════════════════════════════ */
.chat-cta-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(27,42,74,0.06) 0%, rgba(201,168,76,0.09) 100%);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 10px;
}

.chat-cta-bar__label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-align: center;
  letter-spacing: 0.02em;
}

.chat-cta-bar__btns {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.chat-cta-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  font-family: 'DM Sans', system-ui, sans-serif;
  flex: 1;
  max-width: 220px;
  letter-spacing: 0.02em;
}
.chat-cta-bar__btn:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }

.chat-cta-bar__btn--consult {
  background: linear-gradient(135deg, #1B2A4A, #0F1C33);
  color: #fff;
  box-shadow: 0 3px 12px rgba(27,42,74,0.3);
}

.chat-cta-bar__btn--wpp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 3px 12px rgba(37,211,102,0.35);
}

@media (max-width: 480px) {
  .chat-cta-bar { padding: 12px 14px; }
  .chat-cta-bar__btn { font-size: 13px; padding: 10px 16px; }
}

/* ══════════════════════════════════════
   LEMBRETE DE CONTATO (após 5 msgs)
══════════════════════════════════════ */
.contact-reminder {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #1B2A4A 0%, #0F1C33 100%);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 12px;
  padding: 13px 16px;
  margin-left: 56px;
  max-width: 420px;
  animation: cardSlideIn 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

.contact-reminder__text {
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  flex: 1;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.contact-reminder__actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.contact-reminder__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
  border: none;
  white-space: nowrap;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.contact-reminder__btn:hover { opacity: 0.82; }

.contact-reminder__btn--schedule {
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: #C9A84C;
}

.contact-reminder__btn--wpp {
  background: #25D366;
  color: #fff;
}

@media (max-width: 768px) {
  .contact-reminder { margin-left: 0; max-width: none; flex-direction: column; align-items: flex-start; }
  .contact-reminder__actions { flex-direction: row; width: 100%; }
  .contact-reminder__btn { flex: 1; }
}
