* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: rgb(51, 51, 51);
    font-size: 14px;
}

/* Header Styles */
.main-header {
    background: linear-gradient(100deg, rgb(0, 102, 153), rgb(0, 187, 204));
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 60px;
}

.menu-list {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    margin-left: 180px;
    padding: 0;
    align-items: center;
}

.menu-list li {
    margin: 0;
}

.nav-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    padding: 20px 15px;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgb(255, 255, 255);
}

.dropdown-arrow {
    font-size: 10px;
}

.user-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-criar-conta {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-criar-conta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgb(255, 255, 255);
    color: rgb(255, 255, 255);
}

.btn-entrar {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    padding: 8px 15px;
    transition: color 0.3s;
}

.btn-entrar:hover {
    color: rgb(255, 255, 255);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 20px;
    position: relative;
}

/* Modal Styles */
.modal-overlay {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    padding-top: 20px;
}

.modal-container {
    background: rgb(255, 255, 255);
    border-radius: 4px;
    border: 1px solid rgb(255, 255, 255);
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1051;
}

.modal-content {
    padding: 0;
}

.modal-title {
    color: rgb(0, 102, 153);
    font-size: 32px;
    font-weight: 300;
    font-family: 'Lato', sans-serif;
    line-height: 48px;
    margin-bottom: 15px;
    margin-top: 30px;
    text-align: center;
    padding: 0 15px;
}

.modal-description {
    color: rgb(68, 76, 100);
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    line-height: 24px;
    text-align: center;
    margin-bottom: 25px;
    padding: 0 15px;
}

/* Form Styles */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 0 64px 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .form-input {
    width: 100%;
    padding-right: 45px;
}

.validation-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    display: none;
}

.form-input.input-error {
    border-color: rgb(220, 53, 69);
    border-width: 2px;
}

.field-error {
    color: rgb(220, 53, 69);
    display: block;
    font-size: 13px;
    min-height: 18px;
}

.form-input.input-error ~ .validation-icon {
    display: block;
    color: rgb(220, 53, 69);
}

.form-input.input-error ~ .validation-icon::before {
    content: '✕';
}

.form-input.input-success {
    border-color: rgb(40, 167, 69);
    border-width: 2px;
}

.form-input.input-success ~ .validation-icon {
    display: block;
    color: rgb(40, 167, 69);
}

.form-input.input-success ~ .validation-icon::before {
    content: '✓';
}

.form-label {
    color: rgb(68, 76, 100);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.5px;
}

.form-input {
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.3s;
    height: 50px;
}

.form-input:focus {
    outline: none;
    border-color: rgb(0, 102, 153);
}

.form-input::placeholder {
    color: #aaa;
}

.help-link {
    color: rgb(0, 102, 153);
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    text-decoration: none;
    align-self: flex-start;
}

.help-link:hover {
    text-decoration: underline;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 30px;
    margin-bottom: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    color: rgb(68, 76, 100);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: rgb(0, 102, 153);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    margin: 8px 0;
}

.btn-secondary {
    background: rgb(255, 255, 255);
    color: rgb(0, 102, 153);
    border: 2px solid rgb(0, 102, 153);
}

.btn-secondary:hover {
    background: #f0f8ff;
}

.btn-primary {
    background: linear-gradient(100deg, rgb(0, 102, 153), rgb(0, 187, 204));
    color: rgb(255, 255, 255);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(100deg, rgb(0, 90, 135), rgb(0, 170, 185));
}

/* Footer Styles */
.main-footer {
    font-family: 'Lato', sans-serif;
    position: relative;
    z-index: 1;
}

.footer-main {
    background: linear-gradient(100deg, rgb(0, 102, 153), rgb(0, 187, 204));
    color: rgb(255, 255, 255);
    padding: 40px 60px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo .logo {
    height: 50px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}

.footer-nav li:hover {
    color: rgb(255, 255, 255);
}

.footer-social h3 {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    background: rgb(255, 255, 255);
    padding: 20px 60px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgb(68, 76, 100);
    margin: 0;
}

.footer-links-bottom {
    margin-left: 10px;
}

.footer-links-bottom a {
    color: rgb(68, 76, 100);
    text-decoration: none;
    margin: 0 5px;
}

.footer-links-bottom a:hover {
    text-decoration: underline;
}

/* Help Modal Styles */
.help-modal-container {
    max-width: 600px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: rgb(68, 76, 100);
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
    line-height: 1;
}

.modal-close:hover {
    color: rgb(0, 102, 153);
}

.help-modal-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 64px;
}

.tab-btn {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid rgb(0, 102, 153);
    color: rgb(0, 102, 153);
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: rgb(0, 102, 153);
    color: white;
    position: relative;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgb(0, 102, 153);
}

.tab-btn:hover:not(.active) {
    background: rgba(0, 102, 153, 0.1);
}

.help-modal-image {
    padding: 20px 64px;
    text-align: center;
}

.help-modal-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.help-modal-buttons {
    display: flex;
    gap: 15px;
    padding: 0 64px 30px;
}

.help-modal-buttons .btn {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header Mobile Styles */
    .main-header {
        position: relative !important;
        min-height: 155px !important;
    }
    
    .top-nav {
        flex-direction: column !important;
        padding: 10px 15px !important;
        height: auto !important;
        gap: 15px !important;
        min-height: 155px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .menu-list {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 5px !important;
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .menu-list li {
        flex: 0 0 auto !important;
    }
    
    /* Ocultar os últimos 2 itens do menu (Outros serviços, Ajuda online) */
    .menu-list li:nth-child(4),
    .menu-list li:nth-child(5) {
        display: none !important;
    }
    
    .nav-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        text-align: center !important;
    }
    
    .dropdown-arrow {
        display: none !important;
    }
    
    /* Ocultar menu de usuário (Criar conta e Entrar) */
    .user-menu {
        display: none !important;
    }
    
    /* Adicionar espaço após o header fixo */
    .main-content-debitos {
        padding-top: 20px !important;
    }
    
    .header-debitos-voltar {
        margin-top: 5px !important;
        margin-bottom: 5px !important;
    }

    .modal-content {
        padding: 30px 25px;
    }

    .modal-title {
        font-size: 24px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }

    .button-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    /* Header Extra Small Mobile */
    .nav-btn {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }
}
