@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Default Theme */
:root {
    --primary-color: #4169e1; /* Royal Blue */
    --primary-color-dark: #314d8a; /* Darker shade of Royal Blue */
    --secondary-color: #32cd32; /* Lime Green */
    --background-color: #f0f0f0; /* Light Gray */
    --text-color: #333333; /* Dark Gray */
    --header-background: #ffffff; /* White */
    --cta-background: #32cd32; /* Lime Green */
    --cta-hover-background: #2da22a; /* Darker shade of Lime Green */
    --cta-text-color: #ffffff; /* White */
    --card-background: #ffffff; /* White */
    --card-shadow: rgba(0, 0, 0, 0.1); /* Light shadow */
    --footer-background: #314d8a; /* Darker shade of Royal Blue */
    --footer-text-color: #ffffff; /* White */
    --section-background: #ffffff; /* White for specific sections */
}

/* Theme 1 */
.theme1 {
    --primary-color: #0a1f44; /* Dark Blue */
    --primary-color-dark: #081837; /* Darker shade of Dark Blue */
    --secondary-color: #ff6f61; /* Coral Orange */
    --background-color: #f0f0f0; /* Light Gray */
    --text-color: #333333; /* Dark Gray */
    --header-background: #ffffff; /* White */
    --cta-background: #0a1f44; /* Dark Blue */
    --cta-hover-background: #081837; /* Darker shade of Dark Blue */
    --cta-text-color: #ffffff; /* White */
    --card-background: #ffffff; /* White */
    --card-shadow: rgba(0, 0, 0, 0.1); /* Light shadow */
    --footer-background: #081837; /* Darker shade of Dark Blue */
    --footer-text-color: #ffffff; /* White */
    --section-background: #ffffff; /* White for specific sections */
}

/* Theme 2 */
.theme2 {
    --primary-color: #ff8c00; /* Orange */
    --primary-color-dark: #cc7000; /* Darker shade of Orange */
    --secondary-color: #32cd32; /* Lime Green */
    --background-color: #f0f0f0; /* Light Gray */
    --text-color: #333333; /* Dark Gray */
    --header-background: #ffffff; /* White */
    --cta-background: #ff8c00; /* Orange */
    --cta-hover-background: #cc7000; /* Darker shade of Orange */
    --cta-text-color: #ffffff; /* White */
    --card-background: #ffffff; /* White */
    --card-shadow: rgba(0, 0, 0, 0.1); /* Light shadow */
    --footer-background: #cc7000; /* Darker shade of Orange */
    --footer-text-color: #ffffff; /* White */
    --section-background: #ffffff; /* White for specific sections */
}

/* Disable horizontal scrolling */
body {
    overflow-x: hidden;
    touch-action: manipulation;
}

/* Ensure the body width fits within the viewport */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Animações */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Estilos Globais */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
}

/* Estilos do Cabeçalho */
header {
    background-color: var(--header-background);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 4px var(--card-shadow);
}

header img {
    max-width: 200px;
}

/* Estilos da Seção Hero */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 50px 5%;
    background-color: var(--header-background);
}

.hero-text {
    flex: 1;
    padding-right: 20px;
    max-width: 600px;
}

.hero-text h1 {
    color: var(--primary-color);
    font-size: 4em;
    margin: 0;
}

.hero-text p {
    color: var(--text-color);
    font-size: 1.5em;
    margin: 10px 0 20px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--cta-background);
    color: var(--cta-text-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.5em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.cta-button.visible {
    opacity: 1;
    transform: translateY(0);
    animation: shake 0.5s ease-in-out 0s;
}

.cta-button:hover {
    background-color: var(--cta-hover-background);
}

.hero-image {
    flex: 1;
    text-align: right;
    max-width: 600px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
}

/* Estilos da Seção de Funcionalidades */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 50px 5%;
    background-color: var(--secondary-color);
}

.feature-box {
    flex: 1 1 300px;
    padding: 10px;
    margin: 10px;
    text-align: center;
    background-color: var(--card-background);
    border-radius: 20px;
    box-shadow: 0 4px 8px var(--card-shadow);
    max-width: 350px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.feature-box.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease-in-out;
}

.feature-box h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.feature-box p {
    color: var(--text-color);
    font-size: 1.2em;
}

.feature-box:hover {
    box-shadow: 0 4px 12px var(--card-shadow);
}

/* Estilos da Seção Sobre */
.about {
    background-color: var(--secondary-color);
    color: var(--footer-text-color);
    padding: 50px 5%;
    text-align: center;
}

