﻿@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('/fonts/IRANSansXFaNum.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy-990: #020a14;
    --navy-970: #061426;
    --navy-950: #071b31;
    --navy-900: #08223d;
    --navy-850: #0a2e52;
    --blue-500: #0c8cff;
    --blue-400: #10a8ff;
    --cyan: #05e0b4;
    --gold: #f5c15b;
    --ink: #172235;
    --muted: #66758a;
    --line: #e6ebf3;
    --soft: #f6f8fb;
    --white: #ffffff;
    --danger: #c82020;
    --shadow-strong: 0 28px 80px rgba(0, 9, 24, .34);
    --shadow-soft: 0 18px 44px rgba(0, 18, 44, .12);
}

* {
    box-sizing: border-box;
}

html,
body,
#app {
    min-height: 100%;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    direction: rtl;
    font-family: 'IRANSansXFaNum', 'IRANSans', Tahoma, 'Segoe UI', Arial, sans-serif;
    background: var(--navy-970);
    color: var(--ink);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-variant-numeric: tabular-nums;
}

body,
input,
button,
select,
textarea {
    font-family: 'IRANSansXFaNum', 'IRANSans', Tahoma, 'Segoe UI', Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 8% 20%, rgba(16, 168, 255, .13), transparent 23rem), radial-gradient(circle at 92% 18%, rgba(5, 224, 180, .09), transparent 25rem), linear-gradient(180deg, var(--navy-950), var(--navy-970) 58%, #151719 58%);
}

.main-content {
    position: relative;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .main-content::before,
    .main-content::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: .42;
        background: repeating-radial-gradient(ellipse at 4% 48%, transparent 0 18px, rgba(57, 128, 184, .16) 19px, transparent 20px), repeating-radial-gradient(ellipse at 98% 50%, transparent 0 18px, rgba(57, 128, 184, .12) 19px, transparent 20px);
        mask-image: linear-gradient(90deg, #000, transparent 32%, transparent 68%, #000);
    }

    .main-content::after {
        opacity: .17;
        background-image: linear-gradient(135deg, rgba(255,255,255,.18) 0 1px, transparent 1px 14px);
        mask-image: linear-gradient(180deg, #000, transparent 45%);
    }

.site-header {
    position: relative;
    z-index: 5;
    background: rgba(5, 22, 39, .96);
    color: #fff;
    border-bottom: 1px solid rgba(16, 168, 255, .18);
    box-shadow: 0 14px 38px rgba(0, 10, 24, .22);
}

    .site-header::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--blue-400), var(--cyan), transparent);
    }

.header-brand-row {
    max-width: 1260px;
    min-height: 70px;
    margin: 0 auto;
    padding: 8px 28px;
    display: grid;
    grid-template-columns: 250px 1fr auto;
    align-items: center;
    gap: 24px;
}

.tamin-logo {
    min-height: 58px;
    width: 238px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    border: 1px solid rgba(16, 168, 255, .24);
    border-radius: 18px;
    background: rgba(2, 16, 31, .62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    overflow: hidden;
}

    .tamin-logo img {
        display: block;
        width: auto;
        max-width: 100%;
        /*        max-height: 54px;*/
        max-height: 80px;
        object-fit: contain;
    }

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
    font-weight: 500;
}

    .main-nav a {
        position: relative;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        transition: color .2s ease;
    }

        .main-nav a::after {
            content: "";
            position: absolute;
            right: 0;
            left: 0;
            bottom: 0;
            height: 3px;
            border-radius: 999px;
            background: linear-gradient(90deg, var(--cyan), var(--blue-400));
            transform: scaleX(0);
            transform-origin: center;
            transition: transform .2s ease;
        }

        .main-nav a:hover,
        .main-nav a.active {
            color: #fff;
        }

            .main-nav a:hover::after,
            .main-nav a.active::after {
                transform: scaleX(1);
            }

