﻿

/* تنظیم فونت عنوان، متن و دکمه SweetAlert */
.swal2-popup {
    direction: rtl !important;
    text-align: right !important;
}

/* بولدتر و خواناتر کردن عنوان */
.swal2-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}

/* بولدتر کردن متن پیام اصلی */
.swal2-html-container {
    font-size: 1rem !important;
    font-weight: 600 !important; /* وزن فونت نیمه‌بولد/بولد */
    line-height: 1.9 !important; /* فاصله خطوط بهتر برای خوانایی فارسی */
    color: #334155 !important;
}

/* دکمه تایید */
.swal2-confirm {
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
}



.villa-alert-popup {
    direction: rtl;
    text-align: right;
    border-radius: 22px !important;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25) !important;
    font-family: inherit;
}

.villa-alert-title {
    color: #0f172a !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
}

.villa-alert-message {
    color: #475569 !important;
    font-size: 15px !important;
    line-height: 2.1 !important;
    text-align: right !important;
    margin: 0 !important;
}

.villa-alert-confirm {
    min-width: 125px;
    border: none !important;
    border-radius: 11px !important;
    padding: 11px 25px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25) !important;
}

    .villa-alert-confirm:hover {
        background-color: #1d4ed8 !important;
        transform: translateY(-1px);
    }



.villa-alert-list {
    margin: 0;
    padding: 0 22px 0 0;
    list-style: none;
}

    .villa-alert-list li {
        position: relative;
        margin: 8px 0;
        padding-right: 22px;
    }

        .villa-alert-list li::before {
            content: '•';
            position: absolute;
            right: 0;
            top: 0;
            color: #f59e0b;
            font-size: 22px;
            font-weight: bold;
        }

.services-box {
    width: 100%;
    max-width: 920px; /* هم‌اندازه کارت اصلی */
    box-sizing: border-box;
    margin: 14px auto 0;
    padding: 12px 12px 14px;
    background: #feecd4;
    border: 1px dashed #c9aa7c;
    border-radius: 14px;
}

.services-box__title {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #0e1467;
    margin-bottom: 12px;
}




.service-link__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}



.service-link--green .service-link__arrow {
    color: #2e9f59;
}

.service-link--green .service-link__text {
    color: #4b2e6a;
}

.service-link--purple .service-link__arrow {
    color: #7a43b6;
}

.service-link--purple .service-link__text {
    color: #4b2e6a;
}

.services-box__items {
    display: flex;
    gap: 40px;
    width: 100%;
    direction: rtl;
    justify-content: center; /* به‌جای space-between */
}

.service-link {
    flex: 0 0 46%;
    max-width: 36%;
    min-width: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: ltr;
    gap: 8px;
    padding: 0 35px;
    background: #fff;
    border: 1px solid #ece9e2;
    border-radius: 10px;
    text-decoration: none;
    box-sizing: border-box;
    overflow: hidden;
}


.service-link__thumb {
    order: 3; /* سمت راست */
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-link__text {
    order: 2;
    flex: 1;
    min-width: 0;
    text-align: center;
    direction: rtl; /* خود متن فارسی راست‌به‌چپ بماند */
    font-size: 13px;
    font-weight: 400;
    color: #4b2e6a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-link__arrow {
    order: 1; /* سمت چپ */
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 768px) {
    .service-link {
        flex: 0 0 46%;
        max-width: 46%;
        padding: 0 5px;
    }
}




/* AI Modal */
.ai-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    direction: rtl;
}

.ai-modal.active {
    display: flex;
}

.ai-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ai-modal-wrapper {
    position: relative;
    width: min(96vw, 1100px);
    max-height: 92vh;
    z-index: 3001;
}

.ai-modal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Header */
.ai-modal-header {
    position: relative;
    padding: 16px 24px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .ai-modal-title,
    .ai-modal-header h5 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: #fff;
    }

.ai-modal-close {
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
    flex: 0 0 auto;
}

    .ai-modal-close:hover {
        background: rgba(255, 255, 255, 0.22);
        transform: scale(1.05);
    }

