.pr-wrapper {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    max-width: 820px;
    margin: 0 auto;
    color: #29323c;
}

.pr-header { text-align: center; margin-bottom: 28px; }
.pr-header h2 { font-size: 24px; font-weight: 800; color: #1c3d5a; margin: 0 0 8px; }
.pr-header p { font-size: 14px; color: #6b7280; line-height: 1.9; margin: 0; }

/* Progress */
.pr-progress { margin-bottom: 20px; }
.pr-progress-bar { height: 6px; background: #e5e7eb; border-radius: 100px; overflow: hidden; margin-bottom: 14px; }
.pr-progress-fill { height: 100%; background: linear-gradient(90deg, #2f8f7a, #236457); border-radius: 100px; transition: width .3s ease; }
.pr-progress-steps { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.pr-progress-step {
    width: 30px; height: 30px; border-radius: 50%;
    background: #f1f5f9; color: #94a3b8;
    display: flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 700;
}
.pr-progress-step.active { background: #2f8f7a; color: #fff; }
.pr-progress-step.done { background: #dcfce7; color: #166534; }

/* Draft notice */
.pr-draft-notice {
    background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px;
    padding: 12px 16px; margin-bottom: 20px; font-size: 13.5px; color: #1e40af;
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.pr-draft-notice button {
    background: #fff; border: 1px solid #bfdbfe; color: #1e40af;
    padding: 5px 12px; border-radius: 6px; font-family: inherit; font-size: 12.5px; cursor: pointer;
}

/* Honeypot */
.pr-hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Steps */
.pr-step { display: none; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 26px 24px; margin-bottom: 20px; }
.pr-step.active { display: block; animation: prFadeIn .25s ease; }
@keyframes prFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.pr-step h3 { font-size: 17px; font-weight: 700; color: #1c3d5a; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid #f1f5f9; }

.pr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pr-row:has(> :nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }

.pr-field { margin-bottom: 16px; }
.pr-label { display: block; font-size: 13.5px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.pr-req { color: #dc2626; }

.pr-input, .pr-select, .pr-textarea {
    width: 100%; padding: 10px 14px; border: 1.5px solid #d1d5db; border-radius: 8px;
    font-family: inherit; font-size: 14px; color: #29323c; background: #fff;
    transition: border-color .15s ease;
    box-sizing: border-box;
}
.pr-input:focus, .pr-select:focus, .pr-textarea:focus { outline: none; border-color: #2f8f7a; }
.pr-ltr { direction: ltr; text-align: left; }
.pr-textarea { resize: vertical; min-height: 70px; }

.pr-radio-group { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.pr-radio { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: #374151; cursor: pointer; }
.pr-radio input { accent-color: #2f8f7a; width: 16px; height: 16px; cursor: pointer; }

.pr-conditional { display: none; padding: 14px; background: #f8fafc; border-radius: 10px; margin: 8px 0 16px; border-inline-start: 3px solid #2f8f7a; }

/* Jalali date picker (day/month/year dropdowns) */
.pr-jalali-picker { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; }
.pr-jalali-picker select { padding: 10px 8px; }
.pr-jalali-picker.pr-picker-error select { border-color: #dc2626; }

/* File input */
#pr-resume-input { padding: 9px; }
.pr-file-info { font-size: 12.5px; color: #6b7280; margin-top: 6px; }

/* Repeaters */
.pr-repeater { margin: 18px 0; padding: 16px; background: #fbfaf7; border: 1px dashed #d1d5db; border-radius: 12px; }
.pr-repeater-header { font-size: 14px; font-weight: 700; color: #1c3d5a; margin-bottom: 12px; }
.pr-repeater-row { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; margin-bottom: 12px; position: relative; }
.pr-repeater-row:last-child { margin-bottom: 0; }
.pr-remove-row {
    background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; border-radius: 6px;
    padding: 5px 12px; font-size: 12px; font-family: inherit; cursor: pointer; margin-top: 4px;
}
.pr-add-row {
    background: #eaf6f2; color: #236457; border: 1px solid #bfe3d9; border-radius: 8px;
    padding: 9px 16px; font-size: 13.5px; font-family: inherit; font-weight: 600; cursor: pointer;
}
.pr-add-row:hover, .pr-remove-row:hover { filter: brightness(0.97); }

.pr-recaptcha-notice { margin-top: 14px; font-size: 11px; color: #9ca3af; text-align: center; }
.pr-recaptcha-notice a { color: #6b7280; text-decoration: underline; }

/* Nav */
.pr-nav { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.pr-nav-spacer { flex: 1; }
.pr-btn {
    padding: 12px 26px; border-radius: 10px; font-family: inherit; font-size: 14.5px; font-weight: 700;
    border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.pr-btn-primary { background: linear-gradient(135deg, #2f8f7a, #236457); color: #fff; }
.pr-btn-primary:hover { filter: brightness(1.05); }
.pr-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.pr-btn-secondary { background: #f1f5f9; color: #374151; }
.pr-btn-secondary:hover { background: #e5e7eb; }

.pr-response {
    margin-top: 18px; padding: 16px 20px; border-radius: 12px; font-size: 14px; font-weight: 700; text-align: center;
}
.pr-response.success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.pr-response.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Mobile */
@media (max-width: 640px) {
    .pr-row, .pr-row:has(> :nth-child(3)) { grid-template-columns: 1fr; }
    .pr-step { padding: 20px 16px; }
    .pr-progress-steps { display: none; }
    .pr-btn { padding: 12px 18px; font-size: 13.5px; flex: 1; justify-content: center; }
    .pr-nav-spacer { display: none; }
}
