* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    background-color: #F2F2F2;
    color: #2B2B2B;    
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

header img { 
    height: 40px; 
}

.logo {
    max-width: 300px;
    height: auto;
}

.solo-desktop {
    display: inline-block;
    color: #A4D01F; 
    font-weight: 600;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 12px;
    background: #fff;    
    text-align: center;     
    box-shadow: 0 0 10px #A4D01F;
}

.styled-heading {
    display: inline-flex;    
    align-items: center;
    margin-bottom: 10px;
    border: 1px solid #234181;
    border-radius: 8px;    
    overflow: hidden;
    line-height: 1;
}

.styled-heading .left {
    padding: 16px;
    font-size: 22px;
    background-color: #fff;
    color: #000;    
}

.styled-heading .right {
    display: inline-block;
    padding: 16px 12px;    
    font-size: 28px;
    background-color: #234181;
    color: #fff;    
    text-transform: uppercase;
}

.offerta {
    margin-bottom: 30px;
    color: #A4D01F; 
    font-weight: 600;
}

.car-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.car-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.anticipo-zero {
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: #dde4f5;
    color: #234181;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.promo {
    display: flex;
    justify-content: center;
    align-items: center;    
    flex-wrap: wrap;
    gap: 20px;
    font-size: 70px;
    font-weight: bold;
    color: #A4D01F;
}

.promo-left {
    display: flex;
    flex-direction: column;
    font-size: 100px;
}

.promo-left .old-price {
    margin-top: -14px;
    font-size: 14px;
    font-style: italic;    
    font-weight: normal;
    color: gray;
    text-align: left;
}

.promo-right {
    display: flex;
    flex-direction: column;
    font-size: 18px;    
    font-weight: 600;
    font-style: italic;
    color: #000;
    text-align: left;
}

.car-select {
    margin: 20px 0;
}

.car-select label {
    display: block;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #234181;
}

.car-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.car-card {
    background: white;
    border: 3px solid rgba(159, 159, 159, 0.211);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.car-card:hover {
    border-color: #A4D01F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164, 208, 31, 0.3);
}

.car-card.active {
    border-color: #234181;
    background-color: #f8f9ff;
    box-shadow: 0 4px 12px rgba(35, 65, 129, 0.2);
}

.car-card img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.car-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #2B2B2B;
    margin-bottom: 8px;
    line-height: 1.2;
}

.car-card .card-price {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #A4D01F;
}

select {
    width: 100%;
    margin-top: 5px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(159, 159, 159, 0.211);
    font-size: 16px;    
}

.car-image {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    margin: 20px 0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

input {
    padding: 12px;    
    border: none;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 0 0 3px rgba(159, 159, 159, 0.211);
}

input:focus,
input:active,
select:focus,
select:active,
textarea:focus,
textarea:active {
    outline: none;
    border-color: #A4D01F;
    box-shadow: 0 0 0 3px rgba(164, 208, 31, 0.564);
}

.cta-text {
    margin-top: 30px;
    margin-bottom: 5px;
    font-size: 22px;
    font-weight: 600;
    color: #234181;    
}

button {
    background-color: #234181;
    color: #fff;
    margin-top: 20px;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;    
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    background-color: #A4D01F;
}

.error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 2px;
    margin-bottom: 8px;
    display: block;
    height: 18px; 
}


@media(max-width: 600px) {
    header {
        justify-content: center;
    }
    .solo-desktop {
        display: none;
    }
    .logo {
        max-width: 220px;
    }
    .offerta {
        font-size: 20px;
    }
    .anticipo-zero {
        position: relative;
        top: -40px;
        right: 0px;
        font-size: 22px;
    }
    .promo {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        font-size: 40px;
    }
    .promo-left {
        font-size: 40px;
    }
    .promo-left .new-price {
        font-size: 70px;
    }
    .promo-left .old-price {
        margin-top: -4px;
        font-size: 12px;
    }
    .promo-right {
        align-self: flex-end;        
        font-size: 16px;
        text-align: right;
    }   
    .styled-heading {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .styled-heading .left,
    .styled-heading .right {
        width: 100%;
        justify-content: center;
    }
    .cta-text {
        font-size: 16px;
    }
    .car-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .car-card {
        padding: 12px;
    }
    .car-card h3 {
        font-size: 13px;
    }
    .car-card .card-price {
        font-size: 14px;
    }
}