/* ==========================================================================
   Gov.br Receita Federal - Replicated Theme Stylesheet
   ========================================================================== */

/* Variables Definition */
:root {
    --govbr-primary-dark: #071d41;       /* Portal Footer Background */
    --govbr-primary-darker: #04132a;     /* Copyright Bar Background */
    --govbr-blue-brand: #1351b4;         /* Official Gov.br Blue */
    --govbr-blue-hover: #0c3c88;         /* Primary Hover Blue */
    --govbr-text-dark: #333333;          /* Standard Dark Text */
    --govbr-text-muted: #555555;        /* Secondary Gray Text */
    --govbr-text-light: #ffffff;         /* White Text */
    --govbr-bg-light: #f8f9fa;           /* Off-White Section BG */
    --govbr-gray-nav: #ededed;           /* Navigation BG */
    --govbr-border-color: #cccccc;       /* Standard Border Gray */
    --govbr-font: 'rawline', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --govbr-transition: all 0.25s ease-in-out;
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--govbr-font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--govbr-text-dark);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--govbr-blue-brand);
    text-decoration: none;
    transition: var(--govbr-transition);
}

a:hover {
    color: var(--govbr-blue-hover);
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

#site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
}

.header-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.header-wrapper.main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo and Toggle */
.site-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ico-navegacao {
    font-size: 20px;
    color: var(--govbr-text-muted);
    padding: 5px;
    cursor: pointer;
}

.ico-navegacao:hover {
    color: var(--govbr-blue-brand);
}

.site-name-wrapper {
    display: flex;
    flex-direction: column;
}