/* Body */
.ai-modal-body {
    position: relative;
    padding: 24px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

/* Loading */
.ai-loading-container {
    text-align: center;
}

.ai-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #4c84ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* اصلاح ویوپورت برای دید بهتر */
.ai-image-viewport {
    position: relative;
    width: 100%;
    height: 75vh; /* ارتفاع ثابت برای جلوگیری از پرش صفحه */
    max-height: 650px;
    overflow: auto;
    background: #0f172a; /* پس‌زمینه تیره برای جلوه بیشتر عکس */
    display: flex;
    align-items: flex-start; /* شروع از بالا */
    justify-content: center;
    padding: 30px 0; /* فاصله از بالا و پایین برای دید بهتر عکس */
    border-radius: 0;
}

.ai-image-container img {
    display: block;
    max-width: 90%; /* کمی کوچک‌تر برای ایجاد حاشیه */
    height: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-radius: 12px;
    border: 4px solid rgba(255,255,255,0.1);
}



.ai-image-viewport:active {
    cursor: grabbing;
}

.ai-image-container {
    position: relative;
    min-width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    transition: transform 0.12s ease;
}


/* Zoom controls */
.zoom-controls {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: flex;
    gap: 1px;
    z-index: 2;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    overflow: hidden;
    direction: ltr;
}

    .zoom-controls button {
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 12px;
        cursor: pointer;
        transition: background 0.2s ease;
    }

        .zoom-controls button:hover {
            background: rgba(255, 255, 255, 0.15);
        }

/* Footer */
.ai-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fff;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ai-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

    .ai-btn-download:hover {
        background: #059669;
        color: #fff;
        text-decoration: none;
        transform: translateY(-1px);
    }




.ai-designer-wrap {
    --navy: #12173a;
    --navy-2: #171d47;
    --card-bg: #ffffff;
    --page-bg: #eef1f8;
    --border: #e3e6f0;
    --teal: #12b8a6;
    --teal-dark: #0e9c8c;
    --text: #1c2140;
    --muted: #8a8fa8;
    --radius: 16px;
    color: var(--text);
}

.ai-page-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    margin: 6px 0 14px;
    color: var(--text);
}

.ai-page-banner {
    text-align: center;
    background: #eaf3ff;
    color: #2563eb;
    border: 1px solid #cfe2ff;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    max-width: 640px;
    margin: 0 auto 26px;
}

.ai-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(20,25,60,.04);
    display: block;
    padding: 0 !important;
}

.ai-card-head {
    background: var(--navy);
    color: #fff;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-card-body {
    padding: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .ai-card-body.ai-column {
        flex-direction: column;
    }

.ai-sub-block {
    padding: 0 18px 18px;
    display: none;
}

    .ai-sub-block.show {
        display: block;
    }

.ai-small-title {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 8px;
    display: block;
}

.ai-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-pill {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 9px 14px;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    background: #fff;
    transition: .15s;
    margin: 0;
}

    .ai-pill:hover {
        border-color: var(--teal);
    }

    .ai-pill.selected {
        border-color: var(--teal);
        background: #f0fdfb;
    }

    .ai-pill input[type="radio"] {
        display: none;
    }

.ai-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #c7cbe0;
    flex-shrink: 0;
    position: relative;
}

.ai-pill.selected .ai-dot {
    border-color: var(--teal);
}

    .ai-pill.selected .ai-dot:after {
        content: "";
        position: absolute;
        inset: 2px;
        border-radius: 50%;
        background: var(--teal);
    }

.ai-input,
.ai-select,
.ai-floor-input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text);
    background: #fbfbfd;
    outline: none;
}

.ai-floor-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.ai-floor-input-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

    .ai-floor-input-row small {
        color: var(--muted);
        font-size: 12px;
    }

.floor-tabs {
    display: flex;
    gap: 8px;
    padding: 14px 18px 0;
    flex-wrap: wrap;
}

.floor-tab {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    font-size: 13px;
    cursor: pointer;
    background: #fff;
}

    .floor-tab.active {
        background: var(--navy);
        color: #fff;
        border-color: var(--navy);
    }

.rooms-panel {
    padding: 16px 18px 20px;
    display: none;
    flex-wrap: wrap;
    gap: 10px;
}

    .rooms-panel.show {
        display: flex;
    }

.chip {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 8px 13px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    background: #fff;
    margin: 0;
}

    .chip input {
        width: 15px;
        height: 15px;
        accent-color: var(--teal);
        cursor: pointer;
    }

    .chip.checked {
        border-color: var(--teal);
        background: #f0fdfb;
    }

    .chip.disabled {
        opacity: .45;
        cursor: not-allowed;
    }

.qty-chip {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
}

    .qty-chip.active {
        border-color: var(--teal);
        background: #f0fdfb;
    }

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    user-select: none;
    color: var(--text);
}

.qty-value {
    min-width: 16px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}



.ai-option-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .ai-option-group .option-btn {
        cursor: pointer;
    }




.price-calculator {
    direction: rtl;
}

.calculate-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

    .calculate-item .header {
        display: block;
        font-weight: 700;
        margin-bottom: 12px;
        color: #2c3e50;
        font-size: 15px;
    }

