﻿/* ===== تنظیمات صفحه استعلام ===== */
.inquiry-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(-135deg, #00252C 0%, #043138 35%, #0A4A52 65%, #00252C 100%);
    background-size: 400% 400%;
    animation: gradientShift 18s ease infinite;
    overflow: hidden;
    padding: 40px 0;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== هدر و فوتر شفاف ===== */
.navbar-area.style-one {
    background: rgba(0, 37, 44, 0.85) !important;
/*    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;*/
}

.footer-area.style-one {
    background: rgba(0, 37, 44, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    position: relative;
    z-index: 1;
}

/* ===== ذرات معلق ===== */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(185, 248, 177, 0.06);
    animation: floatParticle 14s infinite ease-in-out;
}

    .particle:nth-child(1) {
        width: 120px;
        height: 120px;
        top: 5%;
        left: 2%;
        animation-delay: 0s;
    }

    .particle:nth-child(2) {
        width: 180px;
        height: 180px;
        top: 70%;
        right: 3%;
        animation-delay: 2.5s;
    }

    .particle:nth-child(3) {
        width: 80px;
        height: 80px;
        top: 30%;
        left: 12%;
        animation-delay: 4s;
    }

    .particle:nth-child(4) {
        width: 140px;
        height: 140px;
        bottom: 10%;
        left: 5%;
        animation-delay: 1.5s;
    }

    .particle:nth-child(5) {
        width: 90px;
        height: 90px;
        top: 15%;
        right: 18%;
        animation-delay: 3.5s;
    }

    .particle:nth-child(6) {
        width: 200px;
        height: 200px;
        bottom: 5%;
        right: 8%;
        animation-delay: 5.5s;
    }

    .particle:nth-child(7) {
        width: 70px;
        height: 70px;
        top: 55%;
        left: 22%;
        animation-delay: 2s;
    }

    .particle:nth-child(8) {
        width: 100px;
        height: 100px;
        top: 8%;
        right: 30%;
        animation-delay: 4.5s;
    }

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }

    25% {
        transform: translate(50px, -60px) scale(1.2);
        opacity: 0.4;
    }

    50% {
        transform: translate(-40px, -100px) scale(0.7);
        opacity: 0.1;
    }

    75% {
        transform: translate(60px, -40px) scale(1.1);
        opacity: 0.35;
    }
}

/* ===== حلقه‌های نورانی ===== */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: pulseGlow 7s infinite ease-in-out;
    pointer-events: none;
}

    .glow-orb:nth-child(1) {
        width: 500px;
        height: 500px;
        background: #B9F8B1;
        top: -150px;
        right: -150px;
        animation-delay: 0s;
    }

    .glow-orb:nth-child(2) {
        width: 400px;
        height: 400px;
        background: #91D089;
        bottom: -120px;
        left: -120px;
        animation-delay: 3.5s;
    }

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.12;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.2;
    }
}

/* ===== باکس اصلی ===== */
.inquiry-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 0 20px;
}

.inquiry-box {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 45px 45px 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: visible !important;
}

    .inquiry-box::before {
        content: '';
        position: absolute;
        top: -60%;
        left: -60%;
        width: 220%;
        height: 220%;
        background: radial-gradient(circle at 30% 20%, rgba(185, 248, 177, 0.06), transparent 60%);
        animation: rotateGlow 25s linear infinite;
        pointer-events: none;
        z-index: -1 !important;
    }

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.inquiry-box:hover {
    transform: translateY(-5px) scale(1.003);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6);
    border-color: rgba(185, 248, 177, 0.12);
}

/* ===== عنوان ===== */
.inquiry-title-wrapper {
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.inquiry-main-title {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: inline-block;
    position: relative;
    letter-spacing: -0.5px;
}

    .inquiry-main-title .highlight {
        color: #B9F8B1;
        position: relative;
    }

        .inquiry-main-title .highlight::after {
            content: '';
            position: absolute;
            bottom: 4px;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, #B9F8B1, transparent);
            border-radius: 2px;
            animation: expandLine 1.8s ease forwards;
            transform-origin: right;
        }

@keyframes expandLine {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.inquiry-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-top: 8px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease 0.4s both;
    letter-spacing: 0.3px;
}

    .inquiry-subtitle i {
        color: #B9F8B1;
        margin-left: 8px;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== فیلد ورودی ===== */
.inquiry-input-group {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.inquiry-input {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 2px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    padding: 16px 24px !important;
    height: 60px !important;
    font-size: 18px !important;
    border-radius: 16px !important;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
    text-align: center;
    direction: ltr;
    font-weight: 500;
}

    .inquiry-input::placeholder {
        color: rgba(255, 255, 255, 0.3) !important;
        font-size: 15px;
        font-weight: 400;
    }

    .inquiry-input:focus {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: #B9F8B1 !important;
        box-shadow: 0 0 40px rgba(185, 248, 177, 0.08), inset 0 0 20px rgba(185, 248, 177, 0.03) !important;
        transform: scale(1.01);
    }

    .inquiry-input:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 30px #043138 inset !important;
        -webkit-text-fill-color: #fff !important;
    }

.inquiry-input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.2);
    font-size: 20px;
    z-index: 2;
    transition: all 0.3s ease;
}

