@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    direction: rtl;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background: #eef2f5;
    color: #111;
}

/* =========================
   هدر سایت
========================= */

.site-header {
    width: 100%;
    height: 165px;
    background: #eef2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    box-sizing: border-box;
    border-bottom: 2px solid #e5e5e5;
    direction: rtl;
    position: relative;

}


.header-brand {
    position: absolute;
    right: 50px;
    padding-top: 15px;
    display: flex;
    align-items: center;
}

.company-logo {
    width: 125px;
    height: 125px;
    object-fit: contain;
    display: block;
}

.company-name {
    font-size: 22px;
    font-weight: bold;
    color: #000000;
    white-space: nowrap;
}

.container {
    width: 100%;
    min-height: 100vh;
    padding: 20px 22px 100px;
    position: relative;
}

/* =========================
           پیام‌ها
        ========================= */

.top-message {
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 5px;
    font-weight: bolder;
    font-size: 18px;
}

.info-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1767b8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.warning-message {
    width: 100%;
    min-height: 52px;
    background: #fbf3d5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    margin-bottom: 12px;
    padding: 10px 15px;
}

.warning-icon {
    width: 22px;
    height: 22px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.refresh-icon {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-right: 5px;
}

.video-message {
    width: 100%;
    min-height: 52px;
    background: #dbeafe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    margin-bottom: 20px;
    padding: 10px 15px;
}

.video-message a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.video-message a:hover {
    text-decoration: underline;
}

/* =========================
           پیام موفقیت
        ========================= */

.success-message {
    display: none;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #dcfce7;
    border: 1px solid #22c55e;
    color: #15803d;
    font-weight: bold;
    font-size: 16px;
    border-radius: 8px;
    text-align: center;
}

/* =========================
           فرم
        ========================= */

.form {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    direction: rtl;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-box {
    width: 100%;
    height: 54px;
    border: 1px solid #b4bdc8;
    border-radius: 15px;
    position: relative;
    background: transparent;
}

.input-box input,
.input-box select,
.input-box textarea {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 16px;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    font-size: 15px;
    color: #334155;
    direction: rtl;
}

.input-box label {
    position: absolute;
    right: 14px;
    top: -10px;
    background: #eef2f5;
    padding: 0 6px;
    color: #64748b;
    font-size: 13px;
    pointer-events: none;
}

/* شماره موبایل غیرقابل ویرایش */
.input-box input[readonly] {
    background-color: #f1f5f9;
    color: #606e81;
    cursor: not-allowed;
}

/* =========================
           Select
        ========================= */

.select-box select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select-box::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-left: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: translateY(-70%) rotate(-45deg);
    pointer-events: none;
}

/* =========================
           آدرس
        ========================= */

.address {
    height: 120px;
}

.address textarea {
    padding-top: 14px;
    resize: none;
}

/* =========================
           دکمه‌ها
        ========================= */

.buttons {
    position: fixed;
    left: 22px;
    bottom: 25px;
}

.left-buttons {
    display: flex;
    direction: ltr;
    gap: 12px;
}

button {
    font-family: "Vazirmatn", Tahoma, sans-serif;
    cursor: pointer;
}

.save-btn,
.password-btn {
    height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
}

.save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: white;
    border: none;
    cursor: pointer;
    user-select: none;
}

.password-btn {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.save-btn:hover {
    background: #1d4ed8;
}

.password-btn:hover {
    background: #eff6ff;
}



/* =========================
           پشتیبانی
        ========================= */

.support {
    position: fixed;
    right: 22px;
    bottom: 25px;
    height: 42px;
    padding: 0 18px;
    border: none;
    border-radius: 25px;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
}

.headphone {
    font-size: 18px;
}

/* =========================
           ستاره الزامی
        ========================= */

.required-star {
    color: #ef4444;
    font-weight: bold;
    margin-right: 2px;
}

/* =========================
           Placeholder
        ========================= */

::placeholder {
    color: #94a3b8 !important;
    opacity: 0.7;
}

#city {
    color: #aaa;
}

#city:valid {
    color: #333;
}


/* =========================
           Responsive
        ========================= */

@media (max-width: 1000px) {
    .form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {

    .container {
        padding: 15px;
        padding-bottom: 120px;
    }

    .top-message {
        font-size: 15px;
        height: auto;
        min-height: 47px;
    }

    .warning-message,
    .video-message {
        font-size: 14px;
    }

    .form {
        grid-template-columns: 1fr;
    }

    .buttons {
        position: static;
        margin-top: 30px;
    }

    .left-buttons {
        flex-direction: column-reverse;
    }

    .save-btn,
    .password-btn {
        width: 100%;
    }

    .support {
        right: 15px;
        bottom: 15px;
    }
}



/*******************************************/

/* =========================
   استایل اختصاصی تقویم شمسی
========================= */

.datepicker-plot-area {
    font-family: "Vazirmatn", Tahoma, sans-serif !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e2e8f0 !important;
}

.datepicker-plot-area .datepicker-day-view .table-days td.selected span {
    background-color: #2563eb !important;
    border-radius: 50% !important;
}

.datepicker-plot-area .datepicker-day-view .table-days td span:hover {
    background-color: #eff6ff !important;
    color: #2563eb !important;
    border-radius: 50% !important;
}

.datepicker-plot-area .datepicker-header {
    border-bottom: 1px solid #f1f5f9 !important;
}

.calendar-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
}