.input-group input[type="number"],
.input-group input[type="text"],
.input-group select {
    width: 100%;
    border: 1px solid #dcdfe3;
    border-radius: 10px;
    padding: 10px 12px;
    outline: none;
    transition: .2s;
    background: #fff;
}

    .input-group input:focus,
    .input-group select:focus {
        border-color: #4c84ff;
        box-shadow: 0 0 0 3px rgba(76,132,255,.12);
    }

.radio-group,
.checkbox-group,
.options-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .radio-group label,
    .checkbox-group label {
        margin: 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #f8f9fb;
        border: 1px solid #e4e7ec;
        border-radius: 10px;
        padding: 8px 12px;
        cursor: pointer;
        transition: .2s;
        font-weight: 500;
    }

        .radio-group label:hover,
        .checkbox-group label:hover {
            border-color: #cfd6df;
            background: #f3f6fa;
        }

    .radio-group input,
    .checkbox-group input {
        margin: 0;
    }

.option-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 9px 14px;
    border: 1px solid #d9dee5;
    border-radius: 10px;
    background: #f8f9fb;
    cursor: pointer;
    transition: .2s;
    user-select: none;
}

    .option-btn.active {
        background: #eaf2ff;
        border-color: #4c84ff;
        color: #1f5fd6;
        font-weight: 700;
    }

.hidden-field {
    display: none !important;
}

.floor-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.floor-tab {
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid #d9dee5;
    background: #f8f9fb;
    cursor: pointer;
    transition: .2s;
    font-weight: 600;
}

    .floor-tab.active {
        background: #4c84ff;
        color: #fff;
        border-color: #4c84ff;
    }

.floor-panel {
    display: none;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    background: #fff;
}

    .floor-panel.active {
        display: block;
    }

.rooms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.room-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #d9dee5;
    border-radius: 10px;
    background: #f8f9fb;
    cursor: pointer;
    transition: .2s;
    user-select: none;
}

    .room-chip.active {
        background: #eaf2ff;
        border-color: #4c84ff;
        color: #1f5fd6;
        font-weight: 700;
    }

.room-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.counter-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d9dee5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.counter-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f5f8;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.counter-value {
    min-width: 42px;
    text-align: center;
    font-weight: 700;
}

.floor-area-wrapper {
    margin-top: 12px;
}

.floor-area-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floor-area-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .floor-area-item label {
        min-width: 110px;
        margin: 0;
        font-weight: 600;
        color: #495057;
    }

    .floor-area-item input {
        flex: 1;
    }

.room-note {
    margin-bottom: 12px;
    color: #6c757d;
    font-size: 13px;
}

.ai-generate-btn1 {
    background: linear-gradient(90deg, var(--navy), var(--teal-dark));
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: not-allowed;
    opacity: .95;
}
/* استایل جدید دکمه تولید طرح */
.ai-generate-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    background: #4c84ff;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(76, 132, 255, 0.2);
}

    .ai-generate-btn:hover {
        background: #3971e7;
        box-shadow: 0 6px 16px rgba(76, 132, 255, 0.3);
        transform: translateY(-1px);
    }

    .ai-generate-btn:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px rgba(76, 132, 255, 0.2);
    }

/* حذف استایل غیرفعال قدیمی */
.btn-disabled {
    cursor: pointer;
}



.btn-disabled {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    background: #dfe4ea;
    color: #5a6570;
    font-weight: 700;
    cursor: not-allowed;
}

.soon-badge {
    display: inline-block;
    margin-right: 8px;
    background: #fff3cd;
    color: #856404;
    border-radius: 20px;
    padding: 3px 8px;
    font-size: 12px;
    vertical-align: middle;
}

.section-block {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .floor-area-item {
        flex-direction: column;
        align-items: stretch;
    }

        .floor-area-item label {
            min-width: auto;
        }
}




.user-comment-item p {
    max-height: 220px;
    overflow-y: scroll;
}

.swiper-slide {
    align-self: flex-start;
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* background: #eef2f5; */
    background-color: #ffffff;
    color: #1a2c3e;
    /* padding: 2rem 1rem; */
    padding-top: 0;
    direction: rtl;
    line-height: 1.8;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
}

.hero-cost {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 20px;
}

    .hero-cost h1 {
        /* font-size: 2rem; */
        font-weight: 700;
        color: #080b3a;
        margin-bottom: 0.5rem;
        font-size: clamp(15px, 4vw, 3rem);
        white-space: nowrap;
    }

    .hero-cost p {
        /* color: #2c5a3b; */
        color: #080b3a;
        font-weight: 500;
        font-size: 1.2rem;
        /* background: #e9f3eb; */
        background: #080b3a0a;
        display: inline-block;
        padding: 0.3rem 1.5rem;
        border-radius: 50px;
    }