.site-subtitle {
    font-size: 11px;
    color: var(--govbr-text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.site-name {
    font-size: 24px;
    font-weight: 700;
}

.site-name a {
    color: var(--govbr-text-dark);
}

.site-name a:hover {
    text-decoration: none;
    color: var(--govbr-blue-brand);
}

/* Search Bar (Cabeçalho de Busca) */
.govbr-busca-header {
    flex-grow: 1;
    max-width: 480px;
}

#govbr-busca-input {
    width: 100%;
}

.aa-Form {
    display: flex;
    align-items: center;
    background-color: #f0f2f5;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0 10px;
    transition: var(--govbr-transition);
}

.aa-Form:focus-within {
    background-color: #ffffff;
    border-color: var(--govbr-blue-brand);
    box-shadow: 0 0 0 3px rgba(19, 81, 180, 0.15);
}

.aa-InputWrapperPrefix {
    display: flex;
    align-items: center;
}

.aa-SubmitButton {
    background: none;
    border: none;
    color: var(--govbr-text-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aa-SubmitButton:hover {
    color: var(--govbr-blue-brand);
}

.aa-InputWrapper {
    flex-grow: 1;
}

.aa-Input {
    width: 100%;
    border: none;
    background: none;
    padding: 10px 5px;
    font-family: var(--govbr-font);
    font-size: 14px;
    color: var(--govbr-text-dark);
    outline: none;
}

.aa-Input::placeholder {
    color: #757575;
}

.btn-busca-por-voz {
    background: none;
    border: none;
    color: var(--govbr-text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    transition: var(--govbr-transition);
}

.btn-busca-por-voz:hover {
    color: var(--govbr-blue-brand);
}

/* Social Media & Extra Header Controls */
.header-extra-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-social-list {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-social-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f0f2f5;
    color: var(--govbr-text-muted);
    font-size: 14px;
}

.header-social-list li a:hover {
    background-color: var(--govbr-blue-brand);
    color: var(--govbr-text-light);
    text-decoration: none;
    transform: translateY(-2px);
}

.govbr-busca-toggle {
    display: none; /* Only visible on mobile */
    background: none;
    border: none;
    font-size: 18px;
    color: var(--govbr-text-muted);
    cursor: pointer;
    padding: 8px;
}

/* ==========================================================================
   Termos mais buscados (Most Searched Terms)
   ========================================================================== */

.termos-mais-buscados-container {
    background-color: #ffffff;
    border-top: 1px solid #f0f2f5;
    padding: 8px 20px;
}

.termos-mais-buscados-container .header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.source-termos-mais-buscados {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.source-header-termos-mais-buscados {
    font-size: 12px;
    font-weight: 700;
    color: var(--govbr-text-muted);
}

.list-termos-mais-buscados {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.item-termos-mais-buscados a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #f0f2f5;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--govbr-text-muted);
    font-weight: 600;
}

.item-termos-mais-buscados a:hover {
    background-color: var(--govbr-blue-brand);
    color: var(--govbr-text-light);
    text-decoration: none;
}

.item-termos-mais-buscados a .fa-arrow-trend-up {
    font-size: 10px;
}

/* ==========================================================================
   Navigation Menu Styles
   ========================================================================== */

.navigation-wrapper {
    background-color: var(--govbr-gray-nav);
    border-bottom: 3px solid var(--govbr-blue-brand);
    width: 100%;
}

.navigation-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-menu {
    display: flex;
    flex-wrap: wrap;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    display: block;
    padding: 15px 20px;
    color: var(--govbr-text-dark);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px; /* Align border with nav border */
}

.menu-item:hover > a {
    color: var(--govbr-blue-brand);
    border-bottom-color: var(--govbr-blue-brand);
    background-color: #e5e5e5;
    text-decoration: none;
}

.menu-item > a i {
    font-size: 12px;
    transition: transform 0.2s ease-in-out;
}

.menu-item:hover > a i {
    transform: rotate(180deg);
}

/* Dropdowns & Mega Menus (Desktop) */
.submenu-container {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid var(--govbr-border-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 260px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    border-top: 4px solid var(--govbr-blue-brand);
}

.menu-item:hover .submenu-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-container ul li a {
    display: block;
    padding: 8px 20px;
    color: var(--govbr-text-dark);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submenu-container ul li a:hover {
    background-color: var(--govbr-bg-light);
    color: var(--govbr-blue-brand);
    text-decoration: none;
    padding-left: 24px;
}

/* Mega Menu configuration */
.submenu-container.mega-menu {
    width: 720px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.submenu-column {
    display: flex;
    flex-direction: column;
}

.submenu-header {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--govbr-blue-brand);
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.submenu-container.mega-menu ul li a {
    padding: 6px 0;
}

.submenu-container.mega-menu ul li a:hover {
    background: none;
    padding-left: 6px;
}

.navigation-content-extra {
    display: none; /* Only used inside mobile drawer */
}

/* ==========================================================================
   Main Content Mockup Styles
   ========================================================================== */

.main-content-area {
    padding: 60px 20px;
    background-color: #f5f6f8;
    min-height: 400px;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.alert-box {
    display: flex;
    align-items: center;
    background-color: #e8f1fc;
    border-left: 4px solid var(--govbr-blue-brand);
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    gap: 15px;
}

.alert-box .badge {
    background-color: var(--govbr-blue-brand);
    color: var(--govbr-text-light);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
}

.alert-box p {
    font-size: 14px;
    color: #1e3a5f;
    margin: 0;
}

.intro-section {
    margin-bottom: 40px;
}

.intro-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--govbr-primary-dark);
    margin-bottom: 10px;
}

.intro-section p {
    font-size: 16px;
    color: var(--govbr-text-muted);
    max-width: 800px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.feature-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: var(--govbr-transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--govbr-blue-brand);
}

.card-icon {
    font-size: 36px;
    color: var(--govbr-blue-brand);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--govbr-text-dark);
}

.feature-card p {
    font-size: 13px;
    color: var(--govbr-text-muted);
    line-height: 1.6;
}

/* Tech specs list */
.tech-specs {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
}

.tech-specs h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--govbr-primary-dark);
    margin-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 10px;
}

.tech-specs ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-specs ul li {
    font-size: 14px;
    color: var(--govbr-text-dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tech-specs ul li i {
    color: #28a745;
    margin-top: 3px;
}

.tech-specs code {
    background-color: #f1f3f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

#portal-footer {
    background-color: var(--govbr-primary-dark);
    color: var(--govbr-text-light);
    font-family: var(--govbr-font);
    font-size: 12px;
    width: 100%;
}

#portal-footer .footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* Logo in Footer */
.govbr-logo-container {
    margin-bottom: 40px;
}

.govbr-logo {
    width: 165px;
    height: 60px;
    background-image: url("https://www.gov.br/receitafederal/++theme++padrao_govbr/img/govbr.png");
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
}

/* 7 Columns Navigation Grid */
.list-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-col-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--govbr-text-light);
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-navigation ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.list-navigation ul li a:hover {
    color: var(--govbr-text-light);
    text-decoration: underline;
    padding-left: 4px;
}

/* Reset Cookies Area */
.lgpd-reset-cookies {
    margin-bottom: 30px;
}

.reset-cookies {
    display: inline-block;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    transition: var(--govbr-transition);
}

.reset-cookies:hover {
    color: var(--govbr-text-light);
    border-color: var(--govbr-text-light);
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

/* Redes Sociais & Logos bottom section */
.redes-e-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.redes-sociais .titulo {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.portal-redes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.portal-redes li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.portal-redes li a i {
    font-size: 14px;
}

.portal-redes li a:hover {
    color: var(--govbr-text-light);
    text-decoration: none;
}

/* Access to Information SVG Logo Container */
#footer-govbr {
    background-color: transparent;
}

.logo-acesso-footer svg {
    display: block;
    transition: var(--govbr-transition);
}

.logo-acesso-footer:hover svg {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Bottom Copyright Bar */
.texto-copyright {
    background-color: var(--govbr-primary-darker);
    color: rgba(255, 255, 255, 0.5);
    padding: 20px;
    text-align: center;
    font-size: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.texto-copyright a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.texto-copyright a:hover {
    color: var(--govbr-text-light);
}

/* ==========================================================================
   Responsive & Adaptive Media Queries
   ========================================================================== */

/* Tablet & Mobile Styles (< 992px) */
@media (max-width: 991.98px) {
    .header-main-container {
        padding: 10px 15px;
    }

    .site-name {
        font-size: 20px;
    }

    /* Hide desktop features */
    .header-social-networks,
    .termos-mais-buscados-container {
        display: none;
    }

    .govbr-busca-toggle {
        display: block;
    }

    /* Interactive mobile search sliding bar */
    .govbr-busca-header {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        padding: 10px 20px;
        z-index: 999;
        display: none; /* Controlled by JS */
        border-bottom: 1px solid #e5e5e5;
    }

    .govbr-busca-header.active {
        display: block;
    }

    /* Mobile Navigation Drawer sliding from Left */
    .navigation-wrapper {
        position: fixed;
        top: 0;
        left: -280px; /* Start hidden off-screen */
        width: 280px;
        height: 100%;
        background-color: #ffffff;
        z-index: 1001;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease-in-out;
        border-right: 1px solid #e5e5e5;
        border-bottom: none;
        overflow-y: auto;
    }

    .navigation-wrapper.active {
        left: 0;
    }

    .navigation-content-container {
        padding: 0;
    }

    .main-menu {
        flex-direction: column;
        width: 100%;
    }

    .menu-item {
        width: 100%;
        border-bottom: 1px solid #f0f2f5;
    }

    .menu-item > a {
        padding: 15px 20px;
        border-bottom: none;
        margin-bottom: 0;
        justify-content: space-between;
    }

    .menu-item:hover > a {
        background-color: #f5f6f8;
        border-bottom-color: transparent;
    }

    .menu-item > a i {
        transition: transform 0.2s;
    }

    .menu-item.submenu-active > a i {
        transform: rotate(180deg);
    }

    /* Mobile Submenu Accordions */
    .submenu-container {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: none;
        background-color: #f9fafb;
        width: 100%;
        display: none; /* Controlled by JS */
        padding: 0;
    }

    .menu-item.submenu-active .submenu-container {
        display: block;
    }

    .submenu-container ul li a {
        padding: 10px 30px;
    }

    .submenu-container.mega-menu {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px 20px;
    }

    .submenu-header {
        font-size: 11px;
        padding-bottom: 4px;
        margin-bottom: 5px;
        margin-top: 10px;
    }

    /* Mobile Social Icons in Drawer */
    .navigation-content-extra {
        display: block;
        padding: 30px 20px;
        background-color: #f0f2f5;
        border-top: 1px solid #e5e5e5;
        margin-top: 20px;
    }

    .mobile-social-title {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--govbr-text-muted);
        margin-bottom: 15px;
    }

    .portal-redes {
        flex-direction: column;
        gap: 12px;
    }

    .portal-redes li a {
        color: var(--govbr-text-dark);
    }

    /* Overlay Background styling */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Footer Responsive Grid */
    .list-navigation {
        grid-template-columns: repeat(2, 1fr);
    }

    .redes-e-logos {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* Smartphone Screens (< 576px) */
@media (max-width: 575.98px) {
    .site-name {
        font-size: 18px;
    }

    .list-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-col-title {
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 5px;
    }
}

/* ==========================================================================
   IRPF 2026 Query Card & Form Styles
   ========================================================================== */

/* Official gov.br SSO Header and Navigation Styles */
header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 6px #00000029;
    margin-bottom: 6px;
    width: 100%;
    background-color: #ffffff;
    padding: 10px 20px;
}

header img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

#acessibilidade {
    display: flex;
    align-items: center;
}

#acessibilidade a,
#acessibilidade span {
    margin: 10px 10px 0 10px;
}

#acessibilidade div {
    margin-right: 25px;
}

#acessibilidade i {
    margin: 0 0.2em 0 0;
    color: #333333;
}

#acessibilidade a {
    color: #333333;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
}

#acessibilidade a:hover {
    text-decoration: underline;
}

/* Official Layout Container */
.container {
    display: flex;
    flex-wrap: wrap;
    margin-right: auto;
    margin-left: auto;
    max-width: 1440px;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    min-height: calc(100vh - 254px);
    align-items: flex-start;
    background-color: #ffffff;
}

aside {
    display: flex;
    flex: 1 0 50%;
    flex-direction: column;
}

#aside-signin {
    flex: 1 0 60% !important;
    padding-right: 40px;
}

#identidade-govbr {
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

main {
    display: flex;
    flex: 1 0 50%;
    flex-direction: column;
}

#main-signin {
    flex: 1 0 38% !important;
    width: 100%;
}

