﻿/*
 * modal-price-modern.css — UI مدرن مودال استعلام قیمت
 * برای برگشت: حذف لینک این فایل از master-fa.Master و کلاس bmc-price-modal
 */

.bmc-price-modal.modal {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px !important;
    background-color: rgba(3, 51, 91, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-y: auto;
    box-sizing: border-box;
}

.bmc-price-modal .bmc-price-modal__dialog {
    max-width: 460px;
    width: 100%;
    margin: 12px auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(141, 216, 248, 0.25);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
    background: #fff;
}

/* ─── Header ─── */
.bmc-price-modal__header {
    position: relative;
    padding: 20px 44px 16px;
    background: linear-gradient(135deg, #03335b 0%, #16335b 55%, #0c4d7a 100%);
    text-align: center;
    direction: rtl;
}

.bmc-price-modal__header .bmc-price-modal__title,
.bmc-price-modal__header .h3-price-list {
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    text-align: center !important;
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    letter-spacing: 0;
}

.bmc-price-modal__subtitle {
    margin: 6px 0 0;
    padding: 0 4px;
    color: rgba(173, 216, 230, 0.92);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.bmc-price-modal__close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.bmc-price-modal__close:hover {
    background: #ef3a3a;
    border-color: #ef3a3a;
    color: #fff;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 18px rgba(239, 58, 58, 0.45);
}

.bmc-price-modal__close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(141, 216, 248, 0.55);
}

.bmc-price-modal__close:active {
    transform: scale(1.02) rotate(90deg);
}

/* ─── Body / Form ─── */
.bmc-price-modal .bmc-price-modal__body {
    padding: 16px 18px 18px;
    direction: rtl;
    background: #fff;
}

.bmc-price-modal__field {
    margin-bottom: 10px;
}

.bmc-price-modal__field label {
    display: block;
    margin-bottom: 4px;
}

.bmc-price-modal__field label b {
    color: #03335b;
    font-weight: 600;
    font-size: 13px;
}

.bmc-price-modal .price-list-box,
.bmc-price-modal #captchaText {
    width: 100%;
    margin-bottom: 0 !important;
    padding: 10px 14px !important;
    border: 1.5px solid #e6edf3 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    background: #f8fafc !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bmc-price-modal .price-list-box:focus,
.bmc-price-modal #captchaText:focus {
    outline: none !important;
    border-color: #03335b !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(141, 216, 248, 0.35) !important;
}

.bmc-price-modal__textarea {
    min-height: 58px;
    max-height: 72px;
    resize: none;
    line-height: 1.6;
}

.bmc-price-modal__captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
}

.bmc-price-modal__captcha #captchaText {
    flex: 1 1 auto;
    min-width: 0;
}

.bmc-price-modal #captchaCanvas {
    flex: 0 0 110px;
    width: 110px !important;
    height: 50px !important;
    max-width: 110px;
    border: 1.5px solid #e6edf3 !important;
    border-radius: 10px !important;
    cursor: pointer;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bmc-price-modal #captchaCanvas:hover {
    border-color: #03335b !important;
    box-shadow: 0 2px 10px rgba(3, 51, 91, 0.12);
    transform: none;
}

.bmc-price-modal .bmc-price-modal__note {
    margin: 0 0 12px;
    background: rgba(141, 216, 248, 0.12);
    border: 1px solid rgba(141, 216, 248, 0.35);
    color: #03335b;
    font-size: 12px;
    border-radius: 10px;
    padding: 8px 12px;
}

.bmc-price-modal .bmc-price-modal__note i {
    color: #03335b;
    font-size: 15px;
}

.bmc-price-modal .bmc-price-modal__note:hover {
    transform: none;
    background: rgba(141, 216, 248, 0.16);
    box-shadow: none;
}

.bmc-price-modal__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px !important;
    border: none !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #03335b 0%, #0c4d7a 100%) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(3, 51, 91, 0.25);
}

.bmc-price-modal__submit:hover {
    background: linear-gradient(135deg, #044e89 0%, #03335b 100%) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(3, 51, 91, 0.32);
}

.bmc-price-modal__submit:active {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .bmc-price-modal.modal {
        padding: 8px !important;
    }

    .bmc-price-modal .bmc-price-modal__dialog {
        max-width: 100%;
        margin: 8px auto;
    }

    .bmc-price-modal__header {
        padding: 18px 40px 14px;
    }

    .bmc-price-modal__header .bmc-price-modal__title,
    .bmc-price-modal__header .h3-price-list {
        font-size: 16px;
        line-height: 1.4;
    }

    .bmc-price-modal__subtitle {
        font-size: 11px;
        margin-top: 4px;
    }

    .bmc-price-modal .bmc-price-modal__body {
        padding: 14px 14px 16px;
    }

    .bmc-price-modal__field {
        margin-bottom: 8px;
    }

    .bmc-price-modal__captcha {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .bmc-price-modal #captchaCanvas {
        flex: 0 0 100px;
        width: 100px !important;
        height: 44px !important;
        max-width: 100px;
    }

    .bmc-price-modal .bmc-price-modal__note {
        font-size: 11px;
        padding: 7px 10px;
    }
}
