/* FEB — Modal Form Interstitial (E-com → WhatsApp)
 * Estilos do modal. Vai em /wp-content/uploads/feb-ecom/v1/modal.css
 * Carregado pela Loja Integrada via <link rel="stylesheet"> no código HTML.
 */

.feb-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms ease-out;
  padding: 16px;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.feb-modal-overlay--open { display: flex; opacity: 1; }

.feb-modal-overlay .feb-modal {
  background: #fff;
  border-radius: 12px;
  width: 440px;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding: 32px;
  box-sizing: border-box;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 250ms ease-out, opacity 250ms ease-out;
  margin: 0;
}
.feb-modal-overlay--open .feb-modal { transform: scale(1); opacity: 1; }

.feb-modal-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #c4181e;
  border-radius: 12px 12px 0 0;
}

.feb-modal-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms;
}
.feb-modal-close:hover { background: #f3f3f3; }

.feb-product {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 18px 0;
}
.feb-product-img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f5;
  flex-shrink: 0;
}
.feb-product-img--hidden { display: none; }
.feb-product-name {
  font-size: 15px;
  font-weight: 500;
  color: #201f1f;
  line-height: 1.3;
}

.feb-divider {
  height: 1px;
  background: #ececec;
  margin-bottom: 22px;
}

.feb-modal-overlay .feb-title {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #201f1f !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
  text-align: left !important;
  text-transform: none !important;
}
.feb-modal-overlay .feb-subtitle {
  font-size: 16px !important;
  color: #565656 !important;
  margin: 0 0 22px 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

.feb-modal-overlay .feb-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.feb-modal-overlay .feb-input {
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-family: inherit !important;
  color: #201f1f !important;
  background: #fff !important;
  outline: none !important;
  transition: border-color 150ms, box-shadow 150ms !important;
  width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block !important;
  line-height: 52px !important;
  box-shadow: none;
}
.feb-modal-overlay .feb-input::placeholder { color: #9c9c9c !important; opacity: 1 !important; }
.feb-modal-overlay .feb-input:focus {
  border-color: #25d366 !important;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15) !important;
}
.feb-modal-overlay .feb-input--error {
  border-color: #c4181e !important;
  box-shadow: 0 0 0 3px rgba(196, 24, 30, 0.12) !important;
}

.feb-modal-overlay .feb-cta {
  margin-top: 8px !important;
  min-height: 56px !important;
  padding: 16px 24px !important;
  border: none !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35) !important;
  transition: box-shadow 200ms ease, transform 200ms ease, opacity 200ms ease !important;
  -webkit-tap-highlight-color: transparent !important;
  width: 100% !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1 !important;
}
.feb-modal-overlay .feb-cta:hover:not(:disabled) {
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45) !important;
  transform: translateY(-2px) !important;
}
.feb-modal-overlay .feb-cta:active:not(:disabled) {
  transform: translateY(0) !important;
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.3) !important;
}
.feb-modal-overlay .feb-cta:disabled { opacity: 0.65 !important; cursor: not-allowed !important; }
.feb-modal-overlay .feb-cta-arrow { font-size: 18px !important; font-weight: 400 !important; line-height: 1 !important; }

.feb-modal-overlay .feb-microcopy {
  font-size: 13px !important;
  color: #808080 !important;
  text-align: center !important;
  margin: 16px 0 0 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
}
.feb-modal-overlay .feb-disclaimer {
  font-size: 11px !important;
  color: #a8a8a8 !important;
  margin: 5px 0 0 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
}
.feb-modal-overlay .feb-disclaimer-icon {
  flex-shrink: 0 !important;
  color: #a8a8a8 !important;
  vertical-align: middle !important;
  display: inline-block !important;
}

/* === TRANSITION (POST-SUBMIT) === */
.feb-modal-transition {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 0;
  min-height: 320px;
}
.feb-modal-transition--visible { display: flex; }

.feb-spinner {
  width: 52px; height: 52px;
  border: 4px solid #ececec;
  border-top-color: #25d366;
  border-radius: 50%;
  animation: feb-spin 800ms linear infinite;
  margin-bottom: 18px;
}
@keyframes feb-spin { to { transform: rotate(360deg); } }

.feb-check { display: none; margin-bottom: 18px; }
.feb-check--visible { display: block; }
.feb-check-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: feb-draw-circle 500ms ease-out forwards;
}
.feb-check-mark {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: feb-draw-check 350ms ease-out 400ms forwards;
}
@keyframes feb-draw-circle { to { stroke-dashoffset: 0; } }
@keyframes feb-draw-check  { to { stroke-dashoffset: 0; } }

.feb-transition-title {
  font-size: 26px;
  font-weight: 700;
  color: #201f1f;
  margin: 16px 0 8px 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: feb-fade-up 400ms ease-out 600ms forwards;
}
.feb-transition-subtitle {
  font-size: 16px;
  color: #565656;
  margin: 0 0 20px 0;
  line-height: 1.5;
  opacity: 0;
  animation: feb-fade-up 400ms ease-out 700ms forwards;
}
@keyframes feb-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.feb-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  opacity: 0;
  animation: feb-fade-up 300ms ease-out 850ms forwards;
}
.feb-dots span {
  width: 8px; height: 8px;
  background: #25d366;
  border-radius: 50%;
  animation: feb-dot-pulse 1200ms ease-in-out infinite;
}
.feb-dots span:nth-child(2) { animation-delay: 150ms; }
.feb-dots span:nth-child(3) { animation-delay: 300ms; }
@keyframes feb-dot-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.35); }
}

@media (max-width: 480px) {
  .feb-modal { padding: 28px 20px 24px; border-radius: 10px; }
  .feb-title { font-size: 24px; }
  .feb-product-img { width: 48px; height: 48px; }
  .feb-input { height: 48px; font-size: 16px; }
  .feb-cta { min-height: 52px; font-size: 16px; }
  .feb-modal-transition { min-height: 280px; }
  .feb-transition-title { font-size: 23px; }
}
