/* ESTILOS GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

#app {
    flex: 1;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #d85151;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c03c3c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 60, 60, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #d85151;
    color: #d85151;
}

.btn-outline:hover {
    background-color: #d85151;
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #0d4a85;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #d85151;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto 0;
    color: #555;
}

.text-center {
    text-align: center;
}

/* ESTILOS DO HEADER */
.header {
    background: #fff;
    color: black;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.cab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Container do logo e texto */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #E2261D;
    text-decoration: none;
}

/* Botão menu mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #d85151;
    border-radius: 2px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: center;
}

/* MENU DE NAVEGAÇÃO */
.prin-cab {
    display: flex;
    gap: 5px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.3s ease-in-out;
}

.nav-cab {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    user-select: none;
    text-decoration: none;
    color: inherit;
}

.nav-cab:hover {
    background-color: rgba(216, 81, 81, 0.1);
    transform: translateY(-2px);
}

.nav-cab.active {
    background-color: rgba(216, 81, 81, 0.15);
    color: #d85151;
}

.nav-cab.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background-color: #d85151;
    border-radius: 2px;
}

.nav-link {
    text-decoration: none;
    color: inherit;    
}

/* SUBMENUS */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    display: none;
    z-index: 1000;
    color: #333;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-cab:hover .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.submenu-item {
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.submenu-item:hover {
    background-color: #f9f0f0;
    padding-left: 25px;
    color: #d85151;
}

.submenu-title {
    padding: 10px 20px;
    font-weight: bold;
    color: #d85151;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.submenu-divider {
    height: 1px;
    background-color: #eee;
    margin: 5px 0;
}

.dropdown-icon {
    font-size: 0.8em;
}

/* PAGE HEADER */
.page-header {
    background: linear-gradient(rgba(13, 74, 133, 0.9), rgba(13, 74, 133, 0.8)), #0d4a85;
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    position: relative;
}

.page-header p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    position: relative;
}

/* FORMULÁRIO DE SOLICITAÇÃO */
.application-form {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.form-progress {
    margin-bottom: 50px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
}

.progress-bar:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-bar:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: #d85151;
    transform: translateY(-50%);
    z-index: 2;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #d85151;
    color: white;
}

.progress-step.active .step-label {
    color: #d85151;
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: #2ecc71;
    color: white;
}

/* FORM STEPS */
.form-step {
    display: none;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h2 {
    color: #0d4a85;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.form-step > p {
    color: #666;
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #d85151;
    outline: none;
    box-shadow: 0 0 0 3px rgba(216, 81, 81, 0.1);
}

.form-group input[type="file"] {
    padding: 10px;
}

.file-info {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-group a {
    color: #d85151;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* DOCUMENTS LIST */
.documents-list {
    margin-bottom: 30px;
}

.documents-list h3 {
    color: #0d4a85;
    margin: 20px 0 10px;
}

.documents-list ul {
    list-style: none;
    margin-bottom: 30px;
}

.documents-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.documents-list li:before {
    content: '•';
    position: absolute;
    left: 10px;
    color: #d85151;
    font-weight: bold;
}

.upload-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

.upload-section h3 {
    margin-top: 0;
}

/* SUMMARY SECTION */
.summary-section {
    margin-bottom: 30px;
}

.summary-section h3 {
    color: #0d4a85;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.summary-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.summary-item h4 {
    color: #0d4a85;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.summary-content p {
    margin-bottom: 10px;
    display: flex;
}

.summary-content p strong {
    min-width: 150px;
    display: inline-block;
    color: #555;
}

.consent-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

/* SUBMISSION SUCCESS */
.submission-success {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.success-icon {
    font-size: 5rem;
    color: #2ecc71;
    margin-bottom: 30px;
}

.submission-success h2 {
    color: #0d4a85;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.submission-success p {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.success-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* RODAPÉ */
.main-footer {
    background-color: #222;
    color: white;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: #d85151;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #d85151;
    padding-bottom: 10px;
}

.footer-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.footer-links a:hover {
    color: #d85151;
    padding-left: 5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item i {
    color: #d85151;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.7;
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .prin-cab {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 15px;
    }
    
    .cab {
        flex-direction: column;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .prin-cab {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        transform: translateX(-100%);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .prin-cab.active {
        transform: translateX(0);
    }
    
    .nav-cab {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }
    
    .submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 10px;
        display: none;
        opacity: 1;
        transform: none;
    }
    
    .nav-cab:hover .submenu {
        display: none;
    }
    
    .nav-cab.active .submenu,
    .nav-cab:focus-within .submenu {
        display: block;
    }
    
    .cab {
        flex-direction: row;
        gap: 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .page-header {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .application-form {
        padding: 40px 0;
    }
    
    .form-step {
        padding: 25px;
    }
    
    .progress-bar {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .progress-step {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .progress-step {
        flex: 0 0 100%;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .footer-section {
        min-width: 100%;
    }
}

/* Animações para o menu mobile */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Estilo para a barra de progresso em dispositivos móveis */
@media (max-width: 768px) {
    .progress-bar:before,
    .progress-bar:after {
        display: none;
    }
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Foco visível para elementos interativos */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #d85151;
    outline-offset: 2px;
}