.cost-card {
    /* background: #ffffff; */
    /* border-radius: 32px; */
    /* box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05); */
    /* padding: 2rem; */
    margin-bottom: 2rem;
    /* border: 1px solid #e2edf2; */
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    /* border-right: 5px solid #080b3a; */
    /* padding-right: 1rem; */
    margin-bottom: 1.5rem;
    /* color: #1f3b2c; */
    color: #080b3a;
    width: fit-content;
    border-bottom: 2px solid #ccc;
    padding-bottom: 0px;
}

    .section-title:before {
        content: none;
    }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .input-group label {
        font-weight: 600;
        font-size: 1.8rem;
        color: #080b3a;
    }

    .input-group input,
    .input-group select,
    .input-group textarea {
        padding: 0.75rem 1rem;
        border: 1px solid #cfdfe8;
        border-radius: 24px;
        font-size: 1.5rem;
        background: #fefefe;
        transition: 0.2s;
        font-family: inherit;
    }

        .input-group input:focus,
        .input-group select:focus,
        .input-group textarea:focus {
            border-color: #2b7a3e;
            outline: none;
            box-shadow: 0 0 0 3px rgba(43, 122, 62, 0.1);
        }

.options-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.3rem;
}

.option-btn {
    background: #f4f9fc;
    border: 1px solid #cfdfe8;
    border-radius: 40px;
    padding: 0.5rem 1.2rem;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #1f3b2c;
}

    .option-btn.active {
        background: #080b3a;
        border-color: #080b3a;
        color: white;
    }

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

    .checkbox-group label {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-weight: normal;
        background: #f8fbfd;
        padding: 0.4rem 1rem;
        border-radius: 40px;
        border: 1px solid #e2edf2;
        cursor: pointer;
        font-size: 1.5rem;
    }