/* استایل کلی مدال پشتیبانی */
.support-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* پس‌زمینه نیمه‌شفاف */
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}

.support-modal.active {
    display: flex !important;
}

/* محتوای داخل کادر پشتیبانی */
.support-modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 20px 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: right;
    direction: rtl;
    font-family: inherit;
}

/* دکمه بستن (×) */
.close-support {
    color: #aaa;
    float: left;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-support:hover {
    color: #000;
}

.support-modal-content h3 {
    margin-top: 0;
    color: #333;
}

.support-info {
    margin-top: 15px;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.8;
}



.password-field input::placeholder {
    color: #94a3b8;
}



/* =========================
   استایل‌های کارت لاگین
========================= */
.auth-card {
    max-width: 450px;
    margin: 60px auto;
    background: #ffffff;
    padding: 35px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.auth-card h2 {
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
}

.margin-bottom-20 {
    margin-bottom: 20px;
}

.full-width {
    width: 100%;
}

/* =========================
   صفحه اعلامیه و شرایط
========================= */

.announcement-card {
    width: 100%;
    max-width: 950px;
    margin: 40px auto;
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    direction: rtl;
}

.announcement-card h2 {
    text-align: center;
    color: #1e293b;
    font-size: 23px;
    margin-bottom: 25px;
}

.announcement-scroll {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
}

.announcement-scroll.is-locked {
    border-color: #c9a25c;
    box-shadow: inset 0 0 0 1px rgba(201, 162, 92, 0.25);
}

.announcement-scroll.is-nudge {
    animation: announcement-nudge 0.45s ease;
}

.announcement-text {
    width: 100%;
    max-height: 430px;
    overflow-y: auto;
    padding: 14px 18px 14px 14px;
    line-height: 2.1;
    font-size: 15px;
    color: #334155;
    outline: none;
}

.announcement-scroll.is-locked .announcement-text {
    padding-bottom: 56px;
}

.announcement-scroll-cue {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px 16px 10px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0), #f8fafc 55%);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #8a6a2d;
    pointer-events: none;
}

.announcement-scroll.is-locked .announcement-scroll-cue {
    display: block;
}

.announcement-status {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.8;
    font-weight: 600;
}

.announcement-status.is-locked {
    background: #fff7e8;
    color: #7a5a1e;
    border: 1px solid #ead7a8;
}

.announcement-status.is-ready {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.announcement-status.is-nudge {
    animation: announcement-nudge 0.45s ease;
}

@keyframes announcement-nudge {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(6px); }
    50% { transform: translateX(-6px); }
    75% { transform: translateX(4px); }
}

.announcement-text p {
    margin-bottom: 18px;
}

.announcement-text p:last-child {
    margin-bottom: 5px;
}


/* =========================
   تیک تأیید اعلامیه
========================= */

.announcement-confirm {
    margin-top: 18px;
}

.announcement-confirm.is-locked {
    opacity: 0.62;
}

.announcement-confirm.is-locked .checkbox-container {
    cursor: not-allowed;
}

.announcement-confirm.is-locked .custom-checkbox {
    background: #e2e8f0;
    border-style: dashed;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    line-height: 1.8;
    font-size: 15px;
    color: #334155;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    width: 21px;
    height: 21px;
    min-width: 21px;
    border: 2px solid #94a3b8;
    border-radius: 5px;
    background: #ffffff;
    position: relative;
    margin-top: 3px;
    transition: all 0.2s ease;
}

.checkbox-container input:checked+.custom-checkbox {
    background: #2563eb;
    border-color: #2563eb;
}

.checkbox-container input:checked+.custom-checkbox::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 11px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    left: 6px;
    top: 2px;
}

.checkbox-text {
    flex: 1;
}


/* =========================
   دکمه تأیید و ادامه
========================= */

.announcement-btn {
    width: 100%;
    height: 48px;
    margin-top: 25px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.announcement-btn:disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
}

.announcement-btn:not(:disabled):hover {
    background: #1d4ed8;
}


/* =========================
   Responsive اعلامیه
========================= */

@media (max-width: 700px) {

    .announcement-card {
        margin: 20px auto;
        padding: 25px 20px;
    }

    .announcement-card h2 {
        font-size: 20px;
    }

    .announcement-text {
        font-size: 14px;
        max-height: 450px;
    }

    .checkbox-container {
        font-size: 14px;
    }
}


.tracking-code {
    margin-top: 12px;
    font-size: 17px;
    color: #1e293b;
}

.tracking-code strong {
    font-weight: bold;
}

#trackingCode {
    font-weight: bold;
    color: #2563eb;
    direction: ltr;
    display: inline-block;
    margin-right: 5px;
}



/* =========================
   شماره‌گذاری شرایط اعلامیه
========================= */

.announcement-text ol {
    list-style-type: decimal;
    padding-right: 30px;
    margin: 10px 0;
}

.announcement-text ol li {
    display: list-item;
    margin-bottom: 18px;
    padding-right: 5px;
}

.announcement-text ol ol {
    list-style-type: decimal;
    padding-right: 30px;
    margin-top: 15px;
}

.announcement-text ol ol li {
    margin-bottom: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .announcement-status.is-nudge,
    .announcement-scroll.is-nudge {
        animation: none;
    }
}