/* سامانه ثبت شکایات اتحادیه فردیس */
.fardis-wrap {
    direction: rtl;
    text-align: right;
    font-family: Vazirmatn, Vazir, IRANSans, Tahoma, sans-serif;
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 0;
}
.fardis-wrap * { box-sizing: border-box; }

/* استپ‌ها */
.fardis-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    background: #f4f6f8;
    border-radius: 12px;
    padding: 10px;
}
.fardis-step {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 9px 8px;
    border-radius: 8px;
    font-size: 13px;
    color: #8a94a6;
    background: #fff;
    border: 1px solid #e3e8ef;
    transition: all .2s;
}
.fardis-step.active {
    background: #1e6fd9;
    color: #fff;
    border-color: #1e6fd9;
    font-weight: 700;
}
.fardis-step.done {
    background: #e6f4ea;
    color: #1e7e34;
    border-color: #b7e4c7;
}

/* کارت‌ها */
.fardis-card {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(20, 40, 80, .05);
    margin-bottom: 16px;
}
.fardis-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #14213d;
}
.fardis-muted { color: #7c8698; font-size: 13px; }
.fardis-error { color: #d93025; font-size: 12px; display: block; min-height: 16px; }

/* فیلدها */
.fardis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.fardis-field { margin-bottom: 14px; }
.fardis-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 6px;
}
.fardis-field input,
.fardis-field select,
.fardis-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid #d0d7e2;
    border-radius: 9px;
    font-family: inherit;
    font-size: 14px;
    color: #14213d;
    background: #fbfcfe;
    transition: border-color .2s, box-shadow .2s;
}
.fardis-field input:focus,
.fardis-field select:focus,
.fardis-field textarea:focus {
    outline: none;
    border-color: #1e6fd9;
    box-shadow: 0 0 0 3px rgba(30, 111, 217, .12);
    background: #fff;
}
.fardis-field textarea { resize: vertical; }
.fardis-field input[type="file"] { padding: 8px; }

/* دکمه‌ها */
.fardis-btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 9px;
    border: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.fardis-btn-primary {
    background: #1e6fd9;
    color: #fff;
}
.fardis-btn-primary:hover { background: #175bb3; }
.fardis-btn-primary:disabled { background: #9db9dd; cursor: not-allowed; }
.fardis-btn-ghost {
    background: #f0f3f8;
    color: #344054;
    border: 1px solid #d0d7e2;
}
.fardis-btn-ghost:hover { background: #e2e8f0; }
.fardis-btn-sm { padding: 8px 14px; font-size: 13px; }
.fardis-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.fardis-otp-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 12px;
    background: #f6f9ff;
    border-radius: 10px;
    margin-bottom: 12px;
}
.fardis-otp-row .fardis-field { margin-bottom: 0; flex: 1; min-width: 160px; }

/* اسپینر و پیام */
.fardis-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    color: #1e6fd9;
    font-size: 14px;
}
.fardis-spinner {
    width: 18px; height: 18px;
    border: 3px solid #d6e4fb;
    border-top-color: #1e6fd9;
    border-radius: 50%;
    animation: fardis-spin .7s linear infinite;
}
@keyframes fardis-spin { to { transform: rotate(360deg); } }
.fardis-msg {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.8;
}
.fardis-msg.ok { background: #e6f4ea; color: #1e7e34; border: 1px solid #b7e4c7; }
.fardis-msg.err { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; }

/* نتیجه */
.fardis-result-card { text-align: center; padding: 40px 20px; }
.fardis-result-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #e6f4ea;
    color: #1e7e34;
    font-size: 30px;
    line-height: 64px;
    margin: 0 auto 14px;
}
.fardis-tracking {
    font-size: 18px;
    color: #1e6fd9;
    letter-spacing: 1px;
}

/* موبایل */
@media (max-width: 600px) {
    .fardis-grid { grid-template-columns: 1fr; }
    .fardis-card { padding: 16px; }
    .fardis-step { min-width: 90px; font-size: 12px; padding: 7px 4px; }
    .fardis-otp-row { flex-direction: column; align-items: stretch; }
    .fardis-btn { width: 100%; }
}
