
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

header {
    background-color: var(--primary);
    color: white;
    padding: 20px 0;
    text-align: center;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}




.important-notes ul li {
    margin-right: 15px;
}

.calculator-section {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.result-section {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: none;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px;
    display: inline-block;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

select, input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
}

button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
}

.result-value {
    font-weight: 700;
}

.total {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #ddd;
}

.payment-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.payment-method {
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-method:hover {
    border-color: var(--secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-method img {
    width: 30px;
    height: auto;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.action-buttons button {
    flex: 1;
}

.btn-secondary {
    background-color: var(--light);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: #d5dbdb;
}

.btn-success {
    background-color: var(--success);
}

.btn-success:hover {
    background-color: #219955;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }

    .filter-row{
        flex-direction: column;
    }

    .total {
        display: block;
    }


    .logoDivDad{
        flex-flow: column-reverse;
    }


    .logoDivDad {
        display: none !important;
    }



}

/* Additional styles for car details */
.car-details-container {
    margin-top: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
}

.car-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.car-detail-label {
    font-weight: 600;
    color: var(--dark);
}

.car-detail-value {
    font-weight: 500;
}

.filter-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f0f8ff;
    border-radius: 8px;
}

.filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    flex: 1;
}

.car-list {
    display: none;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

.car-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.car-item:hover {
    background-color: #f5f5f5;
}

.car-item:last-child {
    border-bottom: none;
}

.car-model {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

.car-manufacturer {
    color: #666;
    margin-bottom: 5px;
}

.car-price {
    font-weight: 600;
    color: var(--accent);
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error-message {
    color: var(--accent);
    text-align: center;
    padding: 20px;
}

.contact-section {
    margin-top: 30px;
    padding: 20px;
    background: #f0f8ff ;
    border-radius: 8px;
    border: 1px solid #eee;
}

.contact-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary);
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}



/* Add these styles to your existing CSS */
.calculator-section {
    transition: all 0.3s ease;
}

.result-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

/* @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
} */

/* Loading spinner for payment processing */
.loading-spinner {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.loading-spinner.active {
    display: block;
}

.loading-spinner::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s ease-in-out infinite;
}










/* تنسيقات قسم السيارات المتاحة */
    .featured-cars-section {
        padding: 30px 15px;
        background-color: #f8f9fa;
        margin-top: 40px;
        border-radius: 12px;
        border: 1px solid #eee;
    }

    .car-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    /* تنسيق بطاقة السيارة */
    .car-card {
        background: #fff;
        border: none;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        transition: transform 0.3s, box-shadow 0.3s;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .car-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .car-card-img-wrapper {
        position: relative;
        padding-top: 66.66%; /* نسبة عرض إلى ارتفاع 3:2 */
        overflow: hidden;
        cursor: pointer;
    }

    .car-card-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .car-card:hover .car-card-img {
        transform: scale(1.05);
    }

    .badge-year {
        position: absolute;
        top: 10px;
        left: 10px;
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.85rem;
        z-index: 2;
    }

    .badge-status {
        position: absolute;
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.85rem;
        font-weight: bold;
        z-index: 2;
    }
    .bg-out-of-stock { background-color: #dc3545; color: white; }

    .car-card-body {
        padding: 1.25rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .car-title {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #2c3e50;
    }

    .car-price {
        font-size: 1.25rem;
        font-weight: 700;
        color: #0d6efd;
        margin-bottom: 1rem;
    }
    
    /* تعديل بسيط لزر عرض الكل */
    .view-all-cars {
        text-align: center;
    }

    /* إضافة فئات مساعدة إذا لم تكن موجودة في calcStyle.css */
    .d-none { display: none !important; }
    .text-center { text-align: center; }
    .text-muted { color: #6c757d !important; }
    .fw-bold { font-weight: 700 !important; }
    .my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
    .py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    .me-1 { margin-right: 0.25rem !important; }
    .ms-2 { margin-left: 0.5rem !important; }
    .mb-3 { margin-bottom: 1rem !important; }
    .w-100 { width: 100% !important; }
    .mt-auto { margin-top: auto !important; }
    .py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
    
    /* استيراد مكتبة الأيقونات Font Awesome إذا لم تكن موجودة */
    @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');












@keyframes spin {
    to { transform: rotate(360deg); }
}