/* Official SSO Login Card Styles */
.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff 0 0 no-repeat padding-box;
    box-shadow: 0 2px 4px #00000033;
    padding: 30px;
    margin: 20px auto auto auto;
    max-width: 384px;
    width: 100%;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.card h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: #333333;
    margin: 0 0 15px 0;
}

.card p {
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: 0.82rem;
    color: #555555;
    line-height: 1.4;
}

/* Input ways (options row list) */
.item-login-signup-ways {
    display: flex;
    align-items: center;
    margin: 15px 0 0 0;
    cursor: pointer;
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 12px 15px;
    transition: background-color 0.2s, border-color 0.2s;
    background-color: #ffffff;
}

.item-login-signup-ways:hover {
    background-color: #f8f9fa;
    border-color: #1351b4;
}

.item-login-signup-ways a,
.button-href-mimic2 {
    font-size: 0.95em;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
    width: 100%;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'rawline', Rawline, sans-serif;
    text-align: left;
}

.item-login-signup-ways img,
.button-href-mimic2 img {
    vertical-align: middle;
    margin: 0 12px 0 0;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Accordion panel (visible inside step 1 by default) */
.accordion-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-height: none;
    overflow: hidden;
    padding-top: 5px;
}

/* Forms Input, Select & Labels */
label {
    margin: 12px 0 5px 0;
    font-size: 0.95em;
    font-weight: 600;
    color: #333333;
    display: block;
}