.top-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.pill {
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid rgba(16, 168, 255, .34);
    background: linear-gradient(135deg, var(--blue-500), #075fb5);
    color: #fff;
    box-shadow: 0 12px 24px rgba(12, 140, 255, .22);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.pill-ghost {
    background: rgba(255, 255, 255, .06);
    box-shadow: none;
}

.pill:hover {
    transform: translateY(-1px);
    border-color: rgba(5, 224, 180, .7);
    box-shadow: 0 16px 28px rgba(5, 224, 180, .16);
}

.home-hero {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    width: calc(100% - 48px);
    margin: 34px auto 26px;
    min-height: 136px;
    padding: 18px 28px;
    border-radius: 28px;
    background: radial-gradient(circle at 18% 50%, rgba(16, 168, 255, .16), transparent 16rem), radial-gradient(circle at 82% 50%, rgba(5, 224, 180, .11), transparent 15rem), linear-gradient(135deg, rgba(2, 18, 36, .86), rgba(5, 27, 48, .74));
    border: 1px solid rgba(16, 168, 255, .24);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .home-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(135deg, var(--blue-400), transparent 35%, var(--cyan));
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

    .home-hero img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 22px;
        object-fit: cover;
    }

.home-hero-clean::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .05);
    background: linear-gradient(135deg, rgba(255, 255, 255, .07), transparent 34%), radial-gradient(circle at 50% 120%, rgba(16, 168, 255, .16), transparent 20rem);
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.home-hero-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 500;
}

.home-hero-content h1 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.home-hero-content p {
    margin: 8px 0 0;
    color: rgba(231, 241, 255, .74);
    font-size: 14px;
    line-height: 1.9;
}

.service-grid {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    width: calc(100% - 48px);
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    position: relative;
    min-height: 132px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    direction: rtl;
    color: #fff;
    background: rgba(2, 13, 28, .78);
    border: 1px solid rgba(16, 168, 255, .20);
    border-radius: 22px;
    box-shadow: 0 22px 52px rgba(0, 10, 24, .25);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

    .service-card::after {
        content: "";
        position: absolute;
        inset-inline-end: -55px;
        top: -55px;
        width: 145px;
        height: 145px;
        border-radius: 999px;
        background: radial-gradient(circle, rgba(16, 168, 255, .22), transparent 68%);
    }

    .service-card:hover {
        transform: translateY(-3px);
        border-color: rgba(5, 224, 180, .42);
        box-shadow: 0 30px 62px rgba(0, 10, 24, .34);
    }

.service-logo {
    width: 78px;
    min-width: 78px;
    height: auto;
    order: 0;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .22));
}

.service-card div {
    text-align: right;
    order: 1;
}

.service-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.service-card p {
    margin: 0;
    color: rgba(231, 241, 255, .78);
    font-size: 14px;
    line-height: 1.9;
}

.tabs-strip {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    width: calc(100% - 48px);
    min-height: 58px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 42px;
    padding: 0 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
}

    .tabs-strip a {
        height: 56px;
        display: inline-flex;
        align-items: center;
        border-bottom: 3px solid transparent;
    }

        .tabs-strip a.active {
            color: #fff;
            border-bottom-color: var(--cyan);
            font-weight: 700;
        }

.form-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 48px 24px 56px;
    display: flex;
    justify-content: center;
}

.form-dialog {
    width: min(1080px, 100%);
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(255, 255, 255, .75);
}

    .form-dialog::before {
        content: "";
        display: block;
        height: 5px;
        background: linear-gradient(90deg, var(--blue-400), var(--cyan));
    }

.form-dialog-small {
    width: min(780px, 100%);
}

.form-dialog-header {
    position: relative;
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 26px 34px 22px;
    background: radial-gradient(circle at 12% 24%, rgba(16, 168, 255, .08), transparent 14rem), linear-gradient(180deg, #fff, #fbfcff);
    border-bottom: 1px solid #edf1f6;
}

.dialog-close {
    position: absolute;
    inset-inline-start: 22px;
    top: 20px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f4f8;
    color: #79879b;
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

    .dialog-close:hover {
        background: #e7edf5;
        color: var(--navy-900);
        transform: rotate(90deg);
    }

.dialog-title-block {
    width: 100%;
    text-align: right;
    padding-inline-start: 58px;
}

.dialog-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--blue-500);
    font-size: 13px;
    font-weight: 700;
}

    .dialog-kicker::before {
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--blue-400);
        box-shadow: 0 0 0 4px rgba(16, 168, 255, .14);
    }

