@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --cor-primaria: #45b7e5;

}

html{
    scroll-behavior: smooth;
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
  
    font-family: 'Source Sans 3', sans-serif;
}

body {


    background-color: white;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 50px 20px;
    background: #1b3556;
    border-radius: 0 0 20px 20px;
    width: calc(100% - 20px);
    box-sizing: border-box;
    margin: 0 auto;
    gap: 20px;
}

header img {
    max-width: 300px;
    height: auto;
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

main ul {
    margin-left: 20px;
    margin-top: 10px;
}

/* Container Principal */
.form-section {
    margin: 0 auto;
    scroll-margin-top: 200px; /* Compensa a altura do navbar fixo */
}

.container {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}


/* Formulário */
.contact-form {
    padding: 2rem;
}

/* Grupos de Formulário */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.9rem;
}

/* Inputs e Selects */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: white;
    outline: none;

    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%236b7280" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Checkboxes */
.theme-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.checkbox-item {
    position: relative;
    cursor: pointer;
    padding: 0.625rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-item:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.checkbox-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    margin: 0;
    position: relative;
    padding-left: 1.75rem;

}

.checkbox-item label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    transition: all 0.2s ease;
}

.checkbox-item input[type="checkbox"]:checked+label::before {
    background: var(--cor-primaria);
    border-color: var(--cor-primaria);
}

.checkbox-item input[type="checkbox"]:checked+label::after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 0.625rem;
    font-weight: bold;
}

.checkbox-item input[type="checkbox"]:checked+label {
    color: var(--cor-primaria);
}

/* Contador de Áreas */
.areas-selected {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    border-radius: 4px;
    display: inline-block;
}

.areas-selected.max-reached {
    background: #fef3cd;
    color: #92400e;
}

/* Input de Arquivo */
.form-group input[type="file"] {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.form-group input[type="file"]:hover {
    border-color: #9ca3af;
    background: #f3f4f6;
}

.form-group input[type="file"]:focus {
    border-color: var(--cor-primaria);
    border-style: solid;
}

/* Texto de Ajuda */
.form-text {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.form-text-info{
text-align: center;
    
    font-size: 0.8rem;
    color: #e53888;
}
.submit-button{
    margin-top: 1.5rem;
}

.submit-button:active {
    background: #1b3556;
}
.submit-button:hover{
color: black !important;
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Animações de Entrada */
#camposComuns,
#camposAdministrativo,
#camposDocente {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.25rem;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #374151;
}

.success-message h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #374151;
    font-weight: 600;
}

.success-message p {
    color: #6b7280;
    line-height: 1.5;
}

/* Responsivo */
@media (max-width: 768px) {

  
 
    .theme-checkboxes {
        grid-template-columns: 1fr;
    }

    .checkbox-item {
        padding: 0.625rem;
    }

    .benefits-section {
        flex-direction: column;
     
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.125rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-header {
        padding: 1rem;
    }
}

.intro-section {
    margin: 50px auto;
}

.benefits-section {
    display: flex;
    margin-bottom: 60px;
    gap: 20px;
}

.benefits-section div {
    flex: 1;
    border: 1px solid #e5e7eb;
    padding: 20px ;
    border-radius: 10px;
}

.btn2 {
    display: flex;
    box-sizing: border-box;
    justify-content: center;
    color: black;
    border: none;
    padding: 8px 16px;
    background-color: #f9e20f;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.btn2:hover {
    color: white;
    background-color: transparent;
    box-shadow: inset 0 0 0 2px #f9e20f;
    text-decoration: none;
}

.intro-section {

    text-align: center;
}

.intro-section h2 {
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}


.intro-section ul, .benefits-section ul {
    list-style: none;
    padding: 0;
    margin: 30px auto 0;
    text-align: left;
}

.intro-section li, .benefits-section li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
    transition: all 0.2s ease;
}


.intro-section li::before, .benefits-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--cor-primaria);
    border-radius: 50%;
    opacity: 0.6;
}

.intro-section li strong {
    color: #1f2937;
    font-weight: 500;
}

.benefits-section h3{
    margin-bottom: -20px;
    text-align: center;
}