:root {
    --default-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --heading-font: "Marcellus", sans-serif;
    --poppins-font: "Poppins", sans-serif;

}

/* Reset and Base Styles */
:root {
    --primary-color: #1a73e8;
    --primary-hover: #1557b0;
    --default-color: #6c757d;
    --secondary-color: #6c757d;
    --secondary-hover: #5a6268;
    --success-color: #28a745;
    --success-hover: #218838;
    --error-color: #c90000;
    --border-color: #ddd;
    --white-color: white;
    --text-color: #333;
    --text-light: #555;
    --star-color: #ffbf00;
    /* Default color used for the majority of the text content across the entire website */
    /* Color for headings, subheadings and title throughout the website */
    --accent-color: #64BEB6;
    --dark-color: #081e33;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    line-height: 1.6;
    background-color: #f0f0f0;
    color: var(--text-color);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Camada geral dos flocos */
.snowfall-flakes {
  z-index: 995!important; /* Altere para o valor que quiser */
  animation: none !important;
  transition: none !important;
  pointer-events: none; /* evita interceptar cliques */
}

.cookies-red {
    color: var(--error-color);
    font-weight: 700;
    font-size: 0.84rem;
}

/* Container Styles */
.container {
    max-width: 800px;
    margin: 1rem auto;
    padding: 0 1rem;
}

/* Form Container Image Styles */
.form-container-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.img-forms {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('../img/backgrounds/desktop-grande.webp');
    transition: background-image 0.3s ease;
}

/* Responsive Background Images */
@media screen and (max-width: 1200px) {
    .img-forms {
        background-image: url('../img/backgrounds/desktop-medio.webp');
    }
}

@media screen and (max-width: 768px) {
    .img-forms {
        background-image: url('../img/backgrounds/tablet.webp');
    }

    .form-container-img {
        height: 250px;
    }
}

@media screen and (max-width: 480px) {
    .img-forms {
        background-image: url('../img/backgrounds/smartphone.webp');
    }

    .form-container-img {
        height: 200px;
    }
}

@media screen and (max-width: 370px) {
    .img-forms {
        background-image: url('../img/backgrounds/smartphone_low.webp');
    }
}

/* Form Section Styles */
.form-section {
    display: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    padding: 2rem;
    border-top: 5px solid var(--nav-color);
    font-family: var(--default-font);
}

.form-section.active {
    display: block;
}


/* Heading Styles */
h1 {
    font-family: var(--heading-font);
    color: var(--nav-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Fieldset Styles */
fieldset {
    border: none;
    padding: 0;
}

legend {
    color: var(--nav-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    width: 100%;
}

/* Form Controls */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}


input::placeholder, select option::placeholder {
    font-style: italic;
    color: var(--nav-color);
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--nav-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: var(--nav-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Custom Checkbox Styles */
.checkbox-grid {
    margin: 10px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, auto));
    /* Ajusta dinamicamente o espaço */
    /* gap: 10px;*/
    /* Espaço entre os checkboxes */
    /*margin-bottom: 1rem;*/
    justify-items: start;
    /* Alinha os itens à esquerda */
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    /* Mantém o texto ao lado do checkbox */
    gap: 8px;
    /* Espaçamento entre o checkbox e o texto */
    word-break: break-word;
    /* Permite que o texto quebre corretamente */
    overflow-wrap: break-word;
    /* Evita que palavras longas ultrapassem a área */
}



input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--nav-color);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked {
    background-color: var(--nav-color);
    border-color: var(--nav-color);
}

input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input[type="checkbox"]:hover {
    border-color: var(--nav-color);
}

/* Custom Select Styles */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--nav-color);
    border-radius: 4px;
    outline: none;
    font-size: 1rem;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:focus {
    border-color: var(--dark-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

select:invalid {
    font-style: italic;
    font-weight: 500;
    color: var(--nav-color);
}

select option:first-child {
    color: #666;
}

select option {
    color: #333;
    background-color: white;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%231a73e8" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:hover {
    border-color: #1a73e8;
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.1);
}


select:disabled {
    background-color: #f5f5f5;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Remove default arrow in IE */
select::-ms-expand {
    display: none;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3);
    background: var(--accent-color);
    color: var(--dark-color);

}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.2);
}

button.prev-btn {
    background-color: var(--default-color);
}

button.prev-btn:hover {
    background-color: var(--accent-color)
}

/* Submit Button Special Styling */
button[type="submit"] {
    background: var(--nav-color);
    width: 100%;
    max-width: 200px;
    margin: 2rem auto;
    padding: 1rem;
    font-size: 1rem;
    display: block;
}