.form-dialog-header h1,
.form-hero h1 {
    margin: 0;
    color: #151d2b;
    font-size: 24px;
    font-weight: 700;
}

.form-dialog-header p,
.form-hero p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 2;
    font-size: 14px;
}

.form-hero {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 32px auto 18px;
    padding: 26px 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

    .form-hero.small {
        max-width: 780px;
    }

.portal-form,
.success-box,
.tracking-card {
    max-width: 1040px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
}

.form-dialog .portal-form,
.form-dialog .success-box,
.form-dialog .tracking-card {
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.form-section {
    position: relative;
    border: 1px solid #e8edf5;
    border-radius: 22px;
    padding: 26px 26px 24px;
    margin: 0 0 22px;
    background: linear-gradient(180deg, #fff, #fdfdff);
}

    .form-section legend {
        padding: 0 12px;
        color: #212b3d;
        font-weight: 700;
        font-size: 15px;
    }

        .form-section legend::before {
            content: "";
            width: 8px;
            height: 8px;
            display: inline-block;
            margin-inline-end: 8px;
            border-radius: 50%;
            background: var(--blue-400);
            box-shadow: 0 0 0 4px rgba(16, 168, 255, .12);
        }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

    .form-field.wide {
        grid-column: 1 / -1;
    }

    .form-field label,
    .choice-label {
        font-size: 13px;
        color: #4b586b;
        font-weight: 700;
    }

        .form-field span,
        .choice-label span {
            color: var(--danger);
        }

.form-control {
    width: 100%;
    min-height: 50px;
    border: 1px solid #e1e6ee;
    border-radius: 15px;
    padding: 12px 16px;
    background: #fff;
    color: var(--ink);
    outline: none;
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(12, 25, 44, .02);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

    .form-control::placeholder {
        color: #a7b0bf;
    }

    .form-control:focus {
        border-color: var(--blue-400);
        box-shadow: 0 0 0 4px rgba(16, 168, 255, .12);
    }

select.form-control,
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    direction: rtl;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237b8798' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-position: left 18px center;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    padding-inline-start: 48px;
    padding-inline-end: 16px;
}

    select.form-control::-ms-expand,
    select::-ms-expand {
        display: none;
    }

.textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.9;
}

.choice-row {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
}

    .choice-row:last-child {
        margin-bottom: 0;
    }

.radio-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

    .radio-group label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 42px;
        padding: 10px 14px;
        color: #24334d;
        background: #f8fafc;
        border: 1px solid #e6ebf3;
        border-radius: 14px;
        white-space: nowrap;
    }

    .radio-group input {
        accent-color: var(--blue-500);
    }

.upload-box {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    border: 2px dashed #d3ddef;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff, #f6f8ff);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

    .upload-box::after {
        content: "+";
        width: 54px;
        height: 54px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 18px;
        background: #f1edff;
        color: var(--blue-500);
        font-size: 24px;
        order: -1;
    }

    .upload-box:hover {
        border-color: var(--blue-400);
        background: #fbfdff;
        transform: translateY(-1px);
    }

.upload-title {
    color: #202b3e;
    font-size: 15px;
    font-weight: 700;
}

.upload-help {
    color: #68778a;
    font-size: 13px;
    font-weight: 400;
}

.visually-hidden-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.selected-file {
    color: var(--blue-500);
    font-weight: 700;
}

.form-actions,
.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
}

.btn {
    border: 0;
    border-radius: 15px;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    box-sizing: border-box;
    line-height: 1.45;
    white-space: nowrap;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

    .btn:disabled {
        opacity: .65;
        cursor: not-allowed;
    }

.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), #075fb5);
    color: #fff;
    box-shadow: 0 14px 28px rgba(12, 140, 255, .22);
}

.btn-outline {
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #334258;
}

    .btn-primary:hover,
    .btn-outline:hover {
        transform: translateY(-1px);
    }

.btn-primary:hover {
    box-shadow: 0 18px 32px rgba(12, 140, 255, .28);
}

.btn-outline:hover {
    border-color: #c8d3e1;
    background: #f9fbfd;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -.125em;
    border: .25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: .75s linear infinite spinner-border;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: .16em;
}

