/* ── Novafam Survey – survey.css ── */

#nfs-survey-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: inherit;
}

/* Progress bar */
#nfs-progress-wrap { margin-bottom: 32px; }
#nfs-progress-bar {
    background: #f0e8f5;
    border-radius: 50px;
    height: 8px;
    overflow: hidden;
    position: relative;
}
#nfs-progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    background: #8b2fc9;
    border-radius: 50px;
    transition: width 0.4s ease;
    width: var(--nfs-progress, 14.28%);
}
#nfs-progress-text {
    text-align: right;
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

/* Step title */
.nfs-step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a2e;
}

/* Field */
.nfs-field { margin-bottom: 24px; }
.nfs-field > label:first-child {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
    line-height: 1.5;
}
.nfs-hint {
    font-size: 12px;
    font-weight: 500;
    color: #8b2fc9;
    background: #f3e8ff;
    border-radius: 4px;
    padding: 2px 7px;
    margin-left: 4px;
}
.nfs-scale-hint {
    font-size: 12px;
    font-weight: 400;
    color: #888;
}

/* Inputs & selects */
.nfs-field input[type="text"],
.nfs-field input[type="email"],
.nfs-field input[type="month"],
.nfs-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #222;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.nfs-field input:focus,
.nfs-field select:focus {
    outline: none;
    border-color: #8b2fc9;
}
.nfs-field small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

/* Radio & Checkbox groups – FIX: flex + gap helyett block stack */
.nfs-radio-group,
.nfs-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nfs-radio-group label,
.nfs-checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14.5px;
    color: #333;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #eee;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    line-height: 1.5;
    box-sizing: border-box;
}

.nfs-radio-group label:hover,
.nfs-checkbox-group label:hover {
    border-color: #c9a8e8;
    background: #faf5ff;
}

/* Input elem fix – ne nyomja el a szöveget */
.nfs-radio-group input[type="radio"],
.nfs-checkbox-group input[type="checkbox"] {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #8b2fc9;
    cursor: pointer;
}

.nfs-radio-group label span,
.nfs-checkbox-group label span {
    flex: 1;
    min-width: 0;
}

/* Checked state */
.nfs-radio-group label:has(input:checked),
.nfs-checkbox-group label:has(input:checked) {
    border-color: #8b2fc9;
    background: #faf5ff;
}

/* Single checkbox (adatkezelés) */
.nfs-checkbox-single label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
    padding: 10px 14px;
    border: 1.5px solid #eee;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}
.nfs-checkbox-single input {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #8b2fc9;
    cursor: pointer;
}
.nfs-checkbox-single span { flex: 1; }
.nfs-checkbox-single label:has(input:checked) {
    border-color: #8b2fc9;
    background: #faf5ff;
}

/* Scale (1–10) */
.nfs-scale-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.nfs-scale-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.nfs-scale-item input[type="radio"] { display: none; }
.nfs-scale-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #ddd;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
    cursor: pointer;
}
.nfs-scale-item:hover span { border-color: #8b2fc9; color: #8b2fc9; }
.nfs-scale-item input:checked + span {
    background: #8b2fc9;
    border-color: #8b2fc9;
    color: #fff;
}

/* Conditional */
.nfs-conditional { display: none; }
.nfs-conditional.nfs-visible { display: block; }

/* Navigation */
.nfs-nav {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    justify-content: flex-end;
}

/* Buttons */
.nfs-btn {
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.nfs-next, .nfs-submit { background: #8b2fc9; color: #fff; }
.nfs-next:hover, .nfs-submit:hover { background: #721ab0; }
.nfs-prev { background: #f0e8f5; color: #8b2fc9; }
.nfs-prev:hover { background: #e2d0f0; }
.nfs-submit { background: #27ae60; }
.nfs-submit:hover { background: #219a52; }
.nfs-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Thank you */
#nfs-thankyou { text-align: center; padding: 60px 20px; }
.nfs-thankyou-box { max-width: 480px; margin: 0 auto; }
.nfs-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #27ae60;
    color: #fff;
    font-size: 36px;
    margin-bottom: 24px;
}
.nfs-thankyou-box h2 { font-size: 26px; margin-bottom: 12px; }
.nfs-thankyou-box p { color: #555; font-size: 15px; line-height: 1.7; }

/* Error */
#nfs-error-msg {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 540px) {
    .nfs-scale-wrap { gap: 5px; }
    .nfs-scale-item span { width: 34px; height: 34px; font-size: 12px; }
    .nfs-btn { padding: 11px 18px; font-size: 14px; }
}

/* Egyéb szövegmező */
.nfs-egyeb-input {
    display: none;
    width: 100%;
    margin-top: 8px;
    padding: 10px 14px;
    border: 1.5px solid #c9a8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    background: #faf5ff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.nfs-egyeb-input.nfs-visible {
    display: block;
}
.nfs-egyeb-input:focus {
    outline: none;
    border-color: #8b2fc9;
}

/* Egyéb input hibás állapot */
.nfs-egyeb-input:invalid,
.nfs-egyeb-input[style*="border-color: rgb(231, 76, 60)"] {
    border-color: #e74c3c;
    background: #fff5f5;
}

/* Duplikált e-mail figyelmeztetés */
.nfs-duplicate-msg {
    margin-top: 8px;
    padding: 10px 14px;
    background: #fff5f5;
    border: 1.5px solid #e74c3c;
    border-radius: 8px;
    color: #c0392b;
    font-size: 13.5px;
    line-height: 1.5;
}
