/* ===================================================
   CFBP ADVOGADOS - PREMIUM LEAD MODAL & POPUP
   =================================================== */

/* Backdrop Overlay */
.cfbp-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}

.cfbp-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Card */
.cfbp-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(165deg, #222222 0%, #141414 100%);
  border: 1px solid rgba(253, 185, 19, 0.4);
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(253, 185, 19, 0.15);
  padding: 2.2rem 2.2rem 2rem 2.2rem;
  box-sizing: border-box;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  max-height: 92vh;
  overflow-y: auto;
}

.cfbp-modal-backdrop.active .cfbp-modal-card {
  transform: translateY(0) scale(1);
}

/* Close Button */
.cfbp-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #cccccc;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cfbp-modal-close:hover {
  background: var(--primary-yellow, #FDB913);
  color: #111111;
  border-color: var(--primary-yellow, #FDB913);
  transform: rotate(90deg);
}

/* Modal Header */
.cfbp-modal-header {
  margin-bottom: 1.5rem;
  padding-right: 1.8rem;
}

.cfbp-modal-badge {
  display: inline-block;
  color: var(--primary-yellow, #FDB913);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.4rem;
}

.cfbp-modal-title {
  font-family: 'Gotham', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
  line-height: 1.25;
}

.cfbp-modal-desc {
  font-size: 0.86rem;
  color: #a5a5a5;
  margin: 0;
  line-height: 1.45;
}

/* Form Groups & Inputs */
.cfbp-form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.cfbp-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #d0d0d0;
  margin-bottom: 0.35rem;
}

.cfbp-form-label span.req {
  color: var(--primary-yellow, #FDB913);
  margin-left: 2px;
}

.cfbp-modal-card input[type="text"],
.cfbp-modal-card input[type="email"],
.cfbp-modal-card input[type="tel"],
.cfbp-modal-card select,
.cfbp-modal-card textarea {
  width: 100%;
  background: #0d0d0d !important;
  border: 1px solid #333333 !important;
  border-radius: 6px !important;
  padding: 11px 14px !important;
  font-size: 0.92rem !important;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  box-sizing: border-box !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
  min-height: auto !important;
  margin-bottom: 0 !important;
}

.cfbp-modal-card input:focus,
.cfbp-modal-card select:focus,
.cfbp-modal-card textarea:focus {
  outline: none !important;
  border-color: var(--primary-yellow, #FDB913) !important;
  box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.2) !important;
  background: #121212 !important;
}

.cfbp-modal-card input::placeholder,
.cfbp-modal-card textarea::placeholder {
  color: #666666 !important;
  font-size: 0.88rem !important;
}

.cfbp-modal-card textarea {
  resize: vertical;
  min-height: 75px !important;
}

/* Submit Button */
.cfbp-modal-submit {
  width: 100%;
  background: linear-gradient(135deg, #FDB913 0%, #dfa013 100%);
  color: #111111 !important;
  font-family: 'Gotham', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  padding: 13px 20px !important;
  border-radius: 6px !important;
  border: none !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(253, 185, 19, 0.35);
  transition: all 0.25s ease;
  margin-top: 1.2rem;
}

.cfbp-modal-submit:hover {
  background: linear-gradient(135deg, #ffc73a 0%, #e6a71e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(253, 185, 19, 0.5);
}

.cfbp-modal-submit:active {
  transform: translateY(0);
}

.cfbp-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Privacy Footer Note */
.cfbp-modal-footer-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.73rem;
  color: #888888;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Floating WhatsApp Button Enhancement */
.whatsapp-flutuante {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 99998;
  cursor: pointer;
  transition: all 0.3s ease;
}

.whatsapp-flutuante:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-flutuante svg {
  margin: 0 !important;
  width: 32px;
  height: 32px;
}

/* Responsiveness */
@media (max-width: 600px) {
  .cfbp-modal-backdrop {
    padding: 1rem;
  }
  
  .cfbp-modal-card {
    padding: 1.6rem 1.4rem;
  }

  .cfbp-modal-title {
    font-size: 1.25rem;
  }

  .whatsapp-flutuante {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-flutuante svg {
    width: 28px;
    height: 28px;
  }
}