.loading-button {
    gap: 8px;
    min-width: 220px;
    white-space: nowrap;
    overflow: visible;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, opacity .18s ease;
}

    .loading-button.is-loading {
        cursor: progress;
    }

        .loading-button.is-loading .spinner-border {
            flex: 0 0 auto;
        }

.tracking-search .loading-button {
    min-width: 128px;
}

.success-box h2,
.tracking-result h2 {
    margin: 0 0 12px;
    color: var(--navy-900);
    font-weight: 700;
}

.success-box p {
    color: var(--muted);
    line-height: 2;
}

.success-box strong {
    display: inline-flex;
    direction: ltr;
    margin: 8px 0 22px;
    padding: 12px 18px;
    border-radius: 14px;
    background: #eff8ff;
    color: var(--blue-500);
    border: 1px solid #d3eaff;
    font-size: 20px;
}

.tracking-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 18px;
}

.tracking-result {
    padding-top: 10px;
    border-top: 1px solid #edf1f6;
}

    .tracking-result dl {
        display: grid;
        grid-template-columns: 140px 1fr;
        gap: 12px 18px;
        margin: 0 0 18px;
    }

    .tracking-result dt {
        color: var(--muted);
        font-weight: 700;
    }

    .tracking-result dd {
        margin: 0;
        color: #243047;
    }

.status-badge {
    display: inline-flex;
    padding: 7px 13px;
    border-radius: 999px;
    background: #edf9ff;
    color: var(--blue-500);
    border: 1px solid #cfeaff;
    font-weight: 700;
}

.alert {
    max-width: 1040px;
    margin: 0 auto 16px;
    padding: 14px 18px;
    border-radius: 14px;
    line-height: 1.8;
}

.alert-error {
    background: #fff1f1;
    border: 1px solid #ffcaca;
    color: #8a1f1f;
}

.validation-message,
.validation-errors {
    color: var(--danger);
    font-size: 13px;
}

.validation-errors {
    margin: 0 0 16px;
    line-height: 1.9;
}

.site-footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    flex-shrink: 0;
    min-height: 54px;
    padding: 14px 24px;
    background: #151719;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.loading-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    color: #fff;
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        left: .75rem;
        top: .5rem;
    }

.not-found-actions {
    margin-top: 18px;
}

