* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: #ffffff;
}

/* VIN Consultation Section */
.vin-consultation {
    background: #f8f8f8;
    padding: 80px 0 0 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.vin-consultation-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    background: white;
    padding: 60px 70px;
    border-radius: 0;
}

.vin-form-wrapper {
    flex: 1;
    max-width: 580px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

/* Form Styles */
.vin-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: white;
    color: #333;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input::placeholder {
    color: #b0b0b0;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #666;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.59 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
    cursor: pointer;
}

.required-mark {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #eb0a1e;
    font-size: 18px;
    pointer-events: none;
}

/* VIN Input Boxes */
.vin-group {
    margin: 30px 0 15px 0;
}

.vin-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
}

.vin-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.vin-char {
    width: 32px !important;
    height: 44px;
    padding: 0 !important;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #d0d0d0 !important;
    border-radius: 4px;
    background: white;
    color: #000;
    text-transform: uppercase;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.vin-char:focus {
    outline: none;
    border-color: #eb0a1e !important;
    background: #fff5f5;
}

.vin-char.filled {
    background: #f0f0f0;
}

.vin-instructions {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
    text-align: center;
}

/* VIN Help Text */
.vin-help {
    margin-bottom: 35px;
    text-align: left;
}

.vin-help p {
    font-size: 13px;
    color: #888;
}

.vin-help-link {
    color: #666;
    text-decoration: underline;
}

.vin-help-link:hover {
    color: #000;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 18px 40px;
    background: #d0d0d0;
    color: #888;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.btn-submit:not(:disabled) {
    background: #eb0a1e;
    color: white;
    cursor: pointer;
}

.btn-submit:not(:disabled):hover {
    background: #c70818;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 10, 30, 0.3);
}

/* Loading state for submit button */
.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

/* Vehicle Image */
.vin-vehicle-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
}

.vin-vehicle-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.15));
}

/* VIN Info Section */
.vin-info {
    background: white;
    padding: 60px 70px 80px 70px;
    margin-top: 0;
}

.vin-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.vin-info>p {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 900px;
}

/* VIN Examples Carousel */
.vin-examples-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

/* Desktop: show 3 items */
.vin-example-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.vin-example-item:hover {
    transform: translateY(-5px);
}

.vin-example-item .example-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.vin-example-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vin-example-item h4 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

/* Carousel Dots */
.carousel-dots {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.carousel-dots.active {
    display: flex;
}

.dot {
    width: 32px;
    height: 6px;
    background: #d0d0d0;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.dot.active {
    background: #eb0a1e;
    width: 40px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .vin-consultation-content {
        gap: 50px;
        padding: 50px 40px;
    }

    .vin-info {
        padding: 50px 40px 70px 40px;
    }

    .vin-char {
        width: 28px !important;
        height: 44px;
    }

    /* Carousel: Show 2 items on tablet */
    .vin-example-item {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 968px) {
    .vin-consultation-content {
        flex-direction: column;
        padding: 40px 30px;
    }

    .vin-form-wrapper {
        max-width: 100%;
    }

    .section-title {
        font-size: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .vin-vehicle-image {
        max-width: 500px;
        width: 100%;
    }

    .vin-vehicle-image img {
        width: 100%;
        height: auto;
    }

    .vin-info {
        padding: 40px 30px 60px 30px;
    }

    .vin-info h3 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {

    /* Carousel: Show 1 item on mobile with auto-scroll */
    .vin-example-item {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .carousel-track {
        gap: 0;
    }

    .carousel-dots.active {
        display: flex;
    }

    .vin-example-item .example-image {
        height: 250px;
    }
}

@media (max-width: 640px) {
    .vin-consultation {
        padding: 40px 0 0 0;
    }

    .container {
        padding: 0 15px;
    }

    .vin-consultation-content {
        padding: 25px 15px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    /* VIN inputs para móvil - 2 filas */
    .vin-group {
        margin: 20px 0 10px 0;
    }

    .vin-label {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .vin-inputs {
        gap: 5px;
        justify-content: center;
    }

    .vin-char {
        width: calc((100% - 80px) / 9) !important;
        max-width: 28px;
        min-width: 22px;
        height: 38px;
        font-size: 14px;
        border-radius: 3px;
    }

    .vin-instructions {
        font-size: 11px;
        margin-top: 8px;
    }

    .form-group input,
    .form-group select {
        padding: 14px 16px;
        font-size: 14px;
    }

    .vin-info {
        padding: 30px 20px 50px 20px;
    }

    .vin-info h3 {
        font-size: 24px;
    }

    .vin-info>p {
        font-size: 15px;
        margin-bottom: 35px;
    }

    .vin-example-item img {
        height: 220px;
    }

    .vin-example-item h4 {
        font-size: 16px;
        padding: 15px 20px;
    }
}