.inquiry-input:focus ~ .inquiry-input-icon {
    color: #B9F8B1;
}

/* ===== دکمه استعلام ===== */
.btn-inquiry {
    background: linear-gradient(135deg, #B9F8B1, #7ECB77);
    color: #00252C;
    font-weight: 700;
    font-size: 17px;
    padding: 16px 35px;
    border-radius: 16px;
    border: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    z-index: 1;
    cursor: pointer;
    letter-spacing: 0.3px;
}

    .btn-inquiry::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
        transition: all 0.7s ease;
    }

    .btn-inquiry:hover::before {
        left: 100%;
    }

    .btn-inquiry:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(185, 248, 177, 0.25);
        color: #00252C;
    }

    .btn-inquiry:active {
        transform: scale(0.97);
    }

    .btn-inquiry:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none !important;
    }

/* ===== اسپینر بارگذاری ===== */
.loading-wrapper {
    display: none;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

    .loading-wrapper .spinner-border {
        width: 38px;
        height: 38px;
        border-width: 3px;
        color: #B9F8B1;
    }

/* ===== نتیجه استعلام - فشرده‌تر ===== */
.result-box {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.9s ease forwards;
}

.result-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 32px;
    animation: pulseIcon 2.5s infinite;
    position: relative;
}

    .result-icon-wrapper.success {
        background: rgba(185, 248, 177, 0.12);
        color: #B9F8B1;
        border: 2px solid rgba(185, 248, 177, 0.15);
    }

    .result-icon-wrapper.fail {
        background: rgba(255, 100, 100, 0.12);
        color: #FF6B6B;
        border: 2px solid rgba(255, 100, 100, 0.15);
    }

    .result-icon-wrapper::before {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border-radius: 50%;
        border: 2px solid transparent;
        animation: spinBorder 4s linear infinite;
    }

    .result-icon-wrapper.success::before {
        border-top-color: rgba(185, 248, 177, 0.4);
        border-right-color: rgba(185, 248, 177, 0.2);
    }

    .result-icon-wrapper.fail::before {
        border-top-color: rgba(255, 100, 100, 0.4);
        border-right-color: rgba(255, 100, 100, 0.2);
    }

@keyframes spinBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.result-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.result-customer {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    margin-bottom: 14px;
}

/* ===== ردیف اطلاعات - فشرده ===== */
.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 6px;
}

.info-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

    .info-item:hover {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(185, 248, 177, 0.08);
    }

.info-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1px;
    font-weight: 600;
    display: block;
}

.info-value {
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    display: block;
}

    .info-value.ltr {
        direction: ltr;
        text-align: left;
        font-family: 'Courier New', monospace;
        letter-spacing: 0.5px;
        font-size: 14px;
    }

/* ===== دکمه استعلام مجدد ===== */
.btn-retry {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.15);
    padding: 12px 32px;
    border-radius: 14px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    text-decoration: none;
    position: relative;
    z-index: 9999 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

    .btn-retry:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: #B9F8B1;
        color: #B9F8B1;
        transform: translateY(-2px);
        text-decoration: none;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    }

    .btn-retry:active {
        transform: scale(0.97);
    }

/* ===== اطمینان از نمایش دکمه ===== */
.result-box .text-center {
    position: relative;
    z-index: 10;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 576px) {
    .info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .result-icon-wrapper {
        width: 56px;
        height: 56px;
        font-size: 26px;
        margin-bottom: 6px;
    }

    .result-title {
        font-size: 17px;
    }

    .info-value {
        font-size: 14px;
    }

        .info-value.ltr {
            font-size: 13px;
        }

    .warranty-status {
        font-size: 13px;
        padding: 8px 10px;
    }

        .warranty-status span:last-child {
            font-size: 11px !important;
        }

    .btn-retry {
        font-size: 13px;
        padding: 8px 18px;
        margin-top: 10px;
    }
}

/* ===== کارت‌های اطلاعات - فشرده‌تر ===== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.info-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

    .info-card:hover {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(185, 248, 177, 0.08);
        transform: translateY(-1px);
    }

    .info-card.full {
        grid-column: 1 / -1;
    }

.info-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
    font-weight: 600;
}

.info-value {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

    .info-value.ltr {
        direction: ltr;
        text-align: left;
        font-family: 'Courier New', monospace;
        letter-spacing: 0.5px;
        font-size: 15px;
    }

/* ===== پیام خطا ===== */
.alert-inquiry {
    background: rgba(255, 100, 100, 0.08);
    border: 1px solid rgba(255, 100, 100, 0.12);
    color: #FF6B6B;
    border-radius: 16px;
    padding: 14px 20px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
    animation: shakeError 0.5s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes shakeError {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-10px);
    }

    40% {
        transform: translateX(10px);
    }

    60% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }
}