@media (max-width: 960px) {
    .header-brand-row {
        grid-template-columns: 1fr;
        padding: 14px 18px 18px;
        gap: 12px;
    }

    .tamin-logo,
    .top-actions {
        justify-self: center;
        justify-content: center;
    }

    .tamin-logo {
        width: min(238px, 100%);
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 18px;
        order: 3;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .choice-row {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-wrap: wrap;
    }

    .tabs-strip {
        gap: 18px;
        overflow-x: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .form-stage {
        padding: 24px 12px 34px;
    }

    .form-dialog {
        border-radius: 24px;
    }

    .form-dialog-header {
        padding: 24px 22px 18px;
    }

    .dialog-title-block {
        padding-inline-start: 44px;
    }

    .form-dialog-header h1 {
        font-size: 20px;
    }

    .portal-form,
    .success-box,
    .tracking-card {
        padding: 22px;
    }

    .form-section {
        padding: 22px 18px 20px;
        border-radius: 18px;
    }

    .tracking-search {
        grid-template-columns: 1fr;
    }

    .tracking-result dl {
        grid-template-columns: 1fr;
    }

    .form-actions .loading-button,
    .tracking-search .loading-button {
        width: 100%;
    }

    .service-card {
        justify-content: flex-start;
        padding: 18px;
        gap: 18px;
    }

    .service-logo {
        width: 70px;
        min-width: 70px;
    }

    .home-hero,
    .service-grid,
    .tabs-strip {
        width: calc(100% - 24px);
    }

    .home-hero {
        min-height: 124px;
        padding: 18px;
    }

    .home-hero-content h1 {
        font-size: 24px;
    }

    .site-footer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

.searchable-select {
    position: relative;
    width: 100%;
}

    .searchable-select span {
        color: inherit;
    }

.searchable-select-trigger {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e1e6ee;
    border-radius: 15px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    color: var(--ink);
    outline: none;
    cursor: pointer;
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(12, 25, 44, .02);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, transform .18s ease;
}

    .searchable-select-trigger:hover,
    .searchable-select.is-open .searchable-select-trigger {
        border-color: var(--blue-400);
        box-shadow: 0 0 0 4px rgba(16, 168, 255, .10);
    }

    .searchable-select-trigger:focus-visible {
        border-color: var(--blue-400);
        box-shadow: 0 0 0 4px rgba(16, 168, 255, .14);
    }

.searchable-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

    .searchable-select-value.is-placeholder {
        color: #a7b0bf;
    }

.searchable-select-caret {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237b8798' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform .18s ease;
}

.searchable-select.is-open .searchable-select-caret {
    transform: rotate(180deg);
}

.searchable-select-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 40;
    padding: 10px;
    border: 1px solid rgba(16, 168, 255, .18);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 42px rgba(0, 18, 44, .18);
}

.searchable-select-search {
    width: 100%;
    min-height: 42px;
    border: 1px solid #e1e6ee;
    border-radius: 13px;
    padding: 10px 14px;
    margin-bottom: 8px;
    color: var(--ink);
    background: #f8fafc;
    outline: none;
    font-size: 13px;
}

    .searchable-select-search:focus {
        border-color: var(--blue-400);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(16, 168, 255, .10);
    }

.searchable-select-list {
    max-height: 238px;
    overflow-y: auto;
    display: grid;
    gap: 6px;
    padding-left: 3px;
}

.searchable-select-option,
.searchable-select-empty {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: right;
    color: #24334d;
    background: transparent;
    font-size: 13px;
}

.searchable-select-option {
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

    .searchable-select-option:hover,
    .searchable-select-option.is-selected {
        color: #05233f;
        background: linear-gradient(135deg, rgba(16, 168, 255, .12), rgba(5, 224, 180, .10));
    }

    .searchable-select-option.is-clear {
        color: var(--danger);
        background: rgba(200, 32, 32, .06);
    }

.searchable-select-empty {
    color: #7b8798;
    background: #f8fafc;
}

.searchable-select.is-disabled .searchable-select-trigger,
.searchable-select-trigger:disabled {
    cursor: not-allowed;
    color: #94a0b2;
    background: #f4f7fb;
    box-shadow: none;
}

/* Home banner */
.home-hero-banner {
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: var(--shadow-strong);
}

    .home-hero-banner::before,
    .home-hero-banner::after {
        display: none;
    }

    .home-hero-banner img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 28px;
        object-fit: cover;
    }

.service-grid.single-service {
    grid-template-columns: minmax(0, 1fr);
}

    .service-grid.single-service .service-card {
        width: min(560px, 100%);
        justify-self: start;
    }

.selected-files {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    color: var(--blue-500);
    font-size: 13px;
    font-weight: 700;
    line-height: 2;
}

.selected-files li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.selected-file-remove {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff1f2;
    color: var(--danger);
    font: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.selected-file-remove:hover {
    background: #ffe4e6;
}

.field-error {
    color: var(--danger);
    font-weight: 700;
}

.alert-info {
    background: #eff8ff;
    border-color: #d3eaff;
    color: var(--blue-500);
}

.faq-card {
    padding: 30px;
    background: #fff;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid #e8edf5;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #fdfdff);
    overflow: hidden;
}

    .faq-item summary {
        cursor: pointer;
        padding: 18px 20px;
        color: #202b3e;
        font-weight: 800;
        list-style: none;
    }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item summary::before {
            content: "+";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            margin-inline-end: 10px;
            border-radius: 8px;
            background: #eff8ff;
            color: var(--blue-500);
        }

    .faq-item[open] summary::before {
        content: "−";
    }

    .faq-item p {
        margin: 0;
        padding: 0 20px 20px;
        color: var(--muted);
        line-height: 2.1;
    }

/* Persian Blazor Server reconnect UI */
#components-reconnect-modal.reconnect-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 10, 20, .72);
    backdrop-filter: blur(6px);
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

.reconnect-dialog {
    width: min(420px, 100%);
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    color: var(--ink);
    text-align: center;
    box-shadow: var(--shadow-strong);
}

    .reconnect-dialog strong {
        display: block;
        color: var(--navy-900);
        font-size: 18px;
        margin-bottom: 10px;
    }

    .reconnect-dialog p {
        margin: 0 0 18px;
        color: var(--muted);
        line-height: 2;
    }

.reconnect-state,
.reconnect-refresh {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .reconnect-show,
#components-reconnect-modal.components-reconnect-failed .reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected .reconnect-rejected,
#components-reconnect-modal.components-reconnect-failed .reconnect-refresh,
#components-reconnect-modal.components-reconnect-rejected .reconnect-refresh {
    display: block;
}

#components-reconnect-modal.components-reconnect-show .reconnect-dialog::before {
    content: "";
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 50%;
    border: 4px solid #d3eaff;
    border-top-color: var(--blue-500);
    animation: spinner-border .75s linear infinite;
}

/* Single service card: keep the complaint icon fixed on the right side. */
.service-grid.single-service .service-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: stretch;
    text-align: right;
}

.service-grid.single-service .service-logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
}

