/* GBZ Styles - گوش به زنگ */
.gbz-service-wrapper {
    max-width: 600px;
    margin: 20px auto;
    font-family: inherit;
    font-size: 14px;
}

/* وضعیت لاگین نبودن */
.gbz-login-required {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.gbz-login-required h3 {
    color: #a9020a;
    margin-bottom: 10px;
    font-size: 18px;
}

.gbz-login-required p {
    color: #6c757d;
    margin-bottom: 20px;
}

/* سرویس فعال */
.gbz-active-service {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.gbz-status-header {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e9ecef;
}

.gbz-status-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.gbz-status-badge.active {
    background: #28a745;
    color: white;
}

.gbz-status-header h3 {
    margin: 0;
    font-size: 16px;
    color: #495057;
}

.gbz-service-details {
    padding: 20px;
}

.gbz-detail-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.gbz-detail-item {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
}

.gbz-detail-item.full-width {
    flex: 100%;
}

.gbz-detail-label {
    font-weight: 600;
    color: #495057;
}

.gbz-detail-value {
    color: #6c757d;
}

.gbz-detail-value.success {
    color: #28a745;
}

/* سرویس غیرفعال */
.gbz-inactive-service {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.gbz-welcome-section {
    padding: 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.gbz-welcome-section h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #a9020a;
}

.gbz-welcome-text {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
}

/* فرم چند مرحله‌ای */
.gbz-multi-step-form {
    padding: 25px;
}

.gbz-step {
    display: none;
}

.gbz-step.active {
    display: block;
}

.gbz-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.gbz-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    background: #6c757d;
    color: white;
}

.gbz-step-number.active {
    background: #a9020a;
}

.gbz-step-header h4 {
    margin: 0;
    font-size: 16px;
    color: #495057;
}

/* بخش‌های فرم */
.gbz-form-section {
    margin-bottom: 30px;
}

.gbz-form-section h5 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #495057;
    font-weight: 600;
}

/* Slider Styles */
.gbz-slider-container {
    margin-bottom: 20px;
}

.gbz-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px;
}

.gbz-slider-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #495057;
    transition: all 0.2s ease;
}

.gbz-slider-btn:hover {
    background: #f8f9fa;
    border-color: #a9020a;
    color: #a9020a;
}

.gbz-slider-value {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.gbz-slider-track {
    position: relative;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin: 20px 0;
    cursor: pointer;
}

.gbz-slider-fill {
    position: absolute;
    height: 100%;
    background: #a9020a;
    border-radius: 3px;
    width: 0%;
    right: 0; /* تغییر از left به right */
}

.gbz-slider-thumb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #a9020a;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    right: 0%; /* تغییر از left به right */
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gbz-slider-thumb:hover {
    transform: translateY(-50%) scale(1.1);
}

.gbz-slider-thumb.pulse {
    animation: gbzPulse 0.6s ease;
}

@keyframes gbzPulse {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
    100% { transform: translateY(-50%) scale(1); }
}

.gbz-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
}
/* استایل چک‌باکس‌های ضمانت - نسخه مطمئن */
.gbz-checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.gbz-checkbox-card {
    display: block;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    text-align: center;
}

.gbz-checkbox-card:hover {
    border-color: #a9020a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(169, 2, 10, 0.15);
}

