/* Yadegar Exit Feedback */
.yexitfb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    direction: rtl;
    font-family: inherit;
    padding: 20px;
    animation: yexitfb-fade 0.25s ease;
}

.yexitfb-overlay.is-open {
    display: flex;
}

@keyframes yexitfb-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes yexitfb-slide {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.yexitfb-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    padding: 28px 28px 22px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    animation: yexitfb-slide 0.3s ease;
}

.yexitfb-close {
    position: absolute;
    top: 12px;
    left: 14px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.yexitfb-close:hover {
    color: #333;
    background: #f5f5f5;
}

.yexitfb-modal h2 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #222;
    font-weight: 700;
}

.yexitfb-modal > .yexitfb-step > p {
    margin: 0 0 18px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.yexitfb-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.yexitfb-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
    color: #333;
}

.yexitfb-option:hover {
    border-color: #c0c0c0;
    background: #fafafa;
}

.yexitfb-option input[type="radio"] {
    margin: 0;
    accent-color: #d4a574;
}

.yexitfb-option input[type="radio"]:checked + span {
    font-weight: 600;
}

.yexitfb-option:has(input:checked) {
    border-color: #d4a574;
    background: #fdf8f2;
}

#yexitfb-comment {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 70px;
    box-sizing: border-box;
    direction: rtl;
}

#yexitfb-comment:focus {
    outline: none;
    border-color: #d4a574;
}

.yexitfb-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: space-between;
}

.yexitfb-skip,
.yexitfb-submit,
.yexitfb-close-final {
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.15s;
}

.yexitfb-skip {
    background: #f0f0f0;
    color: #666;
}

.yexitfb-skip:hover {
    background: #e0e0e0;
}

.yexitfb-submit {
    background: #d4a574;
    color: #fff;
    flex: 1;
}

.yexitfb-submit:hover:not(:disabled) {
    background: #c19764;
}

.yexitfb-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.yexitfb-step-2 {
    text-align: center;
    padding: 10px 0;
}

.yexitfb-success-icon {
    width: 60px;
    height: 60px;
    background: #4caf50;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 12px;
}

.yexitfb-close-final {
    background: #d4a574;
    color: #fff;
    margin-top: 8px;
}

.yexitfb-close-final:hover {
    background: #c19764;
}

.yexitfb-coupon-box {
    background: linear-gradient(135deg, #fdf8f2 0%, #f9eed8 100%);
    border: 2px dashed #d4a574;
    border-radius: 10px;
    padding: 20px 18px;
    margin: 18px 0;
    text-align: center;
}
.yexitfb-coupon-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
.yexitfb-coupon-code {
    font-size: 24px;
    font-weight: 800;
    color: #d4a574;
    letter-spacing: 3px;
    font-family: monospace;
    margin-bottom: 12px;
}
.yexitfb-copy-coupon {
    background: #d4a574;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    font-weight: 600;
}
.yexitfb-copy-coupon:hover {
    background: #c19764;
}

@media (max-width: 520px) {
    .yexitfb-modal {
        padding: 22px 20px 18px;
    }
    .yexitfb-modal h2 {
        font-size: 18px;
    }
}