.service-grid.single-service .service-card div {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    text-align: right;
}




/* ===== نسخه ۲: کد رهگیری، پاسخ، تاریخچه و فوتر سه‌ستونه ===== */
.tracking-code-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin: 16px 0 22px;
    padding: 18px 20px;
    border: 1px solid #a7e3bd;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0fff5, #e8f8ee);
    box-shadow: 0 12px 28px rgba(21, 128, 61, .10);
}

.tracking-code-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tracking-code-label {
    color: #3f6c4c;
    font-size: 13px;
    font-weight: 700;
}

.success-box .tracking-code-value,
.tracking-code-value {
    display: inline-flex;
    margin: 0;
    padding: 0;
    direction: ltr;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #12813b;
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.3;
}

.btn-copy-code {
    min-height: 44px;
    padding: 10px 16px;
    gap: 8px;
    border: 1px solid #16863f;
    background: #16863f;
    color: #fff;
    box-shadow: 0 10px 22px rgba(21, 128, 61, .18);
}

    .btn-copy-code:hover {
        transform: translateY(-1px);
        background: #0f7133;
        border-color: #0f7133;
    }

.copy-icon {
    direction: ltr;
    font-size: 19px;
    line-height: 1;
}

.copy-feedback {
    margin: -12px 2px 20px;
    color: #147a39;
    font-size: 13px;
    font-weight: 700;
}

.tracking-dialog {
    width: min(880px, 100%);
}

.tracking-result {
    padding-top: 22px;
}

.tracking-result-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.tracking-result-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--blue-500);
    font-size: 12px;
    font-weight: 700;
}

.tracking-result-heading h2 {
    margin-bottom: 0;
}

.tracking-summary {
    padding: 20px;
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #fbfcfe;
}

.tracking-code-inline {
    direction: ltr;
    text-align: right;
    color: #147a39 !important;
    font-weight: 800;
    letter-spacing: .04em;
}

.tracking-response,
.tracking-history {
    margin-top: 22px;
    padding: 22px;
    border-radius: 20px;
}

.tracking-response {
    border: 1px solid #b8e6c7;
    background: linear-gradient(135deg, #f2fff6, #ecfaf1);
}

.tracking-history {
    position: relative;
    border: 1px solid #dfe8f3;
    background: radial-gradient(circle at 100% 0, rgba(12, 140, 255, .07), transparent 260px), linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 16px 38px rgba(8, 34, 61, .07);
    overflow: hidden;
}

    .tracking-history .tracking-section-title {
        margin-bottom: 22px;
        padding-bottom: 18px;
        border-bottom: 1px dashed #dce5f0;
    }

.tracking-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

    .tracking-section-title h3 {
        margin: 0;
        color: #172235;
        font-size: 17px;
        font-weight: 800;
    }

    .tracking-section-title time,
    .tracking-section-title span:not(.tracking-section-icon) {
        display: block;
        margin-top: 4px;
        color: #718096;
        font-size: 12px;
    }

.tracking-section-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #dff7e7;
    color: #147a39;
    font-size: 19px;
    font-weight: 800;
}

    .tracking-section-icon.history-icon {
        background: #e8f4ff;
        color: var(--blue-500);
    }

