/* Lead Form public styles */
.lf-wrap {
    --lf-bg: #ffffff;
    --lf-fg: #111827;
    --lf-accent: #6366f1;
    margin: 32px auto;
    max-width: 720px;
    direction: rtl;
}
.lf-card {
    background: var(--lf-bg);
    color: var(--lf-fg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.06);
}
.lf-hero {
    width: 100%;
    aspect-ratio: 16/6;
    background: #f3f4f6;
    overflow: hidden;
}
.lf-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lf-body { padding: 28px 28px 24px; }
.lf-title {
    margin: 0 0 6px;
    font-size: 24px; font-weight: 800; line-height: 1.25;
    color: var(--lf-fg);
}
.lf-intro { margin: 0 0 18px; font-size: 15px; opacity: .8; line-height: 1.55; }

.lf-progress {
    height: 6px; background: rgba(15, 23, 42, 0.06);
    border-radius: 999px; overflow: hidden; margin: 0 0 18px;
}
.lf-progress-bar {
    height: 100%; width: 0%; background: var(--lf-accent);
    border-radius: 999px; transition: width .35s ease;
}

.lf-step-area { min-height: 110px; }
.lf-step { animation: lf-fade .25s ease; }
@keyframes lf-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lf-q { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.lf-req { color: #ef4444; font-weight: 700; }

/* Yes/No chips */
.lf-opts-yn { display: flex; gap: 10px; flex-wrap: wrap; }
.lf-chip {
    padding: 12px 22px; border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    border: 2px solid transparent;
    color: var(--lf-fg);
    font: inherit; font-weight: 600; font-size: 15px;
    cursor: pointer; transition: all .15s ease;
}
.lf-chip:hover { background: rgba(99, 102, 241, 0.10); }
.lf-chip.is-selected {
    background: var(--lf-accent); color: #fff; border-color: var(--lf-accent);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* Image choice cards */
.lf-opts-img {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.lf-card-opt {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 10px; border-radius: 14px;
    background: rgba(15, 23, 42, 0.04);
    border: 2px solid transparent; cursor: pointer;
    transition: all .15s ease; font: inherit; color: inherit;
}
.lf-card-opt:hover {
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}
.lf-card-opt.is-selected {
    background: rgba(99, 102, 241, 0.10);
    border-color: var(--lf-accent);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.20);
}
.lf-card-img {
    width: 100%; aspect-ratio: 1; border-radius: 10px;
    background-size: cover; background-position: center;
    background-color: #e5e7eb;
}
.lf-card-img-empty::before {
    content: "?"; display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; color: #9ca3af; font-size: 32px; font-weight: 700;
}
.lf-card-label { font-size: 14px; font-weight: 600; }

/* Text */
.lf-textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    font: inherit; font-size: 15px; resize: vertical; min-height: 90px;
    background: #fff; color: var(--lf-fg);
}
.lf-textarea:focus { outline: 3px solid rgba(99, 102, 241, 0.2); border-color: var(--lf-accent); }

/* Actions */
.lf-actions {
    display: flex; gap: 10px; margin-top: 22px; align-items: center;
    justify-content: flex-end;
}
.lf-btn {
    padding: 12px 22px; border-radius: 10px;
    font: inherit; font-weight: 700; font-size: 15px;
    cursor: pointer; border: 0;
    transition: all .15s ease;
    display: inline-flex; align-items: center; gap: 6px;
}
.lf-btn-back { background: rgba(15, 23, 42, 0.06); color: var(--lf-fg); }
.lf-btn-back:hover { background: rgba(15, 23, 42, 0.10); }
.lf-btn-next, .lf-btn-submit {
    background: var(--lf-accent); color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.30);
}
.lf-btn-next:hover, .lf-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35); }
.lf-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.lf-btn-submit { display: none; }

/* Success / error */
.lf-success {
    text-align: center; padding: 20px 0;
}
.lf-success-icon { font-size: 56px; color: #10b981; margin-bottom: 10px; }
.lf-success-msg { font-size: 17px; font-weight: 600; }

.lf-error {
    margin-top: 12px; padding: 10px 14px; border-radius: 8px;
    background: #fee2e2; color: #b91c1c; font-size: 14px; font-weight: 500;
}

@media (max-width: 600px) {
    .lf-body { padding: 22px 18px 18px; }
    .lf-title { font-size: 20px; }
    .lf-actions { flex-wrap: wrap; }
}