/* حالت انتخاب شده - بسیار واضح */
.gbz-checkbox-card.selected {
    border-color: #a9020a;
    background: linear-gradient(135deg, #fff5f5, #ffe6e6);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(169, 2, 10, 0.2);
}

.gbz-checkbox-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.gbz-checkbox-text {
    font-size: 14px;
    color: #495057;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-grow: 1;
    text-align: right;
}

.gbz-checkbox-card.selected .gbz-checkbox-text {
    color: #a9020a;
    font-weight: 700;
}

.gbz-checkbox-checkmark {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 10px;
}

.gbz-checkbox-card.selected .gbz-checkbox-checkmark {
    background: #a9020a;
    border-color: #a9020a;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(169, 2, 10, 0.3);
}

/* مخفی کردن کامل چک‌باکس اصلی */
.gbz-checkbox-card input[type="checkbox"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* انیمیشن پالس */
@keyframes checkboxPulse {
    0% { transform: translateY(-2px) scale(1); }
    50% { transform: translateY(-2px) scale(1.05); }
    100% { transform: translateY(-2px) scale(1); }
}

.gbz-checkbox-card.pulse-animation {
    animation: checkboxPulse 0.3s ease;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .gbz-checkbox-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gbz-checkbox-card {
        padding: 12px 10px;
    }
    
    .gbz-checkbox-text {
        font-size: 13px;
    }
    
    .gbz-checkbox-checkmark {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .gbz-checkbox-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .gbz-checkbox-card {
        padding: 10px 8px;
        border-radius: 10px;
    }
    
    .gbz-checkbox-text {
        font-size: 12px;
    }
    
    .gbz-checkbox-checkmark {
        width: 20px;
        height: 20px;
        font-size: 11px;
        margin-right: 8px;
    }
}

/* فیلدهای لوکیشن */
.gbz-location-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gbz-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    color: #495057;
}

.gbz-checkbox-simple {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.gbz-checkbox-simple input {
    margin: 0;
}

/* انتخاب بسته */
.gbz-package-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gbz-package-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    background: white;
}

.gbz-package-card:hover {
    border-color: #a9020a;
}

.gbz-package-card.selected {
    border-color: #a9020a;
    background: #fff5f5;
}

.gbz-package-header {
    margin-bottom: 15px;
}

.gbz-package-header h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #495057;
}

.gbz-package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.gbz-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #a9020a;
}

.gbz-price-currency {
    font-size: 14px;
    color: #6c757d;
}

.gbz-package-features {
    margin-bottom: 20px;
}

.gbz-feature-item {
    padding: 8px 0;
    font-size: 13px;
    color: #495057;
    border-bottom: 1px solid #f8f9fa;
}

.gbz-feature-item:last-child {
    border-bottom: none;
}

.gbz-package-select {
    display: block;
    cursor: pointer;
}

.gbz-package-select input {
    display: none;
}

.gbz-package-btn {
    display: block;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.gbz-package-card.selected .gbz-package-btn {
    background: #a9020a;
    color: white;
    border-color: #a9020a;
}

/* دکمه‌ها */
.gbz-step-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

.gbz-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.gbz-btn-primary {
    background: #a9020a;
    color: white;
}

.gbz-btn-primary:hover {
    background: #8a0208;
}

.gbz-btn-secondary {
    background: #6c757d;
    color: white;
}

.gbz-btn-secondary:hover {
    background: #5a6268;
}

/* لودینگ */
.gbz-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gbz-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #a9020a;
    border-radius: 50%;
    animation: gbzSpin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes gbzSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gbz-loading p {
    color: white;
    margin: 0;
    font-size: 14px;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .gbz-service-wrapper {
        margin: -20px;
        max-width: none;
    }
    
    .gbz-detail-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .gbz-package-selection {
        grid-template-columns: 1fr;
    }
    
    .gbz-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .gbz-step-actions {
        flex-direction: column;
    }
    
    .gbz-btn {
        width: 100%;
    }
}
@keyframes checkboxPulse {
    0% { transform: translateY(-2px) scale(1); }
    50% { transform: translateY(-2px) scale(1.05); }
    100% { transform: translateY(-2px) scale(1); }
}

.gbz-checkbox-card.pulse {
    animation: checkboxPulse 0.3s ease;
}
/* راه حل ساده برای نمایش ۲ ستونی در موبایل */
@media (max-width: 768px) {
    .gbz-checkbox-group {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: repeat(4, auto) !important;
        gap: 10px !important;
    }
    
    .gbz-checkbox-card {
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* اطمینان از نمایش مرتب */
    .gbz-checkbox-card:nth-child(1) { grid-column: 1; grid-row: 1; }
    .gbz-checkbox-card:nth-child(2) { grid-column: 2; grid-row: 1; }
    .gbz-checkbox-card:nth-child(3) { grid-column: 1; grid-row: 2; }
    .gbz-checkbox-card:nth-child(4) { grid-column: 2; grid-row: 2; }
    .gbz-checkbox-card:nth-child(5) { grid-column: 1; grid-row: 3; }
    .gbz-checkbox-card:nth-child(6) { grid-column: 2; grid-row: 3; }
    .gbz-checkbox-card:nth-child(7) { grid-column: 1; grid-row: 4; }
    .gbz-checkbox-card:nth-child(8) { grid-column: 2; grid-row: 4; }
}