.tracking-response p {
    margin: 0;
    color: #24452f;
    line-height: 2.05;
    white-space: pre-line;
}

.status-timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 2px 0 0;
}

    .status-timeline > li {
        position: relative;
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 14px;
        padding-bottom: 18px;
    }

        .status-timeline > li:last-child {
            padding-bottom: 0;
        }

        .status-timeline > li:not(:last-child)::before {
            content: "";
            position: absolute;
            z-index: 0;
            top: 42px;
            right: 22px;
            bottom: -4px;
            width: 2px;
            border-radius: 999px;
            background: #dbe4ee;
        }

        .status-timeline > li.is-complete:not(:last-child)::before {
            background: linear-gradient(180deg, #168b48, #80d1a0);
        }

.timeline-marker {
    position: relative;
    z-index: 2;
    width: 46px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

    .timeline-marker span {
        position: relative;
        width: 26px;
        height: 26px;
        margin-top: 17px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 3px solid #c1ccd9;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 0 0 5px #f3f6fa, 0 4px 12px rgba(22, 43, 69, .08);
    }

.is-complete .timeline-marker span {
    border-color: #168b48;
    background: #168b48;
    box-shadow: 0 0 0 5px #e1f5e9, 0 5px 14px rgba(22, 139, 72, .20);
}

    .is-complete .timeline-marker span::after {
        content: "✓";
        color: #ffffff;
        font-family: Arial, sans-serif;
        font-size: 14px;
        font-weight: 800;
        line-height: 1;
    }

.is-current .timeline-marker span {
    border-color: var(--blue-500);
    background: var(--blue-500);
    box-shadow: 0 0 0 6px rgba(12, 140, 255, .13), 0 6px 18px rgba(12, 140, 255, .26);
    animation: timeline-pulse 2s ease-in-out infinite;
}

    .is-current .timeline-marker span::after {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #ffffff;
    }

@keyframes timeline-pulse {
    0%, 100% {
        box-shadow: 0 0 0 5px rgba(12, 140, 255, .12), 0 6px 18px rgba(12, 140, 255, .22);
    }

    50% {
        box-shadow: 0 0 0 9px rgba(12, 140, 255, .06), 0 8px 22px rgba(12, 140, 255, .30);
    }
}

.timeline-content {
    position: relative;
    min-width: 0;
    padding: 17px 19px 16px;
    border: 1px solid #e2e9f2;
    border-radius: 17px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 22px rgba(14, 42, 70, .055);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

    .timeline-content::before {
        content: "";
        position: absolute;
        top: 22px;
        right: -7px;
        width: 12px;
        height: 12px;
        border-right: 1px solid #e2e9f2;
        border-bottom: 1px solid #e2e9f2;
        background: #ffffff;
        transform: rotate(-45deg);
    }

.status-timeline > li:hover .timeline-content {
    transform: translateY(-2px);
    border-color: #cbdbea;
    box-shadow: 0 13px 28px rgba(14, 42, 70, .09);
}

.status-timeline > li.is-current .timeline-content {
    border-color: #a8d7ff;
    background: linear-gradient(135deg, rgba(12, 140, 255, .075), rgba(255, 255, 255, .98) 55%);
    box-shadow: 0 14px 30px rgba(12, 140, 255, .10), inset 4px 0 0 var(--blue-500);
}

    .status-timeline > li.is-current .timeline-content::before {
        border-color: #a8d7ff;
        background: #f3f9ff;
    }

.timeline-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 18px;
}

    .timeline-heading strong {
        color: #27344a;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.8;
    }

.is-current .timeline-heading strong {
    color: #087cdc;
}

.timeline-heading time {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    padding: 5px 10px;
    border: 1px solid #e1e8f0;
    border-radius: 9px;
    background: #f4f7fa;
    color: #66758a;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.is-current .timeline-heading time {
    border-color: #c9e7ff;
    background: #eaf6ff;
    color: #087cdc;
}

.timeline-time-empty {
    direction: rtl !important;
    color: #9aa5b3 !important;
}

.timeline-content p {
    position: relative;
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid #eef2f6;
    color: #66758a;
    font-size: 13px;
    line-height: 2;
}

@media (prefers-reduced-motion: reduce) {
    .is-current .timeline-marker span {
        animation: none;
    }

    .timeline-content {
        transition: none;
    }
}

.site-footer {
    display: block;
    min-height: 0;
    margin-top: auto;
    padding: 0;
    background: #071d37;
    color: rgba(255, 255, 255, .82);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-content {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 38px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 1.35fr);
    gap: 44px;
    align-items: start;
}

.footer-column h2 {
    position: relative;
    margin: 0 0 24px;
    padding-bottom: 14px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
}

    .footer-column h2::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 3px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .9);
    }

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 15px;
}

