/* modal-agendamento.css - Estilo do modal universal de captura/agendamento.
   Drop-in: nao depende de variaveis globais do site. */

.anymodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 28, 0.78);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: anymodal-fade 180ms ease-out;
}

@keyframes anymodal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anymodal-box {
  position: relative;
  background: #ffffff;
  color: #1a1a2e;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 32px 28px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  animation: anymodal-pop 220ms cubic-bezier(.2,.9,.3,1.2);
}

@keyframes anymodal-pop {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.anymodal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: #6b6b85;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 120ms;
}
.anymodal-close:hover {
  background: rgba(0,0,0,0.06);
}

.anymodal-title {
  margin: 0 0 16px 0;
  font-size: 22px;
  line-height: 1.3;
  color: #1a1a2e;
  font-weight: 700;
}

.anymodal-question {
  font-size: 16px;
  line-height: 1.55;
  color: #3a3a52;
  margin: 0 0 24px 0;
}

.anymodal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 640px) {
  .anymodal-actions { flex-direction: row; }
  .anymodal-actions .anymodal-btn { flex: 1; }
}

.anymodal-btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms, box-shadow 120ms, background 120ms;
  font-family: inherit;
}

.anymodal-btn-primary {
  background: linear-gradient(135deg, #5b3df5 0%, #8247f5 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(91, 61, 245, 0.36);
}
.anymodal-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(91, 61, 245, 0.45);
}

.anymodal-btn-secondary {
  background: #eef0f8;
  color: #4a4a66;
}
.anymodal-btn-secondary:hover {
  background: #e1e3ef;
}

.anymodal-status {
  margin-top: 18px;
  font-size: 14px;
  color: #5b3df5;
  min-height: 20px;
  text-align: center;
}

.anymodal-success {
  text-align: center;
  padding: 18px 0;
}
.anymodal-success .anymodal-title {
  margin-bottom: 22px;
}

/* ---------- Verificacao por WhatsApp (OTP) -------------------------------- */
.anymodal-wa {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.anymodal-wa-code {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5em;
  padding: 14px 16px 14px 22px;
  border: 2px solid #d7d9e6;
  border-radius: 12px;
  color: #1a1a2e;
  font-family: inherit;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}
.anymodal-wa-code:focus {
  border-color: #5b3df5;
  box-shadow: 0 0 0 4px rgba(91, 61, 245, 0.16);
}
.anymodal-wa-code:disabled {
  background: #f3f4fa;
  color: #9a9ab0;
}
.anymodal-wa-resend {
  background: transparent;
  border: 0;
  color: #5b3df5;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px;
  align-self: center;
  font-family: inherit;
}
.anymodal-wa-resend:disabled {
  color: #9a9ab0;
  cursor: default;
}
.anymodal-wa-resend:not(:disabled):hover {
  text-decoration: underline;
}

/* ---------- Check verde no campo de telefone do formulario ---------------- */
.any-phone-input-wrap {
  position: relative;
  display: block;
}
.any-phone-check {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%) scale(0.6);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1aa566;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}
.field.is-phone-verified .any-phone-check {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.field.is-phone-verified .any-phone-input-wrap input {
  border-color: #1aa566 !important;
  padding-right: 40px;
}
