﻿.bolej-calc-wrapper {
    direction: rtl;
    text-align: right;
    font-family: inherit;
    padding: 35px 0 50px 0;
    background-color: #fbfbfd;
}

    /* سطر اصلی با تراز بالا تا ستون چپ بی‌مورد کش نیاید */
    .bolej-calc-wrapper .row.align-stretch-custom {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start; /* کلید حل مشکل کشیدگی زشت */
    }

.bolej-calc-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf0f5;
    padding: 30px;
}

.bolej-header-title {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.bolej-header-desc {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 22px;
	text-align: justify;
}

.bolej-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 22px 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .bolej-section-title::before {
        content: "";
        display: inline-block;
        width: 4px;
        height: 16px;
        background: var(--wallpi-base, #c98a58);
        border-radius: 4px;
    }

.bolej-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
    display: block;
}

/* استایل اختصاصی دراپ‌داون متریال */
.custom-dropdown-container {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-dropdown-trigger {
    width: 100%;
    height: 50px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 16px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

    .custom-dropdown-trigger:hover,
    .custom-dropdown-container.open .custom-dropdown-trigger {
        border-color: var(--wallpi-base, #c98a58);
        box-shadow: 0 0 0 3px rgba(201, 138, 88, 0.12);
    }

    .custom-dropdown-trigger .selected-text {
        font-size: 12px;
        color: #1e293b;
    }

    .custom-dropdown-trigger .arrow-icon {
        width: 18px;
        height: 18px;
        transition: transform 0.25s ease;
        color: #64748b;
    }

.custom-dropdown-container.open .arrow-icon {
    transform: rotate(180deg);
    color: var(--wallpi-base, #c98a58);
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #edf0f5;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 9999;
    padding: 8px;
}

.custom-dropdown-container.open .custom-dropdown-menu {
    display: block;
    animation: dropSlide 0.2s ease;
}

@keyframes dropSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-group-title {
    font-size: 11.5px;
    font-weight: 800;
    color: #94a3b8;
    padding: 8px 12px 4px 12px;
    letter-spacing: 0.5px;
}

.dropdown-item-option {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    color: #334155;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.15s ease;
}

    .dropdown-item-option:hover {
        background: #fff8f3;
        color: var(--wallpi-base, #c98a58);
    }

    .dropdown-item-option.active {
        background: #fff1e6;
        color: var(--wallpi-base, #c98a58);
        font-weight: 700;
    }

/* اینپوت‌های متنی */
.bolej-input, .bolej-textarea {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 13.5px;
    color: #1e293b;
    background-color: #ffffff;
    outline: none;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.bolej-input-number {
    text-align: right !important;
    direction: rtl !important;
}

.bolej-textarea {
    height: 75px;
    padding: 10px 14px;
    resize: vertical;
}

    .bolej-input:focus, .bolej-textarea:focus {
        border-color: var(--wallpi-base, #c98a58);
        box-shadow: 0 0 0 3px rgba(201, 138, 88, 0.15);
    }

/* گزینه‌های رادیویی و چک‌باکس‌ها */
.bolej-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.bolej-choice-pill {
    position: relative;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

    .bolej-choice-pill input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

    .bolej-choice-pill .pill-box {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 9px 15px;
        background: #f8fafc;
        border: 1.5px solid #e2e8f0;
        border-radius: 8px;
        font-size: 13px;
        color: #475569;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .bolej-choice-pill input:checked ~ .pill-box {
        background: #fff9f5;
        border-color: var(--wallpi-base, #c98a58);
        color: var(--wallpi-base, #c98a58);
    }

/* استایل سایدبار فاکتور (اصلاح‌شده به Sticky طبیعی بدون کشیدگی زشت) */
.bolej-summary-sticky {
    position: sticky;
    top: 25px;
    height: auto; /* حذف ۱۰۰٪ تا بیهوده کش نیاید */
    z-index: 10;
}

.bolej-summary-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf0f5;
    padding: 24px;
    height: auto; /* حذف ۱۰۰٪ */
    box-sizing: border-box;
}

.bolej-summary-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 14px;
}

.bolej-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: #64748b;
}

    .bolej-row-item strong {
        color: #1e293b;
        font-weight: 700;
    }

.bolej-total-row {
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid #edf0f5;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.bolej-total-price {
    font-size: 21px;
    font-weight: 900;
    color: #10b981;
}

.bolej-btn-submit {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background-color: var(--wallpi-base, #c98a58);
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

    .bolej-btn-submit:hover {
        opacity: 0.93;
        color: #fff;
    }

#contactDetailsWrapper {
    display: none;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
    animation: bolejFadeIn 0.35s ease forwards;
}

@keyframes bolejFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* آیتم‌های ارزش‌افزا برای پر کردن فضای خالی و افزایش اعتبار */
.bolej-included-features {
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 16px;
}

.features-header {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 7px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .features-list li {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 11.5px;
        color: #475569;
        padding: 8px 0;
    }

/* تماس مستقیم برای راحتی کاربر */
.bolej-direct-call-box {
    margin-top: 14px;
    text-align: center;
    background: #eff6ff;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #dbeafe;
}

    .bolej-direct-call-box .call-desc {
        font-size: 11.5px;
        color: #1e40af;
        margin-bottom: 3px;
    }

    .bolej-direct-call-box .call-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12.5px;
        font-weight: 700;
        color: #1d4ed8;
        text-decoration: none;
    }

.bolej-guarantees {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

.bolej-guarantee-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #475569;
    margin-bottom: 12px;
}