.about h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.about p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.about a {
    color: var(--footer-text-color);
    text-decoration: underline;
}

        /* Estilos da Seção de Cobertura */
        .coverage {
            background-color: var(--secondary-color);
            color: var(--footer-text-color);
            padding: 50px 5%;
            text-align: center;
        }

        .coverage h2 {
            font-size: 2.5em;
            margin-bottom: 20px;
        }

        .coverage-items {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            margin-top: 20px;
        }

        .coverage-item {
            flex: 1 1 150px;
            margin: 10px;
            padding: 20px;
            text-align: center;
            background-color: var(--card-background);
            color: var(--secondary-color);
            border-radius: 20px;
            border: 2px solid var(--secondary-color);
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
        }

        .coverage-item.visible {
            opacity: 1;
            transform: translateY(0);
            animation: fadeInUp 0.5s ease-in-out;
        }

        .coverage-item img {
            max-width: 80px;
            margin-bottom: 10px;
        }

        .coverage-item p {
            font-size: 1.2em;
        }

        .cta-container {
            margin-top: 30px;
        }

        .cta-button-coverage {
            display: inline-block;
            padding: 15px 30px;
            background-color: var(--cta-background);
            color: var(--cta-text-color);
            text-decoration: none;
            border-radius: 30px;
            font-size: 1.5em;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
        }

        .cta-button-coverage.visible {
            opacity: 1;
            transform: translateY(0);
            animation: shake 0.5s ease-in-out 0s;
        }

        .cta-button-coverage:hover {
            background-color: var(--cta-hover-background);
        }

/* Estilos da Seção de Assistências */
.assistances {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 50px 5%;
    text-align: center;
}