input,
select {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    background: #FFFFFF 0 0 no-repeat padding-box;
    border: 1px solid #888888;
    border-radius: 4px;
    font-size: 0.95em;
    font-family: inherit;
    color: #333333;
    outline: none;
    transition: background-color 0.2s, border-color 0.2s;
}

/* Official yellow-ish focus background and blue border */
input:focus,
select:focus {
    background-color: rgba(242, 227, 23, 0.2) !important;
    border-color: #1351B4 !important;
}

::placeholder {
    opacity: 0.7;
    font-style: italic;
    font-size: 90%;
    color: #888888;
}

hr {
    width: 100%;
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #ededed;
}

#title-outras-op {
    margin: 20px 0 5px 0;
    font-size: 0.85em;
    font-weight: 700;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button panels and custom buttons */
.button-panel {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
    margin: 25px 0 10px 0;
}

.button-cancel,
.button-continuar {
    width: 145px;
    height: 40px;
    font-size: 0.95em;
    font-weight: 700;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-continuar {
    background: #1351B4 0 0 no-repeat padding-box;
    color: #FFFFFF;
    border: none;
}

.button-continuar:hover {
    background-color: #0c3c88;
}

.button-cancel {
    background: #FFFFFF 0 0 no-repeat padding-box;
    color: #1351B4 !important;
    border: 1px solid #1351B4 !important;
}

.button-cancel:hover {
    background-color: #f0f2f5;
}

/* Help link bottom panel */
.entenda-id-govbr {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-top: 25px;
    width: 100%;
}

#entenda-id-govbr-a,
#termo-de-uso {
    color: #1351B4;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    transition: color 0.2s;
}

