/* ================================================
   LEAD CAPTURE FORM — daututaichinh.pro
   Popup + Inline Form | Dark Theme
   ================================================ */

/* ===== SHARED FORM STYLES ===== */
.lead-form {
  width: 100%;
  max-width: 480px;
}

.lead-form .form-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.lead-form .form-subtitle {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 24px;
  line-height: 1.5;
}

.lead-form .form-group {
  margin-bottom: 16px;
}

.lead-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.lead-form label .required {
  color: #f87171;
  margin-left: 2px;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select {
  width: 100%;
  padding: 12px 14px;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #e5e7eb;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.lead-form input::placeholder {
  color: #4b5563;
}

.lead-form select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.lead-form select option {
  background: #0f172a;
  color: #e5e7eb;
}

/* Submit Button */
.lead-form .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  margin-top: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.lead-form .btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.lead-form .btn-submit:active {
  transform: translateY(0);
}

.lead-form .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Spinner */
.lead-form .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.lead-form .btn-submit.loading .spinner {
  display: inline-block;
}

.lead-form .btn-submit.loading .btn-text {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success / Error Messages */
.lead-form .form-message {
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 16px;
  animation: fadeInMsg 0.3s ease;
}

.lead-form .form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.lead-form .form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Privacy text */
.lead-form .form-privacy {
  font-size: 12px;
  color: #64748b;
  margin-top: 12px;
  line-height: 1.5;
}

.lead-form .form-privacy a {
  color: #60a5fa;
  text-decoration: none;
}


/* ===== POPUP OVERLAY ===== */
.lead-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lead-popup-overlay.active {
  display: flex;
  animation: fadeInOverlay 0.3s ease;
}

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

/* Popup Card */
.lead-popup-card {
  position: relative;
  background: linear-gradient(180deg, #111b2e 0%, #0d1526 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: slideUpPopup 0.35s ease;
}

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

/* Close button */
.lead-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.lead-popup-close:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

/* Icon on top of popup */
.lead-popup-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}


/* ===== CTA BUTTON (Hero) ===== */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: subtlePulse 2.5s ease-in-out infinite;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
  animation: none;
}

@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(37, 99, 235, 0.2); }
  50%      { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.45); }
}


/* ===== INLINE FORM (Download page) ===== */
.lead-form-inline-wrapper {
  background: linear-gradient(180deg, #111b2e 0%, #0d1526 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px 28px;
  margin-bottom: 32px;
}

.lead-form-inline-wrapper .lead-form {
  max-width: 100%;
}


/* ===== ZALO JOIN STEP ===== */
.zalo-step {
  text-align: center;
  padding: 8px 0;
}

.zalo-step-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.zalo-step .form-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.zalo-step .form-subtitle {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 24px;
}

.zalo-step-box {
  background: linear-gradient(135deg, rgba(0,104,255,0.08), rgba(37,99,235,0.08));
  border: 1px solid rgba(0,104,255,0.25);
  border-radius: 14px;
  padding: 24px 20px;
  margin: 16px 0;
}

.zalo-step-number {
  display: inline-block;
  background: rgba(0,104,255,0.2);
  color: #60a5fa;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.zalo-step-heading {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.zalo-step-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-zalo {
  display: inline-block;
  padding: 14px 32px;
  background: #0068FF;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  animation: subtlePulseZalo 2s ease-in-out infinite;
}

.btn-zalo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 104, 255, 0.4);
  animation: none;
}

@keyframes subtlePulseZalo {
  0%, 100% { box-shadow: 0 2px 12px rgba(0, 104, 255, 0.2); }
  50%      { box-shadow: 0 4px 20px rgba(0, 104, 255, 0.5); }
}

.zalo-continue-wrapper {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.zalo-continue-text {
  font-size: 15px;
  color: #86efac;
  font-weight: 600;
  margin-bottom: 12px;
}

.btn-continue {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .lead-popup-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .lead-form .form-title,
  .zalo-step .form-title {
    font-size: 19px;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  .lead-form-inline-wrapper {
    padding: 24px 18px;
  }

  .btn-zalo,
  .btn-continue {
    width: 100%;
    text-align: center;
  }

  .zalo-step-box {
    padding: 20px 16px;
  }
}
