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

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding-top: 80px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    background-color: #2B2B2B;
    color: #f5f5f5;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container-common {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    padding: 20px 0;
    background-color: #2B2B2B;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
}

.nav-links a:hover {
    color: #E8BF59;
}

.logo-text {
    align-items: center;
}

.logo-synos {
    font-family: 'Raleway', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin: 0;
}

.logo-digital {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.24em;
    margin: 0 auto;
    margin-top: 4px;
    width: fit-content;
}

.mobile-menu-icon {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: #f5f5f5;
}

.nav-links.mobile {
    display: none;
    flex-direction: column;
    background-color: #2B2B2B;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    padding: 20px;
    gap: 15px;
}

.nav-links.mobile a {
    font-size: 1.2rem;
}

.nav.active .nav-links.mobile {
    display: flex;
}

.contact-section {
    margin-top: 50px;
}

/* Estilos do formulário */
.contact-form {
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: transparent;
}

.contact-form h2 {
    text-align: center;
    color: #f5f5f5;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Linha de campos lado a lado */
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-half {
    width: calc(50% - 10px);
    min-width: 0;
}

.contact-form label {
    font-size: 15px;
    font-weight: 500;
    color: #f5f5f5;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(245, 245, 245, 0.2); 
    background-color: #2B2B2B;
    color: #f5f5f5;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus, 
.contact-form select:focus, 
.contact-form textarea:focus {
    border-color: #E8BF59; 
    outline: none;
    background-color: rgba(245, 245, 245, 0.1);
}

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

.contact-form button {
    padding: 15px;
    background-color: #F8D57E;
    color: #121212;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

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

/* Dropdown específico */
.contact-form select {
    background-color: #2B2B2B;
    color: #f5f5f5;
    border: 1px solid rgba(245, 245, 245, 0.2); /* Removendo a borda amarela fixa */
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    appearance: none;
    position: relative;
    cursor: pointer;
    max-height: 200px; /* Limita a altura máxima do dropdown */
    overflow-y: auto; /* Adiciona barra de rolagem quando exceder a altura */
}

/* Hover para as opções dentro do dropdown */
.contact-form option:hover {
    background-color: #E8BF59; /* Amarelo para hover */
    color: #121212; /* Texto preto no hover */
}

/* Remoção do hover azul padrão */
select::-ms-expand {
    display: none;
}

/* Seta no dropdown */
.contact-form select::after {
    content: '▼'; /* Indicador de dropdown */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
    color: #f5f5f5;
}

/* Removendo a borda amarela fixa ao passar o mouse */
.contact-form select:hover {
    border-color: rgba(245, 245, 245, 0.2);
}

/* Limitação do tamanho para dropdown muito grande */
.contact-form select {
    max-height: 200px; /* Limita a altura para rolar dentro */
    overflow-y: auto; /* Barra de rolagem quando houver muitas opções */
}

/* Ajustando hover nas opções do dropdown */
.contact-form option {
    background-color: #2B2B2B;
    color: #f5f5f5;
}

/* Divider e Footer */
.section-divider {
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 2px;
    background-color: rgba(245, 245, 245, 0.2);
    margin: 20px auto 0 auto;
}

.footer-section {
    background-color: #2B2B2B;
    color: #fff;
    padding: 0;
    display: flex;
}

.footer-section p {
    margin: 0;
    margin: 30px 0px;
    font-size: 1rem;
}

/* Overlay de Loading */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    border: 8px solid rgba(245, 245, 245, 0.3);
    border-radius: 50%;
    border-top: 8px solid #F8D57E;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Modal de Erro */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000; /* Z-index alto para o modal */
}

/* Overlay de fundo preto */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fundo preto com opacidade */
    z-index: 9999; /* Cobrirá o conteúdo da página, mas estará abaixo do conteúdo do modal */
}

/* Conteúdo do modal de erro */
.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1F1F1F;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10000; /* Fica acima do overlay */
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modal-content h2 {
    font-family: 'Poppins', sans-serif;
    color: #F8D57E;
    margin-bottom: 20px;
}

.modal-content p {
    font-family: 'Poppins', sans-serif;
    color: rgba(245, 245, 245, 0.8);
    margin-bottom: 20px;
}

.modal-content button {
    padding: 10px 20px;
    background-color: #F8D57E;
    color: #121212;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #E8BF59;
}

@media (min-width: 769px) and (max-width: 1920px) {

    /* Ajustes para o formulário de contato */
    .contact-form {
        padding: 40px 0;
        gap: 25px; /* Mais espaço entre os campos em telas grandes */
    }

    .contact-form h2 {
        font-size: 3rem; /* Título maior para impacto em telas grandes */
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 20px; /* Campos maiores */
        font-size: 16px;
    }

    .contact-form button {
        padding: 18px 30px; /* Botão maior e mais espaçoso */
        font-size: 18px;
    }

    .form-row {
        gap: 25px;
    }

    .form-half {
        width: calc(50% - 12.5px); /* Mantendo os campos lado a lado com espaçamento flexível */
    }
}


/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: #2B2B2B;
    }

    .nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 60px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
        font-size: 2rem;
        color: #f5f5f5;
        cursor: pointer;
    }

    .nav.active .nav-links {
        display: flex;
        flex-direction: column;
        background-color: #2B2B2B;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 20px;
        gap: 15px;
        z-index: 1000;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 10px 0;
        text-align: center;
    }


    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .contact-form h2 {
        font-size: 2rem;
    }

    .contact-form input, 
    .contact-form select, 
    .contact-form textarea {
        padding: 12px;
        font-size: 14px;
    }

    .contact-form button {
        padding: 12px;
    }

    .form-half {
        width: 100%;
    }
}