.assistances h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.assistance-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.assistance-item {
    flex: 1 1 150px;
    margin: 10px;
    padding: 20px;
    text-align: center;
    background-color: var(--card-background);
    color: var(--secondary-color);
    border-radius: 20px;
    border: 2px solid var(--secondary-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.assistance-item.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease-in-out;
}

.assistance-item img {
    max-width: 80px;
    margin-bottom: 10px;
}

.assistance-item p {
    font-size: 1.2em;
}

.cta-button-assistances {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--cta-background);
    color: var(--cta-text-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.5em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.cta-button-assistances.visible {
    opacity: 1;
    transform: translateY(0);
    animation: shake 0.5s ease-in-out 0s;
}

.cta-button-assistances:hover {
    background-color: var(--cta-hover-background);
}

/* Estilos da Seção de Consulta Online */
.online-consultation {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 50px 5%;
    background-color: var(--secondary-color);
    color: var(--footer-text-color);
}

.consultation-text {
    flex: 1;
    padding-right: 20px;
    max-width: 600px;
    text-align: left;
}

.consultation-text h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.consultation-text p {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.consultation-text ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.consultation-text ul li {
    font-size: 1.2em;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.consultation-text ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--footer-text-color);
    font-size: 1.5em;
}

.consultation-image {
    flex: 1;
    text-align: right;
}

.consultation-image img {
    max-width: auto;
    max-height: 500px;
    border-radius: 10px;
}

.cta-button-consultation {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--cta-background);
    color: var(--cta-text-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.5em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.cta-button-consultation.visible {
    opacity: 1;
    transform: translateY(0);
    animation: shake 0.5s ease-in-out 0s;
}

.cta-button-consultation:hover {
    background-color: var(--cta-hover-background);
}

/* Responsividade */
@media (max-width: 768px) {
    .hero, .features, .online-consultation {
        flex-direction: column;
        text-align: center;
    }

    .hero-text, .hero-image, .feature-box, .consultation-text, .consultation-image {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .features, .coverage-items, .assistance-items {
        align-items: center;
    }

    .feature-box, .coverage-item, .assistance-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .coverage-item, .assistance-item {
        flex: 1 1 45%;
        margin: 10px;
    }
}

/* Estilos do Formulário de Contato */
.contact-form {
    background-color: var(--card-background);
    padding: 50px 5%;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 4px 8px var(--card-shadow);
    margin: 50px 5%;
    max-width: 600px;
}

.contact-form h2 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
}

.contact-form label {
    display: block;
    color: var(--text-color);
    font-size: 1.2em;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form select {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #cccccc;
    border-radius: 5px;
    background-color: #fafafa;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-form .submit-button {
    padding: 15px 30px;
    background-color: var(--cta-background);
    color: var(--cta-text-color);
    text-decoration: none;
    border: none;
    border-radius: 30px;
    font-size: 1.5em;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}


.contact-form .submit-button:hover {
    background-color: var(--cta-hover-background);
}

/* Estilos para campos Select2 */
.select2-container .select2-selection--single {
    height: 40px;
    padding: 5px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    background-color: #fafafa;
    font-size: 1em;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    padding-left: 8px;
    color: var(--text-color);
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 34px;
    right: 5px;
}

/* Estilos para os rádios */
.radio-input {
    --container_width: 300px;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 10px;
    background-color: var(--card-background);
    color: var(--text-color);
    width: var(--container_width);
    overflow: hidden;
    border: 1px solid rgba(53, 52, 52, 0.226);
    margin-top: 10px;
}

.radio-input input[type="radio"] {
    display: none;
}

.radio-input label {
    width: 100%;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    font-weight: 600;
    letter-spacing: -1px;
    font-size: 14px;
}

.radio-input .selection {
    display: none;
    position: absolute;
    height: 100%;
    width: calc(var(--container_width) / 2); /* Ajustado para 2 opções */
    z-index: 0;
    left: 0;
    top: 0;
    transition: .15s ease;
    background-color: var(--secondary-color); /* Usando a cor secundária */
}

.radio-input label:has(input:checked) {
    color: var(--cta-text-color); /* Cor do texto CTA */
}

.radio-input label:has(input:checked) ~ .selection {
    background-color: var(--secondary-color); /* Usando a cor primária */
    display: inline-block;
}

.radio-input label:nth-child(1):has(input:checked) ~ .selection {
    transform: translateX(calc(var(--container_width) * 0/2)); /* Ajustado para 2 opções */
}

.radio-input label:nth-child(2):has(input:checked) ~ .selection {
    transform: translateX(calc(var(--container_width) * 1/2)); /* Ajustado para 2 opções */
}

/* Transição suave para o campo de bônus */
#bonus-selection {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

#bonus-selection.show {
    max-height: 100px; /* Ajuste conforme necessário */
    opacity: 1;
}




/* Estilos do Card de Detalhes */
.card_1 {
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 0px 0px var(--card-shadow);
    padding: 0px;
    margin: 0px 0;
    text-align: left;
    width: 100%;
    max-width: 600px;
}

.vehicle-details,
.proposal-details {
    margin-top: 20px;
}

.vehicle-details img {
    display: block;
    margin-top: 10px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 4px var(--card-shadow);

}

.proposal-details p {
    margin: 5px 0;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Responsividade */
@media (max-width: 768px) {
    .contact-form {
        margin: 20px 5%;
    }

    .card {
        margin: 20px 5%;
    }
}


/* Estilos do Banner CTA */
.cta-banner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
    padding: 20px 5%;
    color: var(--cta-text-color);
    text-align: center;
}

.cta-banner-text {
    flex: 1;
}

.cta-banner-text h2 {
    font-size: 2.5em;
    margin: 0;
    font-weight: 700;
}

.cta-banner-text p {
    font-size: 1.2em;
    margin: 10px 0 0;
}

.cta-banner-button {
    flex: 1;
    text-align: right;
}

.cta-button-banner {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--cta-text-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.5em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.cta-button-banner.visible {
    opacity: 1;
    transform: translateY(0);
    animation: shake 0.5s ease-in-out 0s;
}

.cta-button-banner:hover {
    background-color: var(--cta-hover-background);
    color: var(--cta-text-color);
}

/* Responsividade do Banner CTA */
@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
    }

    .cta-banner-button {
        text-align: center;
        margin-top: 20px;
    }
}

/* Estilos do Slider de Seguradoras */
.insurance-slider {
    background-color: var(--background-color);
    padding: 20px 0;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.insurance-slider h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease-in-out;
}

.slide {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    transition: transform 0.5s ease-in-out;
}

.slide img {
    max-width: 90%;
    border-radius: 2px;
}

/* Responsividade do Slider */
@media (max-width: 768px) {
    .slide {
        min-width: 100%;
    }
}

/* Estilos do Rodapé */
.footer {
    background-color: var(--footer-background);
    color: var(--footer-text-color);
    padding: 20px 5%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1 1 200px;
    margin: 10px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 10px;
}

.footer h4 {margin-bottom: 10px;
}
.footer a {
    color: var(--footer-text-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.susep-logo {
    max-width: 100px;
    margin-top: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
}

.social-icons img {
    width: 30px;
    margin: 0 10px;
}

.app-buttons img {
    width: 150px;
    margin: 10px;
}

/* Responsividade do Rodapé */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        text-align: center;
    }
}

/* Ocultar inicialmente as seções predicts_results e contact-form */
#predicts_results,
#contact-form {
    display: none;
}


#predicts .form-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

#vehicle-form {
    flex: 1;
    max-width: 100%;
}

#vehicle-detail,
#response-detail,
#loading-overlay {
    flex: 1;
    max-width: 100%;
}

#vehicle-detail img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    #predicts .form-container {
        flex-direction: column;
    }

    #vehicle-form,
    #vehicle-detail,
    #response-detail,
    #loading-overlay {
        max-width: 100%;
    }
}

.obs {
    font-size: 0.9em;
    color: var(--text-color);
    margin-top: 20px;
    text-align: center;
}
