#crf-wrapper {
    max-width: 640px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: inherit;
    direction: rtl;
    text-align: right;
}

.crf-intro {
    text-align: center;
    margin-bottom: 32px;
}

.crf-intro h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.crf-intro p {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    max-width: 480px;
    margin: 0 auto;
}

.crf-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.crf-progress-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.crf-progress-step.active {
    background: #1a1a2e;
    color: #fff;
}

.crf-progress-step.done {
    background: #2ecc71;
    color: #fff;
}

#crf-form {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.crf-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #1a1a2e;
}

#crf-form select,
#crf-form input[type="text"],
#crf-form input[type="tel"],
#crf-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border: 1.5px solid #e2e2e2;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: #fafafa;
}

#crf-form select:focus,
#crf-form input:focus,
#crf-form textarea:focus {
    outline: none;
    border-color: #1a1a2e;
    background: #fff;
}

#crf-form textarea {
    resize: vertical;
    min-height: 80px;
}

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

.crf-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border: 1.5px solid #e2e2e2;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
}

.crf-options label:hover {
    border-color: #1a1a2e;
    background: #fafafa;
}

.crf-options input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #1a1a2e;
}

.crf-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.crf-actions button {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s ease;
}

.crf-next,
.crf-submit {
    background: #1a1a2e;
    color: #fff;
}

.crf-next:hover,
.crf-submit:hover {
    opacity: 0.88;
}

.crf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.crf-prev {
    background: #f1f1f1;
    color: #333;
    flex: 0 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.crf-prev:hover {
    background: #e6e6e6;
}

#crf-result {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.crf-result-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e8f8ee;
    color: #2ecc71;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

#crf-result h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #1a1a2e;
}

#crf-result p {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 12px;
}

#crf-deposit-amount {
    color: #1a1a2e;
}

.crf-pay-link {
    display: inline-block;
    margin-top: 12px;
    padding: 15px 32px;
    background: #2ecc71;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: opacity 0.2s ease;
}

.crf-pay-link:hover {
    opacity: 0.88;
    color: #fff;
}

#crf-error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6c0;
    border-radius: 10px;
    padding: 13px 16px;
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 480px) {
    #crf-form,
    #crf-result {
        padding: 24px 18px;
    }
    .crf-intro h2 {
        font-size: 23px;
    }
    .crf-actions {
        flex-direction: column;
    }
    .crf-prev {
        order: 2;
    }
}