/* =====================================================================
   مرحله ۵۷ — «پکیج خودتو بساز» / تخمین‌گر هزینه زنده
   استایل دکمه‌ی باز/بسته‌کننده + پنل ویزارد چندمرحله‌ای
===================================================================== */

.estimator-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.estimator-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    border: 1px solid rgba(var(--color-primary-rgb), 0.4);
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.18), rgba(var(--color-primary-light-rgb), 0.1));
    color: #e5f7f1;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.estimator-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(var(--color-primary-rgb), 0.25);
}

.estimator-toggle-icon { font-size: 18px; }

.estimator-toggle-arrow {
    transition: transform .2s ease;
}

.estimator-toggle-btn[aria-expanded="true"] .estimator-toggle-arrow {
    transform: rotate(180deg);
}

.estimator-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
    margin-top: 18px;
}

.estimator-panel.open {
    grid-template-rows: 1fr;
}

.estimator-panel-inner {
    overflow: hidden;
}

.estimator-box {
    max-width: 760px;
    margin: 0 auto;
    background: #101413;
    border: 1px solid #24433c;
    border-radius: 18px;
    padding: 22px;
}

.estimator-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.estimator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #24433c;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}

.estimator-dot.active {
    background: var(--color-primary-light);
    transform: scale(1.3);
}

.estimator-dot.done {
    background: var(--color-primary);
}

.estimator-step-title {
    text-align: center;
    font-size: 17px;
    color: #e5f7f1;
    margin-bottom: 4px;
}

.estimator-step-desc {
    text-align: center;
    font-size: 12.5px;
    color: #9fb3ac;
    margin-bottom: 18px;
}

.estimator-group {
    background: #14201d;
    border: 1px solid #24433c;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.estimator-group-title {
    font-size: 13.5px;
    color: #c7d5cf;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.estimator-group-required {
    color: #e0a942;
    font-size: 11px;
}

.estimator-group-cap {
    color: #7d938b;
    font-size: 11px;
    margin-right: auto;
}

.estimator-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px dashed #24433c;
}

.estimator-item-row:first-of-type { border-top: none; }

.estimator-item-info { flex: 1; min-width: 0; }

.estimator-item-name {
    font-size: 13.5px;
    color: #e5f7f1;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.estimator-item-price {
    font-size: 12px;
    color: var(--color-primary-light);
}

.estimator-item-price.contact { color: #e0a942; }

.estimator-item-note {
    font-size: 11px;
    color: #7d938b;
    margin-top: 2px;
    line-height: 1.7;
}

.estimator-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.estimator-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid #24433c;
    background: #18211f;
    color: #e5f7f1;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
}

.estimator-qty-btn:disabled { opacity: .35; cursor: not-allowed; }

.estimator-qty-value {
    min-width: 18px;
    text-align: center;
    font-size: 13.5px;
    color: #e5f7f1;
}

.estimator-radio, .estimator-checkbox {
    width: 17px;
    height: 17px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.estimator-empty-note {
    text-align: center;
    color: #7d938b;
    font-size: 12.5px;
    padding: 10px 0;
}

.estimator-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.estimator-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 13.5px;
    cursor: pointer;
    font-family: inherit;
}

.estimator-btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.estimator-btn-primary:hover { background: var(--color-primary-light); }

.estimator-btn-muted {
    background: #18211f;
    border: 1px solid #24433c;
    color: #c7d5cf;
}

.estimator-btn-wa {
    background: #1fae5c;
    color: #fff;
}

.estimator-total-bar {
    position: sticky;
    bottom: 0;
    margin-top: 16px;
    background: #14201d;
    border: 1px solid rgba(var(--color-primary-rgb), 0.4);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.estimator-total-label { font-size: 12.5px; color: #9fb3ac; }

.estimator-total-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-primary-light);
}

.estimator-total-value .estimator-total-unit {
    font-size: 12px;
    font-weight: normal;
    color: #9fb3ac;
    margin-right: 4px;
}

.estimator-summary-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.estimator-summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px dashed #24433c;
    font-size: 13px;
    color: #c7d5cf;
}

.estimator-summary-list li:first-child { border-top: none; }

.estimator-summary-empty {
    text-align: center;
    color: #7d938b;
    font-size: 13px;
    padding: 14px 0;
}

.estimator-city-select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #24433c;
    background: #18211f;
    color: #e5f7f1;
    font-family: inherit;
}

@media (max-width: 600px) {
    .estimator-box { padding: 16px; border-radius: 14px; }
    .estimator-toggle-btn { padding: 12px 20px; font-size: 13.5px; }
}