button[type="submit"]:hover {
    background: var(--success-color);
    color: var(--white-color);
}

/* Submit Button */
.nav-buttons button,
button[type="submit"] {
    width: 150px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem auto;
    max-width: 400px;
    gap: 1rem;
    flex-wrap: wrap;
}

button {
    background-color: var(--nav-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.8rem 1.5rem;
    /*font-size: 1rem;*/
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.2);
    flex: 1;
    min-width: 120px;
}

button:focus {
    outline: 3px solid rgba(26, 115, 232, 0.4);
    outline-offset: 2px;
}



@media (max-width: 480px) {
    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
    }



}

/* Modal Styles */
.modal-response {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-response-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 300px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-response.show {
    display: flex;
}

.modal-response h2 {
    color: var(--nav-color);
    margin-bottom: 1rem;
}

.modal-response p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.modal-response button {
    margin-top: 1rem;
}

/* Estilo do botão de fechar */
.close-response {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #333;
    /* Cor do botão de fechar */
    background: transparent;
    /* Torna o fundo transparente */
    border: none;
    /* Remove qualquer borda do botão */
    cursor: pointer;
    /* Muda o cursor para indicar que o botão é clicável */
}

/* Efeito visual ao passar o mouse */
.close-response:hover {
    color: red;
    /* Cor vermelha ao passar o mouse */
}

/* Estilos para o sistema de avaliação por estrelas */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.star-rating .star {
    font-size: clamp(24px, 5vw, 32px);
    cursor: pointer;
    color: #7a7777;
    transition: color 0.2s ease-in-out;
    padding: 0.25rem;
    -webkit-tap-highlight-color: transparent;
}

.star-rating .star.active {
    color: var(--star-color);
}

.star-rating .star:hover,
.star-rating .star:focus {
    color: var(--star-color);
    outline: none;
}

.star-rating .star:focus-visible {
    outline: 2px solid var(--primary-color);
    border-radius: 4px;
}

.star-rating .star:hover~.star {
    color: #7a7777;
}

.star-rating:hover .star.active {
    color: #ffbf00;
}

.rating-error {
    color: #ff0000;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 500;
}

.rating-error-banner {
    background-color: #f3d4d4;
    border: 2px solid #ffcdd2;
    border-radius: 8px;
    padding: 15px;
    color: red;
    margin: 10px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    position: relative;
}

.rating-error-banner.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.1);
}

.checkbox-grid {
    margin: 10px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, auto));
    justify-items: start;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.rating-error-banner .star-rating {
    margin: 10px 0;
}

.rating-error-banner .rating-error {
    color: #d32f2f;
    font-weight: 500;
    font-size: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    margin-top: 40px;
}

.rating-success {
    color: #222;
    font-weight: 500;
    margin-top: 8px;
    font-size: 1rem;
    display: none;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}



/* Estilos para o sistema de avaliação por estrelas */

#container-all {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #c6dff5;
    padding: 20px;

}

.container-show {
    font-family: var(--poppins-font);
    background: #c6dff5d7;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

h1 {
    margin-bottom: 15px;
    font-size: 22px;
    font: 700px;
}

p {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 16px;
}

ul {
    text-align: left;
    margin-bottom: 15px;
    padding-left: 20px;
}

ul li {
    margin-bottom: 5px;
    font-size: 14px;
}

a {
    color: var(--primary-color);

    text-decoration: none;
    text-decoration: underline;

    font-size: 14px;
}

a:hover {
    color: var(--dark-color);

}

.btn {
    display: inline-block;
    background-color: var(--nav-color);
    color: var(--white-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    color: var(--dark-color);
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsividade */
@media (max-width: 480px) {
    .container-show {
        padding: 15px;
    }

    h1 {
        font-size: 18px;
    }

    p, ul li, a {
        font-size: 14px;
    }

    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}



/*           BANNERS COOKIES          */

.cookie-consent-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.cookie-consent-modal.show {
    display: flex;
}

.cookie-consent-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 3000px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.cookie-consent-content h2 {
    color: var(--nav-color);
    font-family: var(--heading-font);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cookie-consent-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-family: var(--poppins-font);
    font-size: 0.90rem;
    line-height: 1.6;
}

/*.cookie-consent-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}*/

.cookie-consent-buttons button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 100px;
}

.accept-cookies {
    color: white;
    background-color: var(--nav-color);
}

.decline-cookies {
    background-color: var(--nav-color);
    color: white;
}

.decline-cookies:hover {
    background-color: var(--error-color);
    color: white;
}

.accept-cookies:hover {
    background-color: var(--success-color);
    color: var(--white-color);
}

.form-hidden {
    display: none;
}