/* ===== اعتبارسنجی ===== */
.field-validation-error {
    color: #FF6B6B;
    font-size: 13px;
    display: block;
    margin-top: 6px;
    animation: fadeInUp 0.3s ease;
    position: relative;
    z-index: 1;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .inquiry-box {
        padding: 35px 30px 30px;
    }

    .inquiry-main-title {
        font-size: 32px;
    }

    .glow-orb:nth-child(1) {
        width: 300px;
        height: 300px;
        top: -80px;
        right: -80px;
    }

    .glow-orb:nth-child(2) {
        width: 250px;
        height: 250px;
        bottom: -60px;
        left: -60px;
    }
}

@media (max-width: 768px) {
    .inquiry-page {
        padding: 80px 0 50px;
    }

    .inquiry-box {
        padding: 28px 22px 25px;
        border-radius: 24px;
    }

    .inquiry-main-title {
        font-size: 28px;
    }

    .inquiry-subtitle {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .btn-inquiry {
        font-size: 16px;
        padding: 14px 20px;
        border-radius: 14px;
    }

    .inquiry-input {
        height: 52px !important;
        font-size: 16px !important;
        padding: 12px 18px !important;
        border-radius: 14px !important;
    }

    .result-icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 32px;
        margin-bottom: 10px;
    }

    .result-title {
        font-size: 19px;
    }

    .result-customer {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .info-card {
        padding: 10px 14px;
        border-radius: 10px;
    }

    .info-value {
        font-size: 15px;
    }

        .info-value.ltr {
            font-size: 14px;
        }

    .warranty-status {
        font-size: 15px;
        padding: 10px 14px;
        border-radius: 10px;
    }

    .btn-retry {
        font-size: 14px;
        padding: 10px 22px;
        border-radius: 12px;
        margin-top: 14px;
    }

    .particle {
        opacity: 0.06 !important;
    }

    .glow-orb {
        display: none;
    }

    .navbar-area.style-one {
        background: rgba(0, 37, 44, 0.95) !important;
    }

    .alert-inquiry {
        font-size: 13px;
        padding: 12px 16px;
        border-radius: 12px;
        margin-top: 14px;
    }
}

@media (max-width: 576px) {
    .inquiry-box {
        padding: 22px 16px 20px;
        border-radius: 20px;
    }

    .inquiry-main-title {
        font-size: 24px;
    }

    .inquiry-subtitle {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .inquiry-input {
        height: 48px !important;
        font-size: 15px !important;
        padding: 10px 14px !important;
        border-radius: 12px !important;
    }

    .inquiry-input-icon {
        font-size: 16px;
        left: 14px;
    }

    .btn-inquiry {
        font-size: 15px;
        padding: 12px 16px;
        border-radius: 12px;
    }

    .result-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 8px;
    }

    .result-title {
        font-size: 17px;
    }

    .result-customer {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .info-card {
        padding: 8px 12px;
        border-radius: 8px;
    }

    .info-label {
        font-size: 9px;
    }

    .info-value {
        font-size: 14px;
    }

        .info-value.ltr {
            font-size: 13px;
        }

    .warranty-status {
        font-size: 13px;
        padding: 8px 12px;
        border-radius: 8px;
    }

    .btn-retry {
        font-size: 13px;
        padding: 8px 18px;
        border-radius: 10px;
        margin-top: 12px;
        gap: 6px;
    }
}

/* ===== تنظیمات Toastr ===== */
#toast-container {
    position: fixed !important;
    top: 100px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: 90% !important;
    z-index: 999999 !important;
}

    #toast-container > div {
        opacity: 1 !important;
        border-radius: 14px !important;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4) !important;
        padding: 14px 28px !important;
        font-size: 14px !important;
        font-family: "Vazirmatn RD FD", sans-serif !important;
        backdrop-filter: blur(12px) !important;
        margin-bottom: 10px !important;
        width: auto !important;
        min-width: 280px !important;
        max-width: 500px !important;
    }

    #toast-container > .toast-success {
        background: rgba(0, 37, 44, 0.92) !important;
        border: 1px solid rgba(185, 248, 177, 0.2) !important;
    }

    #toast-container > .toast-error {
        background: rgba(0, 37, 44, 0.92) !important;
        border: 1px solid rgba(255, 100, 100, 0.2) !important;
    }

.toast-success .toast-title,
.toast-error .toast-title {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

.toast-success .toast-message,
.toast-error .toast-message {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 14px !important;
}

.toast-close-button {
    color: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
    font-size: 20px !important;
    right: -5px !important;
    top: -5px !important;
}

    .toast-close-button:hover {
        color: #fff !important;
    }

.toast-progress {
    background: #B9F8B1 !important;
    height: 2px !important;
}

/* ریسپانسیو Toastr */
@media (max-width: 576px) {
    #toast-container {
        top: 80px !important;
        max-width: 95% !important;
    }

        #toast-container > div {
            padding: 12px 18px !important;
            font-size: 13px !important;
            min-width: auto !important;
            border-radius: 12px !important;
        }
}

/* ===== اسکرول ===== */
body {
    overflow-y: auto !important;
}

/* ===== آیکون دکمه ===== */
.btn-inquiry .ri-search-line {
    transition: transform 0.3s ease;
}

.btn-inquiry:hover .ri-search-line {
    transform: scale(1.1);
}