.radio-group {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

    .radio-group label {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-weight: normal;
        background: #f8fbfd;
        padding: 0.4rem 1rem;
        border-radius: 40px;
        border: 1px solid #e2edf2;
        cursor: pointer;
        font-size: 1.5rem;
    }

.range-price {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

    .range-price input {
        flex: 2;
    }

.price-display {
    background: #eef3f0;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    min-width: 130px;
    text-align: center;
}

.btn-disabled {
    /* background: #a0b8a8; */
    background: #080b3a;
    color: white;
    border: none;
    width: 100%;
    padding: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 50px;
    margin-top: 1rem;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    opacity: 0.7;
    margin-top: 40px;
}

.soon-badge {
    background: #f0b429;
    color: #2c2b26;
    font-size: 1.1rem;
    border-radius: 30px;
    padding: 0.2rem 0.8rem;
    margin-right: 0.8rem;
}

.article-wrapper {
    background: #ffffff;
    border-radius: 32px;
    /* box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05); */
    -webkit-box-shadow: 0 2px 10px 5px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 10px 5px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    margin-top: 50px;
    border: 1px solid #e2edf2;
}

.article-header {
    border-bottom: 2px solid #e2edf2;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .article-header h2 {
        font-size: 2rem;
        /* color: #1e4a2f; */
        color: #080b3a;
        margin-bottom: 0.5rem;
    }

.article-meta {
    color: #6c868e;
    font-size: 1.2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-content h3 {
    /* font-size: 1.7rem;
      color: #080b3a;
      margin: 1.5rem 0 0.8rem 0;
      padding-right: 0.5rem;
      border-right: 4px solid #080b3a; */
}

.article-content h4 {
    font-size: 1.6rem;
    color: #080b3a;
    margin: 1.2rem 0 0.6rem;
}

.article-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.article-content ul,
.article-content ol {
    margin: 0.8rem 1.5rem 1rem 0;
}

.article-content li {
    margin-bottom: 0.4rem;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
    font-size: 1.4rem;
    overflow-x: auto;
    display: block;
}

@media (max-width: 386px) {
    .article-content table {
        font-size: 1.2rem;
    }
}

@media (max-width: 340px) {
    .article-content table {
        font-size: 1rem;
    }
}

.article-content th,
.article-content td {
    border: 1px solid #cfdfe8;
    padding: 0.6rem;
    text-align: right;
}

.article-content th {
    background: #e9eaff;
    font-weight: 600;
    color: #080b3a;
}

.article-content blockquote {
    background: #e9eaff;
    border-right: 4px solid #cc9c33;
    padding: 0.8rem 1.2rem;
    margin: 1rem 0;
    font-style: italic;
    color: #080b3a;
}

.note-ai {
    font-size: 1.1rem;
    color: #6c868e;
    margin-top: 0.5rem;
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 700px) {
    body {
        /* padding: 1rem; */
    }

    .cost-card,
    .article-wrapper {
        padding: 1.2rem;
    }

    .article-header h2 {
        font-size: 1.4rem;
    }
}

.toast-msg {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #1e4a2f;
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    z-index: 999;
    font-size: 0.85rem;
}

.hidden-field {
    display: none;
}

#city {
    display: none;
    margin-top: 10px;
}

.call-link {
    background-color: #E67E22;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
    padding: 5px;
    border-radius: 20px;
    color: #fff;
    gap: 10px;
}

    .call-link:hover {
        background-color: #e67d22ca;
    }

@media(max-width: 371px) {
    .call-link {
        font-size: 14px;
    }
}

@media(max-width: 338px) {
    .call-link {
        font-size: 13px;
    }
}

.additional-information {
    margin-top: 50px;
}

.faq li h4 {
    position: relative;
}

/* .faq li svg {
      position: absolute;
      left: 5px;
      top: 50%;
      transform: translateY(-50%);
    } */

@media only screen and (max-width: 768px) {
    .about-back {
        background: #dadaff !important;
    }
}

@media only screen and (max-width: 768px) {
    .about-header-wrapper.faq-header {
        margin-right: 0px !important;
    }

    .faq-wrapper .accordion-head svg {
        width: 16px;
    }
}

@media only screen and (max-width: 480px) {
    .faq-wrapper .accordion-head svg {
        width: 14px;
    }
}

.design-villa-with-ai-wrapper .article-header .date {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #4f4f4f;
}

@media only screen and (max-width: 590px) {
    .article-header {
        display: block;
    }

    .design-villa-with-ai-wrapper .article-header .date {
        font-size: 14px;
    }
}

@media only screen and (max-width: 400px) {
    .design-villa-with-ai-wrapper .article-header h2 {
        font-size: 1.3rem;
    }

    .design-villa-with-ai-wrapper .article-header .date {
        font-size: 13px;
    }
}

@media only screen and (max-width: 370px) {
    .design-villa-with-ai-wrapper .article-header h2 {
        /* font-size: 1.2rem; */
        text-align: center;
    }
}

.mini-slider-wrapper .mini-slider-header .slider-header-title h4 {
    color: #090b3b;
}

.mini-slider-wrapper .slider-item-wrapper,
.mini-slider-wrapper .melk-list-wrapper {
    background: none;
}

section.container.mini-slider-wrapper {
    margin-top: 140px;
    margin-bottom: 140px;
    padding: 0;
}

@media(max-width:768px) {
    .mini-slider-wrapper .mini-slider-header {
        justify-content: center;
    }
}

.user-comment-item p {
    max-height: 220px;
    overflow-y: scroll;
}

.swiper-slide {
    align-self: flex-start;
}





/* باکس نتیجه درون صفحه */
.ai-inline-result-card {
    background: #ffffff;
    border: 2px dashed #1a2c3e;
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* لودینگ اختصاصی */
.ai-loading-box {
    text-align: center;
    padding: 40px 20px;
}

.ai-spinner {
    width: 55px;
    height: 55px;
    margin: 0 auto;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1a2c3e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ai-loading-bar-wrap {
    width: 260px;
    height: 6px;
    background-color: #eee;
    border-radius: 4px;
    margin: 15px auto 0;
    overflow: hidden;
}

.ai-loading-bar-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #1a2c3e, #d4af37, #1a2c3e);
    background-size: 200% 100%;
    animation: progressMove 2s linear infinite;
}

@keyframes progressMove {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* بخش نمایش تصویر و زوم */
.ai-result-header h3 {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
    font-weight: bold;
}

.ai-image-viewport {
    position: relative;
    width: 100%;
    height: 520px;
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-image-container {
    transition: transform 0.15s ease-out;
    transform-origin: center center;
}

    .ai-image-container img {
        max-width: 100%;
        max-height: 500px;
        object-fit: contain;
        display: block;
        user-select: none;
        pointer-events: none;
    }

.zoom-controls {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px;
    border-radius: 8px;
    z-index: 10;
}

    .zoom-controls button {
        background: #fff;
        border: none;
        color: #333;
        width: 34px;
        height: 34px;
        border-radius: 6px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .zoom-controls button:hover {
            background: #f0f0f0;
        }

.ai-btn-download {
    display: inline-block;
    background: #28a745;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
}

    .ai-btn-download:hover {
        background: #218838;
    }




