* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Opens Sans, sans-serif;

}

body {
    background-color: white;
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 2000px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: white;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 42px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 50px;
}


.auth-icon {
    height: 38px;
}

.linha-cidadao {
    display: flex;
    align-items: center;
    gap: 5px;
}

.linha-cidadao img {
    height: 42px;
}

.linha-cidadao span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Main Content Styles */
main {
    flex: 1;
    padding: 20px 0 60px;

}

.language-selector {
    display: inline-flex;
    align-items: center;
    margin-top: 60px;
    border: 1px solid #000000;
    border-radius: 10px;
    padding: 8px 15px;
    margin-bottom: 25px;
    cursor: pointer;
}

.fa-globe-americas {
    color: #000;
    margin-right: 10px;
}

.lang-selected {
    font-weight: 600;
    color: #333;
    margin-right: 20px;
}

.lang-option {
    color: #008743;
}

h1 {
    font-size: 42px;
    font-weight: 500;
    color: #111;
    font-weight: Bold ;
    margin-bottom: 10px;
}

/* Estilo para o primeiro HR (normal) */
hr {
    border: none;
    border-top: 1px solid #dee2e6;
    width: 100% !important;
    margin: 20px auto !important;
}

/* Estilo para o último HR (largura total) */
hr.full-width {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    border: none;
    border-top: 1px solid #dee2e6;
    margin-bottom: 0;
    margin-top: 30px;
    position: relative;
    left: 0;
    right: 0;
}

/* Info Box Styles - Exatamente como na imagem */
.info-box {
    position: relative;
    width: 100%;
    border-radius: 10px;
    background-color: #f2f9ff;
    border-left: 10px solid #0063cc;
    padding: 15px 15px 15px 50px;
    margin-bottom: 30px;
}

.info-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    background-color: #0063cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.info-icon i {
    color: white;
    font-size: 10px;
}

.info-box p {
    font-size: 17px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-link {
    color: #008743;
    text-decoration: underline;;
}

/* Form Styles */
.form-section {
    max-width: 550px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 380px;
}

input[type="text"] {
    width: 100% !important;
    max-width: 380px;
    height: 50px !important;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 10px;
}

input[type="text"]:focus {
    outline: none;
    border: 1px solid #e07801 !important;
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.836) !important;
}


input[type="text"]::placeholder {
    color: #adb5bd;
    font-size: 16px;
    line-height: 24px;
}

.form-section label {
    font-weight: bold;
    font-size: 16px;
    line-height: 24px;
}

.help-icon {
    color: #6c757d;
    font-size: 18px;
    margin-left: 10px;
    cursor: pointer;
}