#entenda-id-govbr-a:hover,
#termo-de-uso:hover {
    color: #0c3c88;
    text-decoration: underline;
}

/* Custom Simulated reCAPTCHA Widget */
.captcha-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.recaptcha-widget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    padding: 10px 15px;
    width: 100%;
}

.recaptcha-checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recaptcha-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.recaptcha-checkbox:hover {
    border-color: #b2b2b2;
}

.recaptcha-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #4a90e2;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.recaptcha-check-icon {
    display: none;
    color: #009b00;
    font-size: 14px;
}

.recaptcha-checkbox.checked {
    border-color: transparent;
    background-color: transparent;
}

.recaptcha-checkbox.checked .recaptcha-check-icon {
    display: block;
}

.recaptcha-text {
    font-size: 13px;
    color: #2b2b2b;
    font-weight: 500;
    user-select: none;
    cursor: pointer;
}

.recaptcha-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recaptcha-logo {
    height: 28px;
    object-fit: contain;
}

.recaptcha-link {
    font-size: 8px;
    color: #555555;
    margin-top: 2px;
}

.error-msg {
    display: none;
    color: #d93025;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

/* Loading Panel and Spinner Elements */
.loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 10px;
    width: 100%;
}

.loading-spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
}

.rf-loading-circle {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border: 5px solid #e0e0e0;
    border-top: 5px solid #1351b4;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: auto;
}

.loading-subtext {
    font-size: 13px;
    color: #555555;
    min-height: 40px;
    line-height: 1.4;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: #f0f2f5;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #1351b4;
    transition: width 0.1s linear;
}

/* Results Display Elements styling */
.result-card {
    width: 100%;
}

.result-success-badge {
    background-color: #daffe8;
    border: 1px solid #c2f0d1;
    color: #137333;
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.result-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #ededed;
    padding-bottom: 20px;
}

.status-shield {
    font-size: 36px;
    color: #137333;
}

.result-header-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 4px 0;
}

.text-success {
    color: #137333;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

.taxpayer-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 20px;
    margin-bottom: 25px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #666666;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 13.5px;
    font-weight: 600;
    color: #333333;
}

.refund-amount-box {
    background: linear-gradient(135deg, #1351b4, #071d41);
    color: #ffffff;
    padding: 25px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(19, 81, 180, 0.15);
}

.refund-amount-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.refund-amount-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.refund-info-subtext {
    font-size: 11px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.4;
}

.payment-instructions {
    background-color: #fffde7;
    border: 1px solid #fff59d;
    border-radius: 6px;
    padding: 15px 20px;
    font-size: 12.5px;
    color: #5d4037;
    line-height: 1.5;
    margin-bottom: 25px;
}

.payment-instructions h4 {
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 6px;
    color: #3e2723;
}

.payment-instructions p {
    font-size: 12.5px;
    color: #5d4037;
    margin-bottom: 8px;
}

.btn-pix-claim {
    width: 100%;
    height: 48px;
    background-color: #008C32;
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 140, 50, 0.25);
    transition: background-color 0.2s;
}

.btn-pix-claim:hover {
    background-color: #006424;
}

.secure-footer {
    text-align: center;
    font-size: 11px;
    color: #888888;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.secure-footer i {
    color: #137333;
}

