/* Reset básico */
* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}



::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}


::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 10px;
}


::-webkit-scrollbar-thumb {
  background: #0044A1;
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

h1, h2, h3, h5{
  font-family: "Bungee", sans-serif;
}
/* Configurações de layout */
body {
    font-family: "Poppins", sans-serif;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;

    /* Novo gradiente animado */
    background: linear-gradient(to top, #05237c, #183d86, #205c9c);
    background-size: 200% 200%;
    animation: gradientMove 12s ease infinite;

    min-height: 100vh;
}


.header {
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    width: 100%;
    color: white;
    
      font-family: "Bungee", sans-serif;

}

.mandatory {
    color: #ff0000;
}

.sub-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.header>.sub-header>h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    text-align: center;
    font-weight: 300;
    color: #fff;
}

.container-info {
    text-align: center;
    margin: 1rem 0;
}

ul {
    list-style: none;
}

#main {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(10px, 2vw, 20px);
    padding: clamp(20px, 5vw, 50px);
    width: 100%;
    max-width: 1200px;
}

/* Estilo do card */
.card {
    width: 100%;
    max-width: 200px;
    height: 240px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 auto;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Link styling */
.card-link {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
}

.card-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-radius: 12px;
}

/* Image container */
.img {
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img-card {
    width: 70%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.card:hover .img-card {
    opacity: 0.9;
}

/* Title */
.title {
    padding: 0.5rem;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    font-weight: 600;
    color: #333;
    text-align: center;
    flex-grow: 1;
}

/* Button */
.btn {
    background-color: #007bff;
    color: white;
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    padding: 1rem;
    border-radius: 10px;
    border: none;
    margin: 0 auto;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-call{
        background-color: #007bff;
    color: white;
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    padding: 0.5rem;
    border-radius: 10px;
    border: none;
    margin: 0 auto;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus {
    background-color: #0056b3;
}

.btn:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}


/* Estilo do link para não ter sublinhado */
a {
    text-decoration: none;
}

.container {
    width: 96%;
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center center;
    color: white;
    padding: clamp(20px, 5vw, 40px) 1rem;
    text-align: center;
    width: 100%;
    margin-top: auto;

}

/* Estilos do Formulário */
.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.form-group input,
.form-group textarea,
.form-group select,
.form-group datalist {
    outline: none;
    padding: 0.75rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

.form-group input[list] {
    width: 100%;
}

.form-group textarea {
    resize: vertical;
}

fieldset {
    border: none;
    padding: 0;
}

legend {
    font-weight: bold;
    font-size: clamp(1rem, 3vw, 1.2rem);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.success-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    background-image: url(../img/fundo.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 1rem;
}

.success-card {
    background-color: #fff;
    color: #000;
    padding: clamp(20px, 5vw, 40px);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.success-card h1 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    margin-bottom: 1rem;
}

.success-card p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 0.5rem;
}

.success-card .btn {
    margin-top: 1rem;
    display: inline-block;
    background-color: #007bff;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    padding: 0.75rem 1.5rem;
}

/* Media Queries para ajustes adicionais */
@media (max-width: 768px) {
    .header>.sub-header>h1 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    #main {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        padding: 1rem;
    }

    .card {
        max-width: 160px;
        height: 220px;
    }

    .img {
        height: 50%;
        width: 90%;
        margin: 10px auto;
    }

    .title {
        font-size: clamp(0.7rem, 2vw, 0.8rem);
    }

    .btn {
        font-size: clamp(0.6rem, 2vw, 0.7rem);
           padding: 1rem;
    }

    .container {
        margin: 0.5rem;
        padding: 0.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        outline: none;
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem;
    }

    .header>.sub-header>h1 {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
    }

    #main {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .card {
        max-width: 100%;
        height: 200px;
    }

    .img {
        height: 90%;
        width: 90%;
    }

    .title {
        font-size: clamp(0.6rem, 2vw, 0.7rem);
    }

    .btn {
        font-size: clamp(0.6rem, 2vw, 0.7rem);
        padding: 1rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .success-card {
        padding: 1rem;
    }
}