/* Latest Cars Section */
.latest-cars-section {
    padding: 0;
}

.latest-cars {
    padding: 60px 20px;
    background-color: #f0f2f5;
}

.latest-cars .section-top-text-1 {
    text-align: center;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    
    align-items: center;
}

.latest-cars .button1 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background-color: var(--secondary-color);
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    border: none;
    position: relative;
    cursor: pointer;
    transition-duration: .2s;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.116);
    padding: 8px;
    padding-left: 25px;
    transition-duration: .5s;
    font-size: 15px;
    width: fit-content !important;
    align-self: center;
}

.highlight {
    color: var(--secondary-color);
}

.mt20 {
    margin-top: 20px;
}

.page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1280px;
    margin: auto;
    box-sizing: border-box;
    
    flex-wrap: wrap;
}

.car-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    
}

.car-card {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 810px;
    width: 100%;
    overflow: hidden;
    position: relative;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 30px;
}

.car-image-container {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    height: 187px;
}

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

.image-counter {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 30px;
}

.spec-item {
    display: flex;
    gap: 5px;
    flex-direction: column;
    margin-bottom: 10px;
}

.spec-item:nth-child(2),
.spec-item:nth-child(3),
.spec-item:nth-child(4) {
    border-left: 1px solid #e0e0e0;
    padding-left: 20px;
}

.spec-icon {
    color: #666;
    font-size: 20px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-icon img {
    width: 100%;
    height: 100%;
}

.spec-text {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 10px;
    color: #888;
    font-weight: 500;
    margin-left: 10px;
}

.spec-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.spec-value.gasoline {
    color: #666;
}

.spec-title {
    display: flex;
}

.card-car-name {
    padding-top: 5px;
}

.price-tag {
    background-color: #ff9900;
    color: #fff;
    border-bottom-left-radius: 10px;
    text-align: right;
    line-height: 1.2;
    font-weight: 700;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
    padding: 10px 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 30px;
    height: fit-content;
}

.price-tag .msrp {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.price-tag .buy-for {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-decoration: line-through;
}

.price-tag .price {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}

.card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.new-tag {
    color: #ff9900;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    margin: 0;
}

.card-car-name a {
    color: var(--primary-color);
}

.car-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 5px 0;
}

.added {
    color: #555;
}

.sidebar-card {
    border-radius: 12px;
    width: 100%;
    max-width: 331px;
    box-sizing: border-box;
}

.sidebar-card .section-header {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

.logo-container {
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: inline-block;
}

.logo-container img {
    display: block;
    height: 24px;
    width: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    color: #fff;
    background: #e0e0e0;
    padding: 8px;
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-row.phone .contact-icon {
    background: #e02f2f;
}

.contact-row.whatsapp .contact-icon {
    background: #25d366;
}

.contact-row.email .contact-icon {
    background: #e02f2f;
}

.contact-details {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
}

.phone-number {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.contact-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-button:hover {
    background: #f9f9f9;
}

.contact-button-text {
    font-weight: 600;
    font-size: 16px;
    color: #555;
}

.contact-button.whatsapp .contact-button-text {
    color: #25d366;
}

.contact-button.email .contact-button-text {
    color: #e02f2f;
}

.location-section {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.location-icon {
    color: #666;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.location-text {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.map-container {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.section {
    padding: 60px 20px;
}

.section-top-text-1 {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Contact Form CSS */
.contact-form-container {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.sidebar {
    background-color: #fff;
    border-right: 1px solid #e0e0e0;
    padding: 30px;
    width: 35%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-header {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.contact-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.contact-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.phone-details {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.show-number-link {
    font-size: 14px;
    color: #ff9900;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.contact-button:hover {
    background-color: #f9f9f9;
}

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

.contact-button.email .contact-icon {
    background-color: #e02f2f;
}

.contact-button-text {
    font-weight: 600;
    font-size: 14px;
    color: #555;
    text-transform: uppercase;
}

.contact-button.whatsapp .contact-button-text {
    color: #25d366;
}

.contact-button.email .contact-button-text {
    color: #e02f2f;
}

.location-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: auto;
}

.location-icon {
    color: #666;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.location-text {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.form-content {
    padding: 30px;
    width: 65%;
    box-sizing: border-box;
}

.form-header {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.field-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.form-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.form-label .required {
    color: #e02f2f;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.privacy-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.privacy-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
}

.privacy-checkbox input[type="checkbox"]:checked {
    background-color: #e02f2f;
    border-color: #e02f2f;
}

.privacy-checkbox input[type="checkbox"]:checked::after {
    content: '\2713';
    font-size: 12px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.privacy-checkbox-label {
    font-size: 14px;
    color: #555;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background-color: #e02f2f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #c02a2a;
}

/* Responsive Styles for Car Cards */
@media (max-width: 768px) {
    .car-cards-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .car-card {
        flex-direction: column;
        align-items: center;
        width: 320px;
        margin: 0 auto;
        margin-bottom: 30px;
    }

    .car-image-container {
        width: 100%;
        height: 200px;
    }

    .card-content {
        padding: 0 20px 20px 20px;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .spec-item:nth-child(2),
    .spec-item:nth-child(3),
    .spec-item:nth-child(4) {
        border-left: none;
        padding-left: 0;
    }

    .card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .price-tag {
        width: 100%;
        text-align: left;
        padding: 10px 15px;
        clip-path: none;
        border-radius: 8px;
    }

    .car-title {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .page-container {
        
        width: 100% !important;
        max-width: 100%;

    }

    .sidebar-card {
        max-width: 100%;
    }
}

@media (min-width: 993px) {
    .sidebar-card {
        position: sticky;
        top: 20px;
    }
}