/* ================================================================
   Applicant portal — mirrors the look of mojavez.ir (درگاه ملی مجوزهای کشور).
   Colours were measured on the live site (REA browser capture, 2026-10-24).
   ================================================================ */
:root {
    --mz-primary: #3d5f9c;      /* buttons, label boxes, active tab border */
    --mz-nav-1: #122855;
    --mz-nav-2: #1e4182;
    --mz-nav-3: #3769b9;
    --mz-red: #e33e2b;          /* «ثبت شکایت یا مغایرت» */
    --mz-red-dark: #d9311f;
    --mz-success: #54b886;      /* «مشاهده» */
    --mz-danger: #cf3d6e;       /* «ثبت شکایت» in lists */
    --mz-teal: #17a2b8;         /* detail labels */
    --mz-row-blue: #edf3fd;     /* conditions / costs rows */
    --mz-row-olive: #ebebdb;    /* documents rows */
    --mz-row-pink: #f5ecf0;     /* inquiries rows */
    --mz-thead: #f1f1f1;
    --mz-ink: rgba(0, 0, 0, .85);
}

body.mz-body {
    font-family: IRANSansWeb, Tahoma, Arial, sans-serif;
    font-size: 14px;
    color: var(--mz-ink);
    background-color: #eef1f6;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .85)),
        repeating-linear-gradient(135deg, rgba(61, 95, 156, .05) 0 2px, transparent 2px 22px),
        radial-gradient(1200px 500px at 85% 0%, rgba(55, 105, 185, .18), transparent 60%),
        radial-gradient(900px 500px at 0% 100%, rgba(18, 40, 85, .12), transparent 60%);
    background-attachment: fixed;
}

/* ── Header / navigation ───────────────────────────────────────── */
.mz-nav {
    min-height: 70px;
    background-image:
        linear-gradient(120deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .04) 35%, rgba(0, 0, 0, 0) 60%),
        linear-gradient(120deg, var(--mz-nav-1), var(--mz-nav-2) 45%, var(--mz-nav-3));
    color: #fff;
    position: relative;
    z-index: 40;
}
.mz-nav a, .mz-nav button { color: #fff; }
.mz-nav-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 12px; font-size: 14px; font-weight: 500; border-radius: 6px;
    transition: background-color .15s;
}
.mz-nav-link:hover, .mz-dropdown[open] > summary { background: rgba(255, 255, 255, .12); }
.mz-dropdown { position: relative; }
.mz-dropdown > summary { list-style: none; cursor: pointer; }
.mz-dropdown > summary::-webkit-details-marker { display: none; }
.mz-dropdown-menu {
    position: absolute; top: calc(100% + 6px); right: 0; min-width: 210px;
    background: #fff; border-radius: 8px; padding: 6px 0;
    box-shadow: 0 12px 30px -10px rgba(18, 40, 85, .45);
}
.mz-dropdown-menu.mz-left { right: auto; left: 0; }
.mz-dropdown-menu a, .mz-dropdown-menu button {
    display: block; width: 100%; text-align: right; padding: 8px 16px;
    color: #212529 !important; font-size: 13px;
}
.mz-dropdown-menu a:hover, .mz-dropdown-menu button:hover { background: #f1f4fa; }
.mz-dropdown-menu hr { margin: 6px 0; border-color: #e5e7eb; }
.mz-btn-login {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .85); border-radius: 8px; font-size: 14px;
}
.mz-btn-login:hover { background: rgba(255, 255, 255, .12); }
.mz-emblem {
    width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}

/* ── Page card ─────────────────────────────────────────────────── */
.mz-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .176);
    border-radius: 15px;
    padding: 16px;
}
.mz-page-title { font-size: 24px; font-weight: 500; }
.mz-section-title { font-size: 16px; font-weight: 700; margin: 18px 0 10px; }
.mz-badge-kind {
    display: inline-block; font-size: 12px; padding: 2px 12px; border-radius: 999px;
    border: 1px solid var(--mz-primary); color: var(--mz-primary); font-weight: 500;
}