/* CSS Global Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Overrides (matching official gov.br templates break points) */
@media (max-width: 764px) {
    body {
        font-size: 0.875rem;
    }
    
    .container {
        flex-direction: column-reverse;
        padding-right: 10px;
        padding-left: 10px;
    }
    
    main {
        flex: 0 0 100%;
        width: 100%;
    }
    
    aside,
    #aside-signin,
    #identidade-govbr {
        display: none !important;
    }
    
    .card {
        padding: 20px 15px;
        box-shadow: none;
        border: none;
        margin: 10px auto;
        max-width: 340px;
    }
    
    #login-button-panel {
        justify-content: space-evenly;
    }
    
    .button-continuar,
    .button-cancel {
        width: 100%;
    }
    
    #acessibilidade a span {
        display: none;
    }
    
    #acessibilidade a,
    #acessibilidade span {
        margin: 0 10px 0 0;
    }
    
    .taxpayer-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

    display: none;
    color: #009b00;
    font-size: 14px;
}

.recaptcha-checkbox.checked {
    border-color: transparent;
    background-color: transparent;
}

.recaptcha-checkbox.checked .recaptcha-check-icon {
    display: block;
}

.recaptcha-text {
    font-size: 13px;
    color: #2b2b2b;
    font-weight: 500;
    user-select: none;
    cursor: pointer;
}

.recaptcha-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recaptcha-logo {
    height: 28px;
    object-fit: contain;
}

.recaptcha-link {
    font-size: 8px;
    color: #555555;
    margin-top: 2px;
}

.error-msg {
    display: none;
    color: #d93025;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

/* Buttons */
.btn-consult-submit {
    background-color: var(--govbr-blue-brand);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--govbr-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-consult-submit:hover {
    background-color: var(--govbr-blue-hover);
    box-shadow: 0 4px 12px rgba(19, 81, 180, 0.25);
}

/* Loading card styling */
.loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 35px;
}

.loading-spinner-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 25px;
}

.rf-loading-circle {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border: 5px solid #e0e0e0;
    border-top: 5px solid var(--govbr-blue-brand);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.loading-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--govbr-primary-dark);
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 14px;
    color: var(--govbr-text-muted);
    min-height: 20px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: #ededed;
    border-radius: 3px;
    margin-top: 30px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: var(--govbr-blue-brand);
    border-radius: 3px;
    transition: width 0.4s ease-out;
}

/* Result card styling */
.result-card {
    padding: 30px;
}

.result-success-badge {
    background-color: #e6f4ea;
    color: #137333;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.status-shield {
    font-size: 40px;
    color: #137333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-header-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--govbr-primary-dark);
}

.text-success {
    color: #137333;
    font-size: 13px;
    font-weight: 500;
    margin-top: 2px;
}

.taxpayer-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    background-color: #f8f9fa;
    border: 1px solid #ededed;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

@media (max-width: 480px) {
    .taxpayer-details-grid {
        grid-template-columns: 1fr;
    }
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 10px;
    font-weight: 700;
    color: #70757a;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--govbr-text-dark);
}

.refund-amount-box {
    background: linear-gradient(135deg, #1351b4 0%, #071d41 100%);
    border-radius: 8px;
    color: #ffffff;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(19, 81, 180, 0.15);
}

.refund-amount-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}

.refund-amount-value {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.refund-info-subtext {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.payment-instructions {
    margin-bottom: 30px;
    line-height: 1.6;
}

.payment-instructions h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--govbr-primary-dark);
    margin-bottom: 10px;
}

.payment-instructions p {
    font-size: 13px;
    color: var(--govbr-text-muted);
    margin-bottom: 12px;
}

.btn-pix-claim {
    background-color: #f2a100; /* Rich gold/yellow for CTA focus */
    color: var(--govbr-primary-darker);
    border: none;
    border-radius: 4px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    transition: var(--govbr-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(242, 161, 0, 0.2);
}

.btn-pix-claim:hover {
    background-color: #d99000;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(242, 161, 0, 0.3);
}

.secure-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: #70757a;
    margin-top: 25px;
    border-top: 1px solid #ededed;
    padding-top: 15px;
}

.secure-footer i {
    color: #137333;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
