/* ============================================================
   LeadFlow Pro — Frontend Form Styles
   Dark neon design with CSS custom properties for Elementor
   ============================================================ */

/* Form Wrapper */
.lf-form-wrap {
  background: var(--lf-bg, #1a1a1a);
  border-radius: 16px;
  padding: var(--lf-form-padding, 32px);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.lf-form-wrap * { box-sizing: border-box; }

/* Heading */
.lf-form-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--lf-heading-color, #ffffff);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.01em;
}

.lf-progress {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lf-progress-label {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

.lf-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  overflow: hidden;
}

.lf-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lf-label-color, #c8ff00), #7dff81);
  transition: width 0.25s ease;
}

.lf-step {
  display: none;
  min-height: 430px;
}

.lf-step.active {
  display: block;
}

.lf-step-transition .lf-step {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lf-step-inner {
  display: grid;
  gap: 14px;
}

.lf-navigation-actions {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.lf-navigation-actions .lf-back-btn,
.lf-navigation-actions .lf-next-btn {
  border: 1px solid var(--lf-input-border, #3a3a3a);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  min-width: 120px;
}

.lf-navigation-actions .lf-back-btn:hover,
.lf-navigation-actions .lf-next-btn:hover {
  background: rgba(255,255,255,0.08);
}

.lf-navigation-actions .lf-submit-btn {
  flex: 1;
}

.lf-field-group fieldset {
  border: 1px solid var(--lf-input-border, #3a3a3a);
  border-radius: 8px;
  padding: 14px;
}

.lf-field-group fieldset legend {
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--lf-label-color, #c8ff00);
}

.lf-field-group fieldset label {
  display: block;
  margin-bottom: 8px;
  color: #d9d9d9;
  font-size: 15px;
  cursor: pointer;
}

.lf-field-group fieldset input[type="radio"] {
  margin-right: 8px;
}

.lf-form-wrap {
  min-height: 650px;
}

.lf-field-error {
  min-height: 16px;
}

.lf-form-wrap .lf-form-message {
  animation: fadeIn 0.2s ease;
}

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

.lf-heading-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--lf-label-color, #c8ff00);
  color: #000;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Field Group */
.lf-field-group {
  margin-bottom: 18px;
}

.lf-label {
  display: block;
  font-size: var(--lf-label-size, 14px);
  font-weight: 700;
  color: var(--lf-label-color, #c8ff00);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.lf-required {
  color: var(--lf-label-color, #c8ff00);
  opacity: 0.7;
  margin-left: 2px;
}

/* Input Fields */
.lf-field {
  display: block;
  width: 100%;
  background: var(--lf-input-bg, #2a2a2a);
  border: 1.5px solid var(--lf-input-border, #3a3a3a);
  border-radius: var(--lf-input-radius, 8px);
  color: var(--lf-input-text, #ffffff);
  padding: 13px 16px;
  font-size: var(--lf-input-size, 16px);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.lf-field::placeholder {
  color: rgba(255,255,255,0.25);
  font-size: 0.9em;
}

.lf-field:focus {
  border-color: var(--lf-label-color, #c8ff00);
  box-shadow: 0 0 0 3px rgba(200,255,0,0.1);
}

.lf-field:focus::placeholder { opacity: 0.5; }

.lf-field-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.lf-field-select option {
  background: #1a1a1a;
  color: #ffffff;
}

/* WhatsApp field with country code prefix */
.lf-input-with-prefix {
  display: flex;
  align-items: stretch;
}

.lf-country-code {
  display: flex;
  align-items: center;
  padding: 13px 14px;
  background: var(--lf-label-color, #c8ff00);
  color: #000;
  font-size: var(--lf-input-size, 16px);
  font-weight: 700;
  border-radius: var(--lf-input-radius, 8px) 0 0 var(--lf-input-radius, 8px);
  white-space: nowrap;
  flex-shrink: 0;
}

.lf-field-phone {
  border-radius: 0 var(--lf-input-radius, 8px) var(--lf-input-radius, 8px) 0;
  border-left: none;
  flex: 1;
}

.lf-field-phone:focus {
  box-shadow: 0 0 0 3px rgba(200,255,0,0.1);
}

/* Field errors */
.lf-field-error {
  display: block;
  font-size: 12px;
  color: #ff6b6b;
  margin-top: 5px;
  min-height: 16px;
}

.lf-field.lf-error {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

/* Submit Button */
.lf-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 24px;
  background: var(--lf-btn-bg, #c8ff00);
  color: var(--lf-btn-text, #000000);
  border: none;
  border-radius: var(--lf-btn-radius, 8px);
  font-size: var(--lf-btn-size, 16px);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.01em;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.lf-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}

.lf-submit-btn:hover {
  background: var(--lf-btn-hover, #a8df00);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(200,255,0,0.35);
}

.lf-submit-btn:hover::before {
  background: rgba(255,255,255,0.08);
}

.lf-submit-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.lf-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.lf-btn-loading { display: none; }

/* WhatsApp note */
.lf-wa-note {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  line-height: 1.5;
}

/* Form messages */
.lf-form-message {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
}

.lf-form-message.lf-msg-success {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.25);
}

.lf-form-message.lf-msg-error {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
}

/* Success State */
.lf-success-message {
  text-align: center;
  padding: 32px 8px 20px;
}

.lf-success-icon {
  font-size: 64px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--lf-btn-bg, #c8ff00);
  color: #000;
  margin: 0 auto 20px;
  animation: lfBounce 0.5s ease;
  box-shadow: 0 0 0 0 var(--lf-btn-bg, #c8ff00);
  animation: lfBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), lfPulse 2s ease 0.5s 2;
}

.lf-success-icon .fa {
  font-size: 42px;
  line-height: 1;
}

@keyframes lfBounce {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes lfPulse {
  0%   { box-shadow: 0 0 0 0 rgba(200,255,0,0.5); }
  70%  { box-shadow: 0 0 0 16px rgba(200,255,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,255,0,0); }
}

.lf-success-message h3,
.lf-success-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--lf-heading-color, #ffffff);
  line-height: 1.5;
}

/* Shimmer loading effect on button */
@keyframes lfShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.lf-submit-btn.lf-loading {
  background: linear-gradient(90deg,
    var(--lf-btn-bg, #c8ff00) 25%,
    rgba(255,255,255,0.4) 50%,
    var(--lf-btn-bg, #c8ff00) 75%
  );
  background-size: 200% auto;
  animation: lfShimmer 1.2s linear infinite;
}

/* Responsive */
@media (max-width: 480px) {
  .lf-form-wrap { padding: 24px 18px; border-radius: 12px; }
  .lf-form-heading { font-size: 18px; }
  .lf-field { padding: 11px 14px; }
  .lf-submit-btn { padding: 13px 20px; }
}

/* ── WhatsApp Continue Button (Success State) ── */
.lf-wa-continue-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 28px;
  padding: 0;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  border-radius: 14px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: lfSlideUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3);
}

/* Shimmer sweep on load */
.lf-wa-continue-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  animation: lfWaShimmer 1.8s ease 0.6s both;
}

@keyframes lfWaShimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(200%); }
}

.lf-wa-continue-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.5);
  color: #ffffff;
  text-decoration: none;
}

.lf-wa-continue-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

/* Left icon block */
.lf-wa-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  min-width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.15);
  border-radius: 14px 0 0 14px;
  flex-shrink: 0;
}

.lf-wa-btn-icon svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Button text */
.lf-wa-btn-text {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Arrow block */
.lf-wa-btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 60px;
  background: rgba(0,0,0,0.1);
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

.lf-wa-continue-btn:hover .lf-wa-btn-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Note below button */
.lf-wa-continue-note {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  letter-spacing: 0.02em;
}

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

/* ── Duplicate / Already Submitted State ── */
.lf-success-icon .fa-info-circle {
  color: #60a5fa;
}