.footer-column a {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255, 255, 255, .84);
    line-height: 1.9;
    transition: color .18s ease, transform .18s ease;
}

    .footer-column a::before {
        content: "↗";
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 4px;
        border-radius: 50%;
        background: #138d44;
        color: #fff;
        font-size: 11px;
        line-height: 1;
    }

.footer-quick-links a::before {
    content: "‹";
    font-size: 17px;
}

.footer-column a:hover {
    color: #fff;
    transform: translateX(-2px);
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    min-height: 120px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

    .footer-logo img {
        display: block;
        width: min(300px, 100%);
        max-height: 150px;
        object-fit: contain;
    }

.footer-brand p {
    max-width: 520px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
    line-height: 2.25;
}

.footer-bottom {
    min-height: 58px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 28px;
    background: #fff;
    color: #171717;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

@media (max-width: 640px) {
    .tracking-code-panel,
    .tracking-result-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-copy-code {
        width: 100%;
    }

    .tracking-response,
    .tracking-summary {
        padding: 18px;
    }

    .tracking-history {
        padding: 18px 14px;
        border-radius: 18px;
    }

        .tracking-history .tracking-section-title {
            margin-bottom: 18px;
            padding-bottom: 15px;
        }

    .status-timeline > li {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding-bottom: 14px;
    }

        .status-timeline > li:not(:last-child)::before {
            top: 39px;
            right: 18px;
        }

    .timeline-marker {
        width: 38px;
    }

        .timeline-marker span {
            width: 23px;
            height: 23px;
            margin-top: 16px;
        }

    .is-complete .timeline-marker span::after {
        font-size: 12px;
    }

    .timeline-heading {
        grid-template-columns: 1fr;
        gap: 8px;
    }

        .timeline-heading time {
            width: max-content;
            max-width: 100%;
        }

    .timeline-content {
        padding: 15px;
        border-radius: 15px;
    }

        .timeline-content::before {
            top: 21px;
        }

    .footer-content {
        width: calc(100% - 36px);
        padding: 36px 0 30px;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand,
    .footer-column {
        grid-column: auto;
    }

    .footer-brand {
        grid-row: 1;
    }

    .footer-bottom {
        padding: 16px 18px;
    }
}


.tracking-code-panel-wrapper {
    width: 100%;
}

.btn-copy-code.is-copied {
    background: #0f7133;
    border-color: #0f7133;
}

.copy-feedback[hidden] {
    display: none !important;
}

.footer-designer {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .footer-designer a {
        color: #14883b;
        font-weight: 700;
        text-decoration: none;
    }
        /*    .footer-designer a {
        color: inherit;
        font-weight: 700;
        text-decoration: none;
        transition: opacity 0.2s ease;
    }*/

        .footer-designer a:hover {
            text-decoration: underline;
            opacity: 0.8;
        }



.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid #d9dee7;
    border-radius: 0.75rem;
    background: #fff;
}

    .checkbox-group label {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        cursor: pointer;
    }

    .checkbox-group input[type="checkbox"] {
        width: 1.1rem;
        height: 1.1rem;
    }

.choice-label.confidentiality-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.choice-note {
    color: #68778a;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.8;
}

.suggestion-appreciation-note {
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #d3eaff;
    border-radius: 12px;
    background: #eff8ff;
    color: var(--blue-500);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.9;
}

.request-type-group {
    flex-wrap: wrap;
}
