.zbf-wrapper {
    font-family: Tahoma, "Vazirmatn", sans-serif;
    direction: rtl;
    max-width: 640px;
    margin: 30px auto;
}

.zbf-form-box {
    background: #ffffff;
    border: 1px solid #f1d3d3;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(200, 0, 0, 0.08);
    overflow: hidden;
}

.zbf-header {
    background: linear-gradient(135deg, #c0141f, #8f0f17);
    color: #fff;
    padding: 28px 24px;
    text-align: center;
}

.zbf-header h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
}

.zbf-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.zbf-progress {
    background: #f5e6e7;
    height: 6px;
    width: 100%;
}

.zbf-progress-bar {
    background: #c0141f;
    height: 100%;
    width: 25%;
    transition: width 0.35s ease;
}

.zbf-steps-labels {
    display: flex;
    justify-content: space-between;
    padding: 14px 24px 0;
    font-size: 12px;
    color: #999;
}

.zbf-step-label {
    flex: 1;
    text-align: center;
    position: relative;
}

.zbf-step-label.active {
    color: #c0141f;
    font-weight: bold;
}

.zbf-step-label.done {
    color: #8f0f17;
}

#zbf-form {
    padding: 20px 24px 24px;
}

.zbf-field {
    margin-bottom: 18px;
}

.zbf-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.zbf-required {
    color: #c0141f;
}

.zbf-field input[type="text"],
.zbf-field input[type="number"],
.zbf-field input[type="tel"],
.zbf-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.zbf-field input:focus,
.zbf-field select:focus {
    outline: none;
    border-color: #c0141f;
    box-shadow: 0 0 0 3px rgba(192, 20, 31, 0.12);
    background: #fff;
}

.zbf-radio-group,
.zbf-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zbf-radio,
.zbf-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    flex: 1 1 45%;
}

.zbf-radio input,
.zbf-checkbox input {
    accent-color: #c0141f;
}

.zbf-error-msg {
    color: #c0141f;
    font-size: 13px;
    min-height: 18px;
    margin-bottom: 10px;
}

.zbf-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.zbf-btn {
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.zbf-btn:active {
    transform: scale(0.98);
}

.zbf-btn-next,
.zbf-btn-submit {
    background: #c0141f;
    color: #fff;
    margin-right: auto;
}

.zbf-btn-next:hover,
.zbf-btn-submit:hover {
    opacity: 0.9;
}

.zbf-btn-prev {
    background: #f1e2e2;
    color: #8f0f17;
}

.zbf-btn-prev:hover {
    background: #eccfcf;
}

.zbf-success-msg {
    text-align: center;
    padding: 40px 24px;
}

.zbf-success-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: #c0141f;
    color: #fff;
    font-size: 28px;
    margin: 0 auto 16px;
}

.zbf-success-msg h3 {
    margin: 0 0 8px;
    color: #333;
}

.zbf-success-msg p {
    color: #777;
    margin: 0;
}

@media (max-width: 480px) {
    .zbf-steps-labels { display: none; }
    .zbf-radio, .zbf-checkbox { flex: 1 1 100%; }
}
