/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo {
    text-align: center;
    flex: 1;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.logo p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-link.whatsapp {
    background: rgba(37, 211, 102, 0.2);
    border: 1px solid rgba(37, 211, 102, 0.5);
}

.contact-link.whatsapp:hover {
    background: rgba(37, 211, 102, 0.3);
}

.contact-link.phone {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-link.phone:hover {
    background: rgba(255, 255, 255, 0.2);
}

.contact-link i {
    font-size: 1.2rem;
}

/* Main Content */
.main {
    padding: 3rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h2 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-contact {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Cars Section */
.cars-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 3rem;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.car-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.car-image {
    height: 250px;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.05);
}

.car-info {
    padding: 1.5rem;
}

.car-info h3 {
    font-size: 1.4rem;
    color: #1e3c72;
    margin-bottom: 1rem;
    font-weight: 600;
}

.price-info {
    margin-bottom: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

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

.price-item .label {
    font-weight: 500;
    color: #666;
}

.price-item .value {
    font-weight: 600;
    color: #1e3c72;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

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

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

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-phone {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.btn-phone:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.select-car {
    width: 100%;
    margin-top: 1rem;
}

/* Contact Section */
.contact-section {
    margin-top: 4rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
}

.contact-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 3rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.whatsapp-card .contact-icon {
    color: #25d366;
}

.phone-card .contact-icon {
    color: #1e3c72;
}

.tiktok-card .contact-icon {
    color: #000000;
}

.facebook-card .contact-icon {
    color: #1877f2;
}

.email-card .contact-icon {
    color: #ea4335;
}

.contact-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-card p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.whatsapp-card .contact-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.whatsapp-card .contact-btn:hover {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.phone-card .contact-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.phone-card .contact-btn:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.tiktok-card .contact-btn {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
}

.tiktok-card .contact-btn:hover {
    background: linear-gradient(135deg, #333333 0%, #000000 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.facebook-card .contact-btn {
    background: linear-gradient(135deg, #1877f2 0%, #0d5bb8 100%);
    color: white;
}

.facebook-card .contact-btn:hover {
    background: linear-gradient(135deg, #0d5bb8 0%, #1877f2 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.email-card .contact-btn {
    background: linear-gradient(135deg, #ea4335 0%, #d33b2c 100%);
    color: white;
}

.email-card .contact-btn:hover {
    background: linear-gradient(135deg, #d33b2c 0%, #ea4335 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 67, 53, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notice Modal */
.notice-modal .modal-content {
    max-width: 600px;
    margin: 10% auto;
}

.notice-content {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 15px;
    overflow: hidden;
}

.notice-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.notice-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.notice-header i {
    margin-left: 10px;
    font-size: 2rem;
}

.notice-body {
    padding: 0 2rem 1rem;
    text-align: center;
}

.notice-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 500;
}

.notice-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.notice-footer .btn {
    background: white;
    color: #dc3545;
    font-weight: 700;
    padding: 12px 30px;
    font-size: 1.1rem;
}

.notice-footer .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Car Modal */
.car-modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 15px;
    left: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #000;
}

.car-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.car-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #1e3c72;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-specs h2 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.price-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.price-details .price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.price-details .price-item:last-child {
    border-bottom: none;
}

.price-details .label {
    font-weight: 500;
    color: #666;
}

.price-details .value {
    font-weight: 600;
    color: #1e3c72;
}

/* Version Modal */
.version-modal-content {
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.version-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.version-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.version-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.version-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.version-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.version-card:hover {
    border-color: #1e3c72;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.15);
}

.version-icon {
    font-size: 3rem;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.version-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.version-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.version-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.version-card .btn {
    width: 100%;
}

.payment-options {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.payment-options h4 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: center;
}

.payment-choices {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.payment-choice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-choice:hover {
    border-color: #1e3c72;
    background: #f8f9fa;
}

.payment-choice input[type="radio"] {
    margin: 0;
    transform: scale(1.2);
}

.payment-choice input[type="radio"]:checked + span {
    color: #1e3c72;
    font-weight: 600;
}

.payment-choice:has(input:checked) {
    border-color: #1e3c72;
    background: #e3f2fd;
}

.monthly-payment {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #28a745;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Form Modal */
.form-modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.form-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.form-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

#applicationForm {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.category-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.category-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-option:hover {
    border-color: #1e3c72;
    background-color: #f8f9fa;
}

.category-option input[type="radio"] {
    margin-left: 10px;
    transform: scale(1.2);
}

.category-option input[type="radio"]:checked + span {
    color: #1e3c72;
    font-weight: 600;
}

.category-option:has(input:checked) {
    border-color: #1e3c72;
    background-color: #e3f2fd;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.file-upload {
    margin-top: 1rem;
}

.file-upload input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #1e3c72;
    border-radius: 8px;
    background-color: #f8f9fa;
    cursor: pointer;
}

.file-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.required-docs {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.required-docs h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.required-docs ul {
    list-style: none;
    padding: 0;
}

.required-docs li {
    padding: 0.3rem 0;
    color: #666;
}

.required-docs li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-left: 5px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.form-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    text-align: center;
}

.form-notice p {
    color: #856404;
    margin: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-notice i {
    color: #f39c12;
}

/* Loading Modal */
.loading-content {
    text-align: center;
    padding: 3rem;
    max-width: 400px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e3c72;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Success Modal */
.success-content {
    text-align: center;
    padding: 3rem;
    max-width: 400px;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-content h2 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-contact {
        flex-direction: column;
        align-items: center;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .car-details {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .category-selection {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .version-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .payment-choices {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-cards .contact-card {
        padding: 1.5rem;
    }
    
    .contact-cards .contact-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .contact-section {
        margin-top: 2rem;
        padding: 2rem 0;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 98%;
    }
    
    .car-modal-content,
    .form-modal-content {
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .car-info {
        padding: 1rem;
    }
    
    .form-header {
        padding: 1.5rem;
    }
    
    #applicationForm {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .modal {
        display: none !important;
    }
    
    .header {
        background: #1e3c72 !important;
        -webkit-print-color-adjust: exact;
    }
}