/* ── Guide info boxes («عنوان رسمی و اداری مجوز» …) ─────────────── */
.mz-info-label { font-weight: 700; color: #212529; padding: 8px 8px 6px; }
.mz-info-value { background: var(--mz-primary); color: #fff; font-weight: 500; padding: 8px 10px; }
.mz-help-box { background: #f1f1f1; padding: 14px 18px; line-height: 2; text-align: justify; height: 100%; }

/* ── Request-type tabs ─────────────────────────────────────────── */
.mz-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid #dee2e6; }
.mz-tab {
    padding: 9px 18px; font-size: 17px; border: 1px solid #e3e6ea; border-bottom: 0;
    border-radius: 6px 6px 0 0; background: #fff; color: #000; cursor: pointer;
}
.mz-tab[aria-selected="true"] { border-bottom: 3px solid var(--mz-primary); }
.mz-tab.mz-tab-off { color: #9aa1a9; }

/* ── Tables ────────────────────────────────────────────────────── */
.mz-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.mz-table thead tr { background: var(--mz-thead); }
.mz-table th { font-weight: 500; text-align: right; padding: 10px 8px; }
.mz-table td { padding: 8px; font-weight: 500; vertical-align: middle; }
.mz-table.mz-nowrap-head th { white-space: nowrap; }
.mz-table.mz-blue tbody td { background: var(--mz-row-blue); }
.mz-table.mz-olive tbody td { background: var(--mz-row-olive); }
.mz-table.mz-pink tbody td { background: var(--mz-row-pink); }
.mz-table.mz-plain tbody tr:nth-child(even) td { background: #fafbfc; }
.mz-table.mz-plain td { font-weight: 400; border-bottom: 1px solid #eef0f3; }
.mz-duration { background: #ecf9f0; padding: 10px 12px; }

/* ── Buttons ───────────────────────────────────────────────────── */
.mz-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px; color: #fff; font-size: 14px; border: 1px solid transparent;
    transition: filter .15s;
}
.mz-btn:hover { filter: brightness(.94); }
.mz-btn:disabled, .mz-btn.mz-disabled { opacity: .55; cursor: not-allowed; filter: none; }
.mz-btn-primary { background: var(--mz-primary); }
.mz-btn-red { background: var(--mz-red); }
.mz-btn-success { background: var(--mz-success); }
.mz-btn-danger { background: var(--mz-danger); }
.mz-btn-info { background: #0dcaf0; color: #000; }
.mz-btn-outline { background: #fff; color: var(--mz-primary); border-color: var(--mz-primary); }
.mz-btn-lg { padding: 9px 16px; font-size: 14px; min-height: 40px; }
.mz-btn-bold { font-weight: 700; font-size: 16px; }

/* ── Forms ─────────────────────────────────────────────────────── */
.mz-input {
    display: block; width: 100%; padding: 8px 14px; border: 1px solid #dee2e6; border-radius: 11px;
    background: #fff; font-size: 13px;
}
.mz-input:focus { outline: none; border-color: var(--mz-primary); box-shadow: 0 0 0 3px rgba(61, 95, 156, .15); }

/* ── Request detail ────────────────────────────────────────────── */
.mz-detail-label { color: var(--mz-teal); font-weight: 700; margin-left: 6px; }
.mz-detail-value { color: #212529; }
.mz-tracking {
    display: block; background: #d4f5ff; border: 2px dashed #fff; color: #262525;
    font-size: 18px; padding: 10px; text-align: center;
}
.mz-stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.mz-step { text-align: center; position: relative; padding-top: 4px; }
.mz-step::before {
    content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 1px; background: #bdbdbd;
}
.mz-step:last-child::before { display: none; } /* RTL: each line runs from a step to the next one on its left */
.mz-step-dot {
    position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; margin: 0 auto 8px;
    background: #9e9e9e; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.mz-step.mz-done .mz-step-dot, .mz-step.mz-active .mz-step-dot { background: #1976d2; }
.mz-step.mz-failed .mz-step-dot { background: #d32f2f; }
.mz-step-label { font-size: 14px; font-weight: 500; color: rgba(0, 0, 0, .6); }
.mz-step.mz-done .mz-step-label, .mz-step.mz-active .mz-step-label { color: rgba(0, 0, 0, .87); }

/* ── Modal ─────────────────────────────────────────────────────── */
.mz-modal-backdrop {
    position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 60;
    display: none; align-items: center; justify-content: center; padding: 16px;
}
.mz-modal-backdrop.mz-open { display: flex; }
.mz-modal { background: #fff; border-radius: 8px; width: 100%; max-width: 800px; max-height: 90vh; display: flex; flex-direction: column; }
.mz-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #dee2e6; font-size: 18px; font-weight: 500; }
.mz-modal-body { padding: 16px 18px; overflow-y: auto; }
.mz-choice {
    display: block; width: 100%; max-width: 300px; margin: 14px auto; padding: 30px 12px; border-radius: 8px;
    background: #f0f0f0; font-weight: 700; font-size: 15px; text-align: center;
}
.mz-choice:hover { background: #e4e8f0; }
.mz-guide-hint { background: #eaf2fd; border-right: 4px solid var(--mz-primary); padding: 10px 14px; line-height: 1.9; }
.mz-chip { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #e8eef9; color: var(--mz-primary); }

/* ── Footer ────────────────────────────────────────────────────── */
.mz-footer { background: #fdfdfd; color: #434343; font-size: 12px; }
.mz-counter { display: inline-block; border: 1px solid #dee2e6; border-radius: 6px; padding: 4px 12px; background: #fff; }

@media print {
    .mz-nav, .mz-footer, .mz-no-print { display: none !important; }
    body.mz-body { background: #fff; }
}