.recaptcha-container {
    margin: 25px 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.recaptcha-terms {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.recaptcha-terms a {
    color: #01743a;
    text-decoration: underline;
}

.recaptcha-terms a:hover {
    text-decoration: none;
}

.btn-verificar {
    background-color: #01743a;
    color: white;
    font-weight: bold !important;
    border: none;
    border-radius: 10px;
    padding: 16px 26px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 0 !important;
}

.btn-verificar:hover {
    background-color: #024121;
}

/* Footer Styles */
footer {
    margin-top: auto;
    padding: 0;
    background-color: white;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.footer-left img {
    height: 85px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-right img {
    height: 45px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
}

.footer-link {
    color: #008743;
    text-decoration: underline;
    font-size: 16px;
}

.copyright {
    display: flex;
    justify-content: end;
    margin-right: 370px;
    font-size: 16px;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .header-right {
        gap: 30px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    .form-section {
        max-width: 100%;
    }
    
    input[type="text"], .input-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        width: 100%;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 10px;
    }
    
    .language-selector {
        margin-top: 30px;
        width: auto;
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
    }
    
    .info-box {
        padding: 6px 6px 6px 45px;
    }
    
    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-left {
        text-align: center;
        width: 100%;
    }
    
    .footer-left img {
        margin: 0 auto;
        display: block;
    }
    
    .footer-right {
        width: 100%;
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-link {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .footer-link:last-child {
        text-align: right;
    }
    .copyright {
        font-size: 14px;
        color: #555;
        text-align: end;
        margin-top: -10px;
        margin-right: 0;
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 34px;
        font-weight: 600;
    }
    
    .linha-cidadao span {
        font-size: 12px !important;
    }
    
    .info-box {
        padding: 12px 12px 12px 40px;
        margin-bottom: 20px;
    }
    
    .info-box p {
        font-size: 14px;
        line-height: 21px;
        height: 100%;
        width: 80%;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .btn-verificar {
        width: 70%;
        padding: 12px;
    }
    
    .footer-left img {
        height: 65px;
    }
    
    .footer-right img {
        height: 35px;
    }
    
    .footer-bottom {
        padding: 10px 0;
    }
    
    .footer-link {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    header .container {
        gap: 10px;
    }
    
    .logo img {
        height: 36px;
    }
    
    .auth-icon {
        height: 32px;
    }
    
    .linha-cidadao img {
        height: 32px;
    }
    
    .header-right {
        gap: 15px;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    
    .language-selector {
        padding: 6px 10px;
        margin-top: 20px;
        margin-bottom: 15px;
        width: auto;
        display: inline-flex;
    }
    
    .lang-selected {
        margin-right: 10px;
    }
    
    .recaptcha-container {
        transform: scale(0.85);
        transform-origin: 0 0;
        margin-bottom: 10px;
        width: 100%;
        overflow: hidden;
    }
    
    .footer-left img {
        height: 65px;
    }
    
    .footer-right img {
        height: 35px;
    }
    
    .footer-bottom {
        padding: 10px 0;
    }
    
    .footer-link {
        font-size: 14px;
    }
}

/* Mensagens */
.mensagem {
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
}

.mensagem.sucesso {
    /* background-color: #f0fdf4; */
    /* border: 1px solid #01743a; */
    color: #333;
}

.mensagem.erro {
    background-color: #ffeaea;
    color: #dc3545;
    border-radius: 10px;
    border-left: 10px solid #dc3545;
    padding: 15px 15px 15px 15px;    
}

.sucesso-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.sucesso-header i {
    color: #01743a;
    font-size: 27px;
    margin-right: 10px;
}

.sucesso-header h2 {
    font-size: 32px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.mensagem.sucesso p {
    margin-bottom: 15px;
    font-size: 16px;
}

.documento-link {
    color: #01743a;
    text-decoration: underline;
}

.documento-link:hover {
    text-decoration: none;
}

.btn-inserir {
    display: inline-block;
    background-color: white;
    color: #01743a;
    border: 1px solid #01743a;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.2s;
    font-weight: bold;
    margin-top: 30px;
}


.fa-check-circle {
    color: #01743a;
}

.fa-times-circle {
    color: #dc3545;
    font-weight: bold;
    font-size: 19px;
}

/* Estilos para informações da firma */
.valor_tva_firma {
    position: absolute;
    font-size: 10px;
    padding: 1px 4px;
    z-index: 2;
}

.valor_informacao_firma1 {
    position: absolute;
    font-size: 10px;
    padding: 1px 4px;
    z-index: 2;
}

.valor_informacao_firma2 {
    position: absolute;
    font-size: 10px;
    padding: 1px 4px;
    z-index: 2;
}

/* Campos de dados da firma */
.valor_5_1_1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 2;
}

.valor_5_1_2 {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 2;
}

.valor_5_1_3 {
    position: absolute;
    top: 520px;
    left: 50px;
}

.valor_5_2_1 {
    position: absolute;
    top: 540px;
    left: 50px;
}

.valor_5_2_2 {
    position: absolute;
    top: 560px;
    left: 50px;
}

.dados_pessoais {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
}

.campo_tva_firma {
    position: absolute;
    font-size: 9pt;
    font-weight: bold;
    z-index: 2;
}

.campo_informacao_firma1 {
    position: absolute;
    font-size: 9pt;
    font-weight: bold;
    z-index: 2;
}

.campo_informacao_firma2 {
    position: absolute;
    font-size: 9pt;
    font-weight: bold;
    z-index: 2;
}
