/* === liberacao-nova.css ===
   Auto-extracted from liberacao_nova.blade.php
   Original lines: 51-3280
*/


        .benefit-card {
            background: white;
            border-radius: 10px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease;
        }

        .checkbox-container-endereco {
            background: #eff1ff;
            padding: 10px 40px;
            border-radius: 7px;
        }
        .benefit-card:hover {
            transform: translateY(-5px);
        }

        .benefit-icon {
            width: 50px;
            height: 50px;
            margin-bottom: 20px;
        }

        #modalPorqueAssinar .modal-header {
            background: #6366f1;
            color: white;
        }

        #modalPorqueAssinar .modal-body {
            background: #f8f9fa;
            padding: 30px;
        }

        #modalPorqueAssinar .cta-section {
            background: #22c55e;
            color: white;
            padding: 30px;
            margin-top: 20px;
            border-radius: 10px;
            text-align: center;
        }

        @keyframes flip {
            0% {
                transform: perspective(400px) rotateY(0);
            }
            100% {
                transform: perspective(400px) rotateY(360deg);
            }
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.1);
                opacity: 0.9;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .contrato-icon {
            width: 260px !important;
            height: 260px !important;
            backface-visibility: visible !important;
            transform-origin: center;
            animation: pulse 2s infinite ease-in-out;
        }

        /* Estilos para as cláusulas adicionais */
        div#clausulas_existentes p {
            color: #878787;
            font-weight: lighter;
            font-size: smaller;
        }

        /* Estilos para a letra da música */
        #letra_musica {
            color: #8390d3;
            font-weight: lighter;
        }

        /* Ajuste para o peso da fonte nos campos de entrada - aplicação global */
        input[type="text"],
        input[type="email"],
        input[type="number"],
        input[type="tel"],
        input[type="date"],
        input[type="password"],
        textarea,
        select,
        .form-control {
            font-weight: normal;
        }

        /* Estilo para o foco em elementos de formulário - aplicação global */
        input[type="text"]:focus,
        input[type="email"]:focus,
        input[type="number"]:focus,
        input[type="tel"]:focus,
        input[type="date"]:focus,
        input[type="password"]:focus,
        textarea:focus,
        select:focus,
        .form-control:focus {
            color: #152da9 !important;
            font-weight: 400 !important;
            font-size: 15px !important;
        }

        /* CORREÇÃO: Remover box-shadow verde quando campo se torna inválido */
        .form-control.is-invalid,
        .form-select.is-invalid {
            box-shadow: none !important;
        }

        /* Garantir que apenas campos válidos tenham box-shadow verde */
        .form-control.is-valid,
        .form-select.is-valid {
            box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
        }

        input[type="text"], input[type="email"], input[type="number"], input[type="tel"], input[type="date"], input[type="password"], textarea, select, .form-control {
            font-weight: normal;
            color: #8390d3;
        }

        .composer-item strong {
            margin-bottom: 10px;
            display: block;
        }

        /* Cor branca para o texto do botão importar dados */
        #btn-importar-dados {
            color: white;
        }

        /* Labels com destaque */
        label {
            font-weight: bold;
        }

        /* Estilo para o título principal */
        .card-header {
            background: linear-gradient(135deg, #4352AF 0%, #364395 100%) !important;
            color: white !important;
            padding: 20px 25px !important;
            font-size: 2rem !important;
            font-weight: 800 !important;
            border-bottom: none !important;
            font-family: 'Montserrat', sans-serif !important;
            letter-spacing: 0.5px !important;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3) !important;
        }

        .card-header:first-child {
            border-radius: 20px 20px 0 0 !important;
        }

        /* Título especial para "Criação de Contrato de Liberação" */
        .titulo-criacao-contrato {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            text-transform: uppercase !important;
        }

        .titulo-criacao-contrato i {
            margin-right: 15px !important;
            font-size: 2rem !important;
        }

        /* Estilo personalizado para o texto do título no card */
        .titulo-criacao-contrato span {
            font-size: 21px;
            font-family: 'Poppins', sans-serif;
            font-weight: 300;
        }

        /* Garantir que o backdrop não cause problemas na interface */
        .modal-backdrop {
            z-index: 1030 !important;
        }
        
        .modal {
            z-index: 1040 !important;
        }

        /* Remover backdrop manualmente quando necessário */
        body.modal-open-fixed {
            overflow: hidden;
            padding-right: 0 !important;
        }

        /* Evitar superposição de múltiplos backdrops */
        .modal-backdrop + .modal-backdrop {
            opacity: 0 !important;
            visibility: hidden !important;
        }

        #btn-copy-qrcode {
            height: 49px;
            margin-top: 3px;
        }

        :root {
            --primary: #4f66de;
            --secondary: #75787D;
            --success: #5CBA7D;
            --info: #5DBAE3;
            --warning: #FFC25E;
            --danger: #F04A4D;
            --light: #f8f9fa;
            --dark: #343a40;
            --gray: #888;
            --border-color: #e0e0e0;
            --info-color: #0dcaf0;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
        }

        body {
            background-color: #f0f2f5;
            color: var(--dark);
            font-family: 'Poppins', sans-serif;
            overflow-x: hidden;
        }

        /* 🛡️ FIX: Impedir que o SweetAlert2 trave o scroll do LiberaFácil */
        body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
            overflow: auto !important;
            padding-right: 0 !important;
        }
        html.swal2-shown {
            overflow: auto !important;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
        }

        /* Header Styles */
        .navbar {
            background-color: rgba(255, 255, 255, 0.95);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 0;
            height: 90px;
            transition: all 0.3s ease;
        }

        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1030;
        }

        .navbar-brand img {
            height: 52px;
            transition: all 0.3s ease;
        }

        /* Logo centralizada em todos os dispositivos */
        .navbar .container {
            display: flex;
            align-items: center;
            position: relative;
            height: 100%;
        }

        /* Logo alinhada à esquerda */
        .navbar-brand.mx-auto {
            position: static;
            left: auto;
            transform: none;
            margin: 0;
        }

        /* Ajuste para dispositivos móveis */
        @media (max-width: 991.98px) {
            .navbar {
                padding: 0;
                height: 75px;
            }

            .navbar-brand img {
                height: 44px;
            }
        }

        .nav-link {
            font-weight: 500;
            color: var(--dark);
            margin: 0 10px;
            transition: color 0.3s ease;
        }

        .nav-link:hover {
            color: var(--primary);
        }

        .page-header {
            background: linear-gradient(135deg, rgb(41 80 136 / 84%) 0%, rgb(114 166 84 / 89%) 100%), url('https://images.unsplash.com/photo-1511379938547-c1f69419868d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80') center / cover no-repeat;
            color: #fff;
            padding: 120px 0 100px;
            margin-bottom: 40px;
            position: relative;
        }

        .page-header h1 {
            font-size: 2.8rem;
            font-weight: 800;
            margin-bottom: 20px;
            font-family: 'Montserrat', sans-serif;
        }

        .page-header p {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto;
            opacity: 0.9;
        }

        .page-header-shape {
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 60px;
            background-color: #f8f9fa;
            border-radius: 100% 100% 0 0;
            z-index: 1;
        }

        .form-container {
            max-width: 900px;
            margin: 0 auto 40px;
            position: relative;
            z-index: 2;
        }

        .card {
            background-color: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            margin-bottom: 30px;
            overflow: hidden;
            border: none;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }

        .card-header {
            background: linear-gradient(135deg, #4352AF 0%, #364395 100%) !important;
            color: white !important;
            padding: 20px 25px !important;
            font-size: 2rem !important;
            font-weight: 800 !important;
            border-bottom: none !important;
            font-family: 'Montserrat', sans-serif !important;
            letter-spacing: 0.5px !important;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3) !important;
        }

        .card-header:first-child {
            border-radius: 20px 20px 0 0 !important;
        }

        .form-section {
            padding: 2.5rem;
        }

        .form-label {
            font-weight: 600;
            color: #495057;
            margin-bottom: 0.5rem;
            font-size: 16px;
        }

        .form-label .required {
            color: red;
            margin-left: 2px;
        }

        .form-control {
            border-radius: 8px;
            border: 1px solid #ced4da;
            padding: 12px 18px;
            width: 100%;
            font-size: 16px;
            transition: all 0.2s ease;
            height: auto;
            margin-top: 3px;
            box-shadow: none;
        }

        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.2);
            outline: none;
        }

        .btn {
            padding: 12px 25px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 16px;
            transition: all 0.3s ease;
            text-transform: none;
        }

        .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
        }

        .btn-primary:hover {
            background-color: #4352AF;
            border-color: #4352AF;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(67, 82, 175, 0.3);
        }

        .btn-secondary {
            background-color: var(--secondary);
            border-color: var(--secondary);
            color: white;
        }

        .btn-secondary:hover {
            background-color: #4352AF;
            border-color: #4352AF;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(67, 82, 175, 0.3);
        }

        .btn-success {
            background-color: var(--success);
            border-color: var(--success);
        }

        .btn-success:hover {
            background-color: #4352AF;
            border-color: #4352AF;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(67, 82, 175, 0.3);
        }

        /* Estilo dos passos */
        .steps {
            display: flex;
            justify-content: center;
            margin: 0 0 25px 0;
            padding: 0 20px;
            width: 100%; /* Expandir para 100% da largura */
            overflow-x: auto;
            scroll-behavior: smooth;
        }

        /* Regras específicas para dispositivos móveis */
        @media only screen and (device-width: 375px),
               only screen and (device-width: 390px),
               only screen and (device-width: 414px) {
            .steps {
                padding: 12px;
                margin: 0 0 20px 0;
                width: 100%;
                justify-content: space-around;
                overflow: auto;
                border: 1px solid #c4c7d8;
                border-radius: 44px;
                margin-bottom: 28px;
            }
        }

        /* Centralizar scroll das fases */
        .steps-container {
            display: flex;
            justify-content: center;
            width: 100%;
            overflow-x: auto;
            scroll-behavior: smooth;
        }

        .steps-wrapper {
            display: flex;
            justify-content: center;
            min-width: max-content;
            padding: 0 20px;
        }

        button#btn-aplicar-cupom {
            margin-bottom: 4px;
            padding: 8px 12px;
            line-height: 1.2;
            white-space: nowrap;
        }

        .step {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background-color: #e9ecef;
            color: var(--gray);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            margin: 0 -6px;
            position: relative;
            z-index: 1;
            transition: all 0.3s ease;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            font-size: 16px;
            aspect-ratio: 1 / 1; /* Garantir proporção quadrada */
            flex-shrink: 0; /* Impedir que o elemento seja comprimido */
            margin-top: 0.5em;
        }

        .step.active {
            background-color: var(--primary);
            color: #FFFFFF !important;
            transform: scale(1.1);
            box-shadow: 0 4px 10px rgba(63, 81, 181, 0.3);
            margin-bottom: 13px;
        }

        .step.completed {
            background-color: var(--success);
            color: white !important;
        }

        .steps-progress {
            height: 6px;
            background-color: #e9ecef;
            position: relative;
            margin: -20px 100px 40px 100px;
            z-index: 0;
            border-radius: 10px;
        }

        .steps-progress-bar {
            height: 100%;
            background-color: #d3eadb;
            width: 0%;
            transition: width 0.5s ease;
            border-radius: 10px;
        }

        /* Icons para cada seção */
        .section-icon {
            font-size: 28px;
            color: var(--primary);
            margin-right: 15px;
        }

        .section-title {
            display: flex;
            align-items: center;
            font-size: 1.6rem;
            font-weight: 700;
            margin-bottom: 25px;
            color: var(--dark);
            padding-bottom: 15px;
            border-bottom: 2px solid var(--light);
            font-family: 'Montserrat', sans-serif;
            width: 100%;
            max-width: 100%;
        }

        .section-title h2 {
            margin: 0;
            padding: 0;
            flex: 1;
            text-align: left;
        }

        .section-title .section-icon {
            flex-shrink: 0;
            margin-right: 15px;
        }

        /* Grupos de input */
        .input-group {
            margin-bottom: 25px;
        }

        /* Novos estilos para os rótulos dos campos no novo formato */
        .form-section div > div:first-child:not(.phone-group) {
            font-weight: 500;
            color: #333;
            /* margin-bottom: 0.5rem; */
            font-size: 16px;
            text-align: left;
        }

        /* Espaçamento para os campos de formulário no novo formato */
        .form-section > div:not(.steps):not(.steps-progress):not(.section-title):not(.d-flex) {
            margin-bottom: 25px;
        }

        #step1 label, #step1 .form-label {
            margin-bottom: 8px;
            display: block;
        }

        #step1 .form-group {
            margin-bottom: 20px;
        }

        /* Grid de inputs */
        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            margin-bottom: 15px;
        }

        /* PRIMEIRA MEDIA QUERY - MOBILE */
        @media (max-width: 768px) {
            .form-grid {
                grid-template-columns: 1fr;
            }

            .steps {
                padding: 0;
                justify-content: space-between;
                width: 100%;
                margin: 0 0 25px 0;
            }

            .step {
                width: 40px;
                height: 40px;
                margin: 0 5px;
                min-width: 40px;
                min-height: 40px;
                font-size: 16px;
            }

            .steps-progress {
                margin: -20px 20px 30px 20px;
            }

            /* Regras específicas para mobile */
            .titulo-criacao-contrato span {
                font-size: 18px;
            }

            /* Botões das modais com 100% de largura no mobile */
            .modal-footer .btn,
            .modal .btn {
                width: 100% !important;
                margin: 5px 0 !important;
            }

            /* Botões da fase 4 com 100% de largura no mobile */
            #step4 .d-flex.justify-content-between {
                flex-direction: column !important;
                gap: 15px !important;
            }

            #step4 .d-flex.justify-content-between .btn {
                width: 100% !important;
                margin: 0 !important;
            }

            /* Fase 10 - itens centralizados e um abaixo do outro no mobile */
            #step10 .payment-buttons {
                flex-direction: column !important;
                align-items: center !important;
            }

            #step10 .payment-buttons button {
                width: 100% !important;
                max-width: 100% !important;
                margin: 10px 0 !important;
            }

            /* Fase 10 - todos os elementos empilhados verticalmente no mobile */
            #step10 .d-flex {
                flex-direction: column !important;
                align-items: center !important;
                gap: 15px !important;
            }

            #step10 .d-flex > * {
                width: 100% !important;
                text-align: center !important;
            }

            /* Campo de cupom e botão empilhados */
            #step10 .d-flex[style*="gap: 10px"] {
                flex-direction: column !important;
                gap: 15px !important;
            }

            #step10 .d-flex[style*="gap: 10px"] > * {
                width: 100% !important;
            }

            .page-header {
                display: none; /* Ocultar completamente o cabeçalho em dispositivos móveis */
            }

            .page-header-shape {
                display: none; /* Ocultar também a forma curva na parte inferior do cabeçalho */
            }

            .navbar {
                margin-bottom: 0; /* Remover espaço entre a navbar e o formulário */
            }

            .form-container {
                margin-top: 80px; /* Ajustar o espaço após a navbar fixa */
            }

            .card {
                border-radius: 0; /* Remover bordas arredondadas do card em dispositivos móveis */
                margin-bottom: 0; /* Remover margem inferior */
                box-shadow: none; /* Remover sombra para maximizar espaço */
            }

            .card-header {
                border-radius: 0 !important; /* Garantir que o cabeçalho do card não tenha bordas arredondadas */
        }

        .page-header h1 {
            font-size: 2.8rem;
            font-weight: 800;
            margin-bottom: 20px;
            font-family: 'Montserrat', sans-serif;
        }

        .page-header p {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto;
            opacity: 0.9;
        }

        .page-header-shape {
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 60px;
            background-color: #f8f9fa;
            border-radius: 100% 100% 0 0;
            z-index: 1;
        }

        .form-container {
            max-width: 900px;
            margin: 0 auto 40px;
            position: relative;
            z-index: 2;
        }

        .card {
            background-color: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            margin-bottom: 30px;
            overflow: hidden;
            border: none;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }

        .card-header {
            background: linear-gradient(135deg, #4352AF 0%, #364395 100%) !important;
            color: white !important;
            padding: 20px 25px !important;
            font-size: 2rem !important;
            font-weight: 800 !important;
            border-bottom: none !important;
            font-family: 'Montserrat', sans-serif !important;
            letter-spacing: 0.5px !important;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3) !important;
        }

        .card-header:first-child {
            border-radius: 20px 20px 0 0 !important;
        }

        .form-section {
            padding: 2.5rem;
        }

        .form-label {
            font-weight: 600;
            color: #495057;
            margin-bottom: 0.5rem;
            font-size: 16px;
        }

        .form-label .required {
            color: red;
            margin-left: 2px;
        }

        .form-control {
            border-radius: 8px;
            border: 1px solid #ced4da;
            padding: 12px 18px;
            width: 100%;
            font-size: 16px;
            transition: all 0.2s ease;
            height: auto;
            margin-top: 3px;
            box-shadow: none;
        }

        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.2);
            outline: none;
        }

        .btn {
            padding: 12px 25px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 16px;
            transition: all 0.3s ease;
            text-transform: none;
        }

        .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
        }

        .btn-primary:hover {
            background-color: #4352AF;
            border-color: #4352AF;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(67, 82, 175, 0.3);
        }

        .btn-secondary {
            background-color: var(--secondary);
            border-color: var(--secondary);
            color: white;
        }

        .btn-secondary:hover {
            background-color: #4352AF;
            border-color: #4352AF;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(67, 82, 175, 0.3);
        }

        .btn-success {
            background-color: var(--success);
            border-color: var(--success);
        }

        .btn-success:hover {
            background-color: #4352AF;
            border-color: #4352AF;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(67, 82, 175, 0.3);
        }

        /* Estilo dos passos */
        .steps {
            display: flex;
            justify-content: center;
            margin: 0 0 35px 0;
            padding: 0px 0px 20px 0;
            width: 100%;
            border-bottom: 2px dashed #eacccc;
        }

        button#btn-aplicar-cupom {
            margin-bottom: 4px;
            padding: 8px 12px;
            line-height: 1.2;
            white-space: nowrap;
        }

        .step {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: #e9ecef;
            color: var(--gray);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            margin: 0 15px;
            position: relative;
            z-index: 1;
            transition: all 0.3s ease;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
            font-size: 20px;
            aspect-ratio: 1 / 1; /* Garantir proporção quadrada */
            flex-shrink: 0; /* Impedir que o elemento seja comprimido */
        }

        .step.active {
            background-color: var(--primary);
            color: #FFFFFF !important;
            transform: scale(1.1);
            box-shadow: 0 4px 10px rgba(63, 81, 181, 0.3);
            margin-bottom: 13px;
        }

        .step.completed {
            background-color: var(--success);
            color: white !important;
        }

        .steps-progress {
                height: 16px;
            background-color: #e9ecef;
            position: relative;
            margin: -20px 100px 40px 100px;
            z-index: 0;
            border-radius: 10px;
        }

        .steps-progress-bar {
            height: 100%;
            background-color: var(--primary);
            width: 0%;
            transition: width 0.5s ease;
            border-radius: 10px;
        }

        /* Icons para cada seção */
        .section-icon {
            font-size: 28px;
            color: var(--primary);
            margin-right: 15px;
        }

        .section-title {
            display: flex;
            align-items: center;
            font-size: 1.6rem;
            font-weight: 700;
            margin-bottom: 55px;
            color: var(--dark);
            padding-bottom: 15px;
            border-bottom: 5px solid #b9b4f2;
            font-family: 'Montserrat', sans-serif;
            width: 100%;
            max-width: 100%;
        }

        .section-title h2 {
            margin: 0;
            padding: 0;
            flex: 1;
            text-align: left;
        }

        .section-title .section-icon {
            flex-shrink: 0;
            margin-right: 15px;
        }

        /* Grupos de input */
        .input-group {
            margin-bottom: 25px;
        }

        /* Novos estilos para os rótulos dos campos no novo formato */
        .form-section div > div:first-child:not(.phone-group) {
            font-weight: 500;
            color: #333;
            /* margin-bottom: 0.5rem; */
            font-size: 16px;
            text-align: left;
        }

        /* Espaçamento para os campos de formulário no novo formato */
        .form-section > div:not(.steps):not(.steps-progress):not(.section-title):not(.d-flex) {
            margin-bottom: 25px;
        }

        #step1 label, #step1 .form-label {
            margin-bottom: 8px;
            display: block;
        }

        #step1 .form-group {
            margin-bottom: 20px;
        }

        /* Grid de inputs */
        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            margin-bottom: 15px;
        }
        }
        @media (max-width: 768px) {
            .form-grid {
                grid-template-columns: 1fr;
            }

            .steps {
                padding: 0;
                justify-content: space-between;
                width: 100%;
                margin: 0 0 20px 0;
            }

            .step {
                width: 32px;
                height: 32px;
                margin: 0 3px;
                min-width: 32px;
                min-height: 32px;
                font-size: 14px;
            }

            .steps-progress {
                margin: -16px 20px 30px 20px;
            }

            .page-header {
                display: none; /* Ocultar completamente o cabeçalho em dispositivos móveis */
            }

            .page-header-shape {
                display: none; /* Ocultar também a forma curva na parte inferior do cabeçalho */
            }

            .navbar {
                margin-bottom: 0; /* Remover espaço entre a navbar e o formulário */
            }

            .form-container {
                margin-top: 80px; /* Ajustar o espaço após a navbar fixa */
            }

            .card {
                border-radius: 0; /* Remover bordas arredondadas do card em dispositivos móveis */
                margin-bottom: 0; /* Remover margem inferior */
                box-shadow: none; /* Remover sombra para maximizar espaço */
            }

            .card-header {
                border-radius: 0 !important; /* Garantir que o cabeçalho do card não tenha bordas arredondadas */
            }

            .page-header h1 {
                font-size: 2rem;
            }
        }

        /* Estilos para iPad */
        @media (min-width: 768px) and (max-width: 1024px) {
            .steps {
                width: 100%;
                padding: 0;
                justify-content: space-between;
            }

            .step {
                width: 42px;
                height: 42px;
                min-width: 42px;
                min-height: 42px;
                margin: 0 5px;
            }

            .steps-progress {
                margin: -20px 20px 30px 20px;
            }

            /* Ajustes para botões de pós-pagamento em tablet */
            .pos-payment-row {
                max-width: 700px;
                margin: 0 auto;
            }

            .pos-payment-btn {
                max-width: 320px;
            }
        }

        /* Dispositivos móveis gerais - SEGUNDA MEDIA QUERY */
        @media (max-width: 767px) {
            .steps {
                padding: 0;
                justify-content: space-between;
                width: 100%;
                margin: 0 0 20px 0;
            }

            .step {
                width: 34px;
                height: 34px;
                margin: 0 3px;
                min-width: 34px;
                min-height: 34px;
                font-size: 14px;
            }

            .steps-progress {
                margin: -16px 20px 30px 20px;
            }

            /* Regras específicas para mobile */
            .titulo-criacao-contrato span {
                font-size: 18px;
            }

            /* Botões das modais com 100% de largura no mobile */
            .modal-footer .btn,
            .modal .btn {
                width: 100% !important;
                margin: 5px 0 !important;
            }

            /* Botões da fase 4 com 100% de largura no mobile */
            #step4 .d-flex.justify-content-between {
                flex-direction: column !important;
                gap: 15px !important;
            }

            #step4 .d-flex.justify-content-between .btn {
                width: 100% !important;
                margin: 0 !important;
            }

            /* Fase 10 - itens centralizados e um abaixo do outro no mobile */
            #step10 .payment-buttons {
                flex-direction: column !important;
                align-items: center !important;
            }

            #step10 .payment-buttons button {
                width: 100% !important;
                max-width: 100% !important;
                margin: 10px 0 !important;
            }

            /* Fase 10 - todos os elementos empilhados verticalmente no mobile */
            #step10 .d-flex {
                flex-direction: column !important;
                align-items: center !important;
                gap: 15px !important;
            }

            #step10 .d-flex > * {
                width: 100% !important;
                text-align: center !important;
            }

            /* Campo de cupom e botão empilhados */
            #step10 .d-flex[style*="gap: 10px"] {
                flex-direction: column !important;
                gap: 15px !important;
            }

            #step10 .d-flex[style*="gap: 10px"] > * {
                width: 100% !important;
            }

            /* Ajuste para botão de cupom em mobile */
            button#btn-aplicar-cupom {
                padding: 6px 10px;
                font-size: 13px;
                line-height: 1.1;
            }

            /* Ajustes para os botões de pagamento em mobile */
            .payment-buttons {
                display: flex !important;
                flex-direction: column !important;
                width: 100% !important;
                gap: 10px !important;
            }

            .payment-buttons button {
                width: 100% !important;
                max-width: none !important;
                flex: none !important;
            }

            /* Ajuste do cabeçalho de resumo da liberação */
            #step10 .section-title {
                flex-direction: column;
                align-items: flex-start;
            }

            #step10 .section-icon {
                margin-bottom: 10px;
            }

            /* Ajustes para os botões da tela de pós-pagamento */
            #step10 .pos-payment-row {
                flex-direction: column !important;
                padding: 0 15px !important;
                gap: 10px !important;
            }

            #step10 .pos-payment-btn {
                width: 100% !important;
                max-width: 100% !important;
                margin: 5px 0 !important;
                flex: none !important;
            }
        }

        /* Elementos em linha */
        .input-inline {
            display: flex;
            gap: 20px;
        }

        /* Para o resumo do pagamento */
        .payment-summary {
            background-color: #f8f9fa;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }

        .payment-summary-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .payment-buttons {
            display: flex;
            flex-direction: row;
            gap: 20px;
            margin-top: 30px;
            width: 100%;
            justify-content: space-between;
        }

        /* Componentes de porcentagem */
        .percentage-badge {
            background-color: var(--primary);
            color: white;
            padding: 6px 10px;
            border-radius: 30px;
            margin-left: auto;
            font-weight: 600;
            box-shadow: 0 3px 6px rgba(63, 81, 181, 0.2);
        }

        .composer-item {
            display: flex;
            align-items: center;
            padding: 18px;
            border: 1px solid var(--border-color);
            border-radius: 15px;
            margin-bottom: 15px;
            transition: all 0.2s ease;
            background-color: white;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
        }

        .composer-item:hover {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transform: translateY(-2px);
        }

        .remove-btn {
            color: var(--danger-color);
            background: none;
            border: none;
            cursor: pointer;
            margin-left: 10px;
            padding: 5px 10px;
            border-radius: 5px;
            transition: all 0.2s ease;
        }

        .remove-btn:hover {
            background-color: rgba(220, 53, 69, 0.1);
        }

        /* Alertas informativos */
        .info-alert {
            background-color: rgba(13, 202, 240, 0.1);
            border-left: 4px solid var(--info-color);
            border-radius: 15px;
            padding: 20px;
            margin: 25px 0;
            display: flex;
            align-items: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
        }

        .info-alert i {
            color: var(--info-color);
            font-size: 22px;
            margin-right: 15px;
        }

        .warning-alert {
            background-color: rgba(255, 193, 7, 0.1);
            border-left: 4px solid var(--warning-color);
            border-radius: 15px;
            padding: 20px;
            margin: 25px 0;
            display: flex;
            align-items: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
        }

        .warning-alert i {
            color: var(--warning-color);
            font-size: 22px;
            margin-right: 15px;
        }

        /* Animações e efeitos */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .form-section {
            animation: fadeIn 0.5s ease-out;
        }

        .btn i {
            margin-left: 8px;
            transition: transform 0.3s ease;
        }

        .btn:hover i.fa-arrow-right {
            transform: translateX(3px);
            color: white;
            /* Adicionando efeito de sombra com a nova cor */
            text-shadow: 0 0 5px rgba(67, 82, 175, 0.5);
        }

        .btn:hover i.fa-arrow-left {
            transform: translateX(-3px);
            color: white;
            /* Adicionando efeito de sombra com a nova cor */
            text-shadow: 0 0 5px rgba(67, 82, 175, 0.5);
        }

        /* Melhorias para inputs e textareas */
        textarea.form-control {
            min-height: 120px;
            resize: vertical;
        }

        /* Classe para textareas de importação/exportação de dados JSON */
        .textarea-json-data {
            color: #ffffff45 !important;
            background: #253a69 !important;
            border: 1px solid #495057 !important;
        }

        .textarea-json-data::placeholder {
            color: #ffffff45 !important;
            opacity: 1 !important;
        }

        /* Remover foco colorido dos textareas de importação */
        .textarea-json-data:focus {
            outline: none !important;
            box-shadow: none !important;
            border-color: #495057 !important;
            color: #ffffff45 !important;
            background: #253a69 !important;
        }

        /* Estilo para o valor do pagamento */
        input[readonly] {
            background-color: #f8f9fa;
            cursor: not-allowed;
        }

        /* Estilos para validação de formulário */
        .form-control.is-invalid {
                border-color: #eb8f98;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right calc(0.375em + 0.1875rem) center;
            background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
            padding-right: calc(1.5em + 0.75rem);
            box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
        }

        .form-control.is-valid {
                border-color: #58bf6f;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.97.97 2.18-2.18-1.04-1.04-1.14 1.14-.93-.93-1.04 1.04zm0 0'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right calc(0.375em + 0.1875rem) center;
            background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
            padding-right: calc(1.5em + 0.75rem);
                box-shadow: 0 0 0 0.2rem rgb(40 167 69 / 18%);
                background-position-y: 13px;
        }

        .invalid-feedback {
            display: none !important;
            width: 100%;
            }

            /* Estilo específico para o placeholder do campo de cupom */
            #codigo_cupom::placeholder {
                color: #cdcdcd !important;
            }

            #codigo_cupom::-webkit-input-placeholder {
                color: #cdcdcd !important;
            }

            #codigo_cupom::-moz-placeholder {
                color: #cdcdcd !important;
                opacity: 1;
            }

            #codigo_cupom:-ms-input-placeholder {
                color: #cdcdcd !important;
            }

            .invalid-feedback {
            margin-top: 0.25rem;
            font-size: 0.875em;
            color: var(--danger-color);
        }

        .form-control.is-invalid + .invalid-feedback {
            display: block !important;
        }

        .valid-feedback {
            display: none !important;
            width: 100%;
            margin-top: 0.25rem;
            font-size: 0.875em;
            color: #28a745;
        }

        .form-control.is-valid + .valid-feedback {
            display: none !important;
        }

        /* Estilos para asteriscos de campos obrigatórios */
        .required {
            color: #dc3545 !important;
            font-weight: bold !important;
            margin-left: 3px !important;
        }

        .conditional-required {
            color: #dc3545 !important;
            font-weight: bold !important;
            margin-left: 3px !important;
            transition: opacity 0.3s ease;
        }

        /* Garantir que labels tenham contraste suficiente */
        .form-label {
            font-weight: 600;
            color: #495057;
            margin-bottom: 0.5rem;
            font-size: 16px;
        }

        .form-label .required,
        .form-label .conditional-required {
            color: #dc3545 !important;
        }

        /* Animação suave para transições de validação */
        .form-control {
            transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        }

        /* Estilos para o componente phone-group unificado */
        .phone-group.form-control {
            display: flex;
            align-items: stretch;
            border-radius: 8px;
            border: 1px solid #ced4da;
            padding: 0;
            margin-top: 3px;
            background: white;
            transition: all 0.2s ease;
            height: auto;
            box-shadow: none;
        }

        .phone-group.form-control:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.2);
            outline: none;
        }

        .phone-group.form-control.is-valid {
            border-color: #58bf6f;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.97.97 2.18-2.18-1.04-1.04-1.14 1.14-.93-.93-1.04 1.04zm0 0'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right calc(0.375em + 0.1875rem) center;
            background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
            padding-right: calc(1.5em + 0.75rem);
            box-shadow: 0 0 0 0.2rem rgb(40 167 69 / 18%);
            background-position-y: 13px;
        }

        .phone-group.form-control.is-invalid {
            border-color: #eb8f98;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right calc(0.375em + 0.1875rem) center;
            background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
            padding-right: calc(1.5em + 0.75rem);
            box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
        }

        /* Remover bordas e box-shadows dos elementos internos */
        .phone-group button[id^="countrySelector"],
        .phone-group input[type="text"],
        .phone-group input[type="tel"] {
            border: none !important;
            box-shadow: none !important;
            background: white !important;
        }

        /* Ajustes específicos para o botão de seleção de país */
        .phone-group button[id^="countrySelector"] {
            border-radius: 8px 0 0 8px !important;
            padding: 10px 12px !important;
            height: 100% !important;
        }

        /* Ajustes específicos para o input */
        .phone-group input[type="text"],
        .phone-group input[type="tel"] {
            flex: 1;
            border-radius: 0 8px 8px 0 !important;
            padding: 12px 18px !important;
            font-size: 16px !important;
        }

        .phone-group input[type="text"]:focus,
        .phone-group input[type="tel"]:focus {
            border: none !important;
            box-shadow: none !important;
            outline: none !important;
        }

        /* Ajuste para invalid-feedback quando phone-group é inválido */
        .phone-group.form-control.is-invalid + .invalid-feedback {
            display: block !important;
        }

        /* Garantir que o dropdown de países sobreponha todos os componentes */
        div[id^="countryDropdown-"] {
            position: absolute !important;
            z-index: 9999 !important;
            margin-top: 4px !important;
        }

        /* Garantir que containers pais não cortem o dropdown */
        .phone-group,
        .phone-group > div,
        .form-section,
        .row,
        .col-md-6,
        .col-md-4,
        .card,
        .card-body,
        .form-container {
            overflow: visible !important;
        }

        /* Garantir que o container do dropdown tenha position relative para o absolute funcionar */
        .phone-group > div[style*="position: relative"] {
            overflow: visible !important;
        }

        /* Feedback visual melhorado */
        .invalid-feedback,
        .valid-feedback {
            font-size: 0.875rem;
            margin-top: 0.25rem;
            line-height: 1.4;
        }

        .invalid-feedback {
            color: #dc3545;
        }

        .valid-feedback {
            color: #28a745;
            display: none !important;
        }

        /* Reset para o formulário de cartão de crédito */
        #form-cartao .is-invalid {
            border-color: #dc3545;
        }

        #form-cartao .invalid-feedback {
            display: none !important;
        }

        #form-cartao .form-control.is-invalid + .invalid-feedback {
            display: block !important;
        }

        /* Estilo para elementos disabled */
        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
            box-shadow: none !important;
        }

        /* Imagem de QR code */
        .qr-code-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 20px 0;
            padding: 20px;
            border: 1px dashed var(--border-color);
            border-radius: 15px;
            background-color: white;
        }

        .qr-code-image {
            max-width: 200px;
            height: auto;
            margin-bottom: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            border-radius: 10px;
        }

        /* Estilo personalizado para o SweetAlert2 */
        .swal2-html-container {
            color: #909090 !important;
        }

        /* Estilo específico para o campo de código de assinatura digital */
        #codigo_assinatura_input {
            font-size: 2rem !important;
            letter-spacing: 0.5rem !important;
            font-family: monospace !important;
        }

        #codigo_assinatura_input:focus {
            font-size: 2rem !important;
            letter-spacing: 0.5rem !important;
            font-family: monospace !important;
        }

        #codigo_assinatura_input::placeholder {
            font-size: 2rem !important;
            letter-spacing: 0.5rem !important;
            font-family: monospace !important;
        }

        /* Estilos para campos de código separados */
        .codigo-digito {
            width: 57px !important;
            height: 61px !important;
            font-family: 'Digital Numbers', monospace !important;
            font-size: 34.18px !important;
            text-align: center !important;
            border: 2px solid #4F46E5 !important;
            border-radius: 8px !important;
            background: white !important;
            color: #333 !important;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
            transition: all 0.3s ease !important;
            outline: none !important;
            padding: 0 !important;
            margin: 0 !important;
        }

        /* Regras específicas para dispositivos móveis pequenos */
        @media (max-width: 576px) {
            /* Botões das modais com 100% de largura */
            .modal-footer .btn,
            .modal .btn {
                width: 100% !important;
                margin: 8px 0 !important;
                padding: 12px 20px !important;
            }

            /* Botões da fase 4 com 100% de largura */
            #step4 .d-flex.justify-content-between {
                flex-direction: column !important;
                gap: 20px !important;
            }

            #step4 .d-flex.justify-content-between .btn {
                width: 100% !important;
                margin: 0 !important;
                padding: 15px 20px !important;
            }

            /* Fase 10 - itens centralizados e um abaixo do outro */
            #step10 .payment-buttons {
                flex-direction: column !important;
                align-items: center !important;
                gap: 15px !important;
            }

            #step10 .payment-buttons button {
                width: 100% !important;
                max-width: 100% !important;
                margin: 0 !important;
                padding: 15px 20px !important;
            }

            /* Fase 10 - todos os elementos empilhados verticalmente em dispositivos pequenos */
            #step10 .d-flex {
                flex-direction: column !important;
                align-items: center !important;
                gap: 20px !important;
            }

            #step10 .d-flex > * {
                width: 100% !important;
                text-align: center !important;
            }

            /* Campo de cupom e botão empilhados em dispositivos pequenos */
            #step10 .d-flex[style*="gap: 10px"] {
                flex-direction: column !important;
                gap: 20px !important;
            }

            #step10 .d-flex[style*="gap: 10px"] > * {
                width: 100% !important;
            }

            /* Botões de navegação da fase 10 */
            #step10 .d-flex.justify-content-between {
                flex-direction: column !important;
                gap: 15px !important;
            }

            #step10 .d-flex.justify-content-between .btn {
                width: 100% !important;
                margin: 0 !important;
                padding: 15px 20px !important;
            }

            /* REGRAS ESPECÍFICAS PARA 375px - FASE 10 */
            /* Assinatura digital empilhada */
            #step10 div[style*="display: flex;align-items: center;justify-content: space-between"] {
                flex-direction: column !important;
                align-items: center !important;
                gap: 20px !important;
            }

            #step10 div[style*="display: flex;align-items: center;justify-content: space-between"] > * {
                width: 100% !important;
                text-align: center !important;
            }

            /* Link "Porque eu deveria assinar" centralizado */
            #step10 a[data-bs-target="#modalPorqueAssinar"] {
                width: 100% !important;
                text-align: center !important;
                justify-content: center !important;
            }

            /* Campo de cupom e botão empilhados especificamente */
            #step10 div[style*="display: flex; gap: 10px; margin-bottom: 20px"] {
                flex-direction: column !important;
                gap: 15px !important;
                align-items: center !important;
            }

            #step10 div[style*="display: flex; gap: 10px; margin-bottom: 20px"] > * {
                width: 100% !important;
            }

            /* Input do cupom com largura total */
            #step10 #codigo_cupom {
                width: 100% !important;
                max-width: 100% !important;
            }

            /* Botão aplicar cupom com largura total */
            #step10 #btn-aplicar-cupom {
                width: 100% !important;
                max-width: 100% !important;
            }
        }

        .codigo-digito:focus {
            border-color: #007bff !important;
            box-shadow: 0 0 0 3px rgba(0,123,255,0.25) !important;
            background: #f8f9ff !important;
        }

        .codigo-digito:invalid {
            border-color: #dc3545 !important;
            box-shadow: 0 0 0 3px rgba(220,53,69,0.25) !important;
        }

        .codigo-digito.filled {
            background: #e8f5e8 !important;
            border-color: #28a745 !important;
            color: #155724 !important;
        }

        #codigo-digitos-container {
            margin: 20px 0 !important;
        }

        @media (max-width: 576px) {
            .codigo-digito {
                width: 45px !important;
                height: 50px !important;
                font-size: 28px !important;
            }
        }

        /* Estilo para a data de nascimento com ícone */

        /* Regra global para imagem pay-gif responsiva */
        img.pay-gif {
            width: 400px;
            max-width: 100%;
            height: auto;
        }

        /* Corrigir quebras de linha nos ícones dos botões - REGRA GLOBAL */
        .btn i,
        .btn svg {
            display: inline-block !important;
            white-space: nowrap !important;
            line-height: 1 !important;
            vertical-align: middle !important;
        }

        .btn {
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        /* Alinhar ícones das formas de pagamento à esquerda */
        .payment-buttons .btn {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            text-align: center !important;
        }

        .payment-buttons .btn i,
        .payment-buttons .btn svg {
            margin-bottom: 8px !important;
            align-self: center !important;
        }

        .payment-buttons .btn span {
            text-align: center !important;
            width: 100% !important;
        }

        /* Rodapé */
        .footer {
            background-color: #212121;
            color: #f5f5f5;
            padding: 50px 0 30px;
            margin-top: 50px;
        }

        .footer-logo {
            height: 50px;
            margin-bottom: 20px;
        }

        .footer-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 25px;
            color: #fff;
            position: relative;
        }

        .footer-title:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 40px;
            height: 3px;
            background-color: var(--secondary);
            border-radius: 2px;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 0.95rem;
        }

        .footer-links a:hover {
            color: var(--secondary);
        }

        hr {
            background-color: rgba(255, 255, 255, 0.1);
            opacity: 1;
        }

        /* Manter os estilos específicos anteriores que são cruciais para o funcionamento */
        /* ... manter estilos essenciais para scripts ... */
        /* Rodapé */
        .footer {
            background-color: #212121;
            color: #f5f5f5;
            padding: 50px 0 30px;
            margin-top: 50px;
        }

        .pay-protected {
            text-align: center;
            padding: 20px;
            line-height: 4px;
            margin-top: 60px;
            padding-bottom: 41px;
            text-align: center;
        }

        .pay-protected div {
            color: #2e8b2b;
            font-size: 20px;
        }

        .pay-protected div p {
            color: #75a175;
            margin-top: 16px;
            font-size: 12px;
            width: 100%;
            margin: 0 auto;
            line-height: 20px;
            margin-bottom: -11px;
        }

        .pay-protected .info1 {
            width: 100%;
        }

        img.pay-gif {
            border-radius: 125px;
            margin-top: 20px;
            border: 1px #aed7ac solid;
            width: 400px;
        }

        .brand-pagbac {
            border-radius: 15px;
            width: 114px;
            background: white;
            padding-right: 11px;
        }

        /* Correção para o loader */
        #pageOverlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 9999;
        }

        /* Garantir que elementos da página fiquem atrás do modal */
        #step10, #btn-gerar-contrato-demo, .form-section {
            position: relative;
            z-index: 1;
        }

        /* Modal de pagamento sincronizado com o global */
        #pagamentoModal {
            z-index: 1040 !important;
        }



        /* SweetAlert deve ficar acima dos modais de pagamento */
        .swal2-container {
            z-index: 10000 !important;
        }

        .swal2-backdrop-show {
            z-index: 99999 !important;
        }

        /* iPhone X/XS/11 Pro - PRIMEIRA MEDIA QUERY */
        @media only screen and (device-width: 375px), only screen and (device-width: 390px), only screen and (device-width: 414px) {
            .steps {
                padding: 12px;
                margin: 0 0 20px 0;
                width: 100%;
                justify-content: space-around;
                overflow: auto;
                border: 1px solid #c4c7d8;
                border-radius: 44px;
            }

            .step {
                width: 38px;
                height: 38px;
                min-width: 38px;
                min-height: 38px;
                margin: 0 4px;
                font-size: 14px;
            }

            .steps-progress {
                margin: -18px 10px 30px 10px;
            }

            /* Regras específicas para mobile - MAIS ESPECÍFICAS */
            img.pay-gif {
                width: 80% !important;
                max-width: 80% !important;
            }

            .titulo-criacao-contrato span {
                font-size: 18px;
            }

            /* Botões das modais com 100% de largura no iPhone */
            .modal-footer .btn,
            .modal .btn {
                width: 100% !important;
                margin: 5px 0 !important;
            }

            /* Botões da fase 4 com 100% de largura no iPhone */
            #step4 .d-flex.justify-content-between {
                flex-direction: column !important;
                gap: 15px !important;
            }

            #step4 .d-flex.justify-content-between .btn {
                width: 100% !important;
                margin: 0 !important;
            }

            /* Fase 10 - itens centralizados e um abaixo do outro no iPhone */
            #step10 .payment-buttons {
                flex-direction: column !important;
                align-items: center !important;
            }

            #step10 .payment-buttons button {
                width: 100% !important;
                max-width: 100% !important;
                margin: 10px 0 !important;
            }

            /* Corrigir quebras de linha nos ícones dos botões */
            #step10 .btn i,
            #step10 .btn svg {
                display: inline-block !important;
                white-space: nowrap !important;
                line-height: 1 !important;
                vertical-align: middle !important;
            }

            #step10 .btn {
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }

            /* Alinhar ícones das formas de pagamento à esquerda no mobile */
            #step10 .payment-buttons .btn {
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                text-align: center !important;
            }

            #step10 .payment-buttons .btn i,
            #step10 .payment-buttons .btn svg {
                margin-bottom: 0px !important;
                align-self: center !important;
                font-size: 20px !important;
            }

            #step10 .payment-buttons .btn span {
                text-align: center !important;
                width: 100% !important;
            }

            /* Fase 11 - Botões empilhados verticalmente no mobile */
            #step11 .pos-payment-buttons {
                flex-direction: column !important;
                align-items: center !important;
                gap: 20px !important;
            }

            #step11 .pos-payment-row {
                flex-direction: column !important;
                width: 100% !important;
                gap: 15px !important;
            }

            #step11 .pos-payment-btn {
                width: 100% !important;
                max-width: 100% !important;
                margin: 0 !important;
                flex: none !important;
            }

            #step11 .d-flex.justify-content-center {
                flex-direction: column !important;
                align-items: center !important;
            }

            /* Fase 10 - todos os elementos empilhados verticalmente no iPhone */
            #step10 .d-flex {
                flex-direction: column !important;
                align-items: center !important;
                gap: 15px !important;
            }

            #step10 .d-flex > * {
                width: 100% !important;
                text-align: center !important;
            }

            /* Campo de cupom e botão empilhados no iPhone */
            #step10 .d-flex[style*="gap: 10px"] {
                flex-direction: column !important;
                gap: 15px !important;
            }

            #step10 .d-flex[style*="gap: 10px"] > * {
                width: 100% !important;
            }

            /* REGRAS ESPECÍFICAS PARA 375px - FASE 10 - CENTRALIZADAS */
            /* Assinatura digital empilhada */
            #step10 div[style*="display: flex;align-items: center;justify-content: space-between"] {
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 20px !important;
                text-align: center !important;
            }

            #step10 div[style*="display: flex;align-items: center;justify-content: space-between"] > * {
                width: 100% !important;
                text-align: center !important;
                display: flex !important;
                justify-content: center !important;
                align-items: center !important;
            }

            /* Link "Porque eu deveria assinar" centralizado */
            #step10 a[data-bs-target="#modalPorqueAssinar"] {
                width: 100% !important;
                text-align: center !important;
                justify-content: center !important;
                align-items: center !important;
                display: flex !important;
            }

            /* Campo de cupom e botão empilhados especificamente */
            #step10 div[style*="display: flex; gap: 10px; margin-bottom: 20px"] {
                flex-direction: column !important;
                gap: 15px !important;
                align-items: center !important;
                justify-content: center !important;
                text-align: center !important;
            }

            #step10 div[style*="display: flex; gap: 10px; margin-bottom: 20px"] > * {
                width: 100% !important;
                text-align: center !important;
                display: flex !important;
                justify-content: center !important;
                align-items: center !important;
            }

            /* Input do cupom com largura total e centralizado */
            #step10 #codigo_cupom {
                width: 100% !important;
                max-width: 100% !important;
                text-align: center !important;
                margin: 0 auto !important;
            }

            /* Botão aplicar cupom com largura total e centralizado */
            #step10 #btn-aplicar-cupom {
                width: 100% !important;
                max-width: 100% !important;
                text-align: center !important;
                margin: 0 auto !important;
                justify-content: center !important;
                align-items: center !important;
                display: flex !important;
            }

            /* Centralizar todos os elementos da fase 10 */
            #step10 > div {
                text-align: center !important;
            }

            #step10 .form-control {
                text-align: center !important;
            }
        }

        /* Estilos para o título móvel - comentado para evitar problemas */
        /*
      .mobile-title {
          font-weight: 700;
          font-size: 16px;
          color: var(--primary);
          font-family: 'Montserrat', sans-serif;
          margin-left: 10px;
          margin-right: auto;
      }

      @media (max-width: 768px) {
          .navbar-brand {
              max-width: 30%;
          }

          .mobile-title {
              max-width: 40%;
              font-size: 15px;
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
          }

          .navbar-toggler {
              order: 3;
          }
      }
      */
        /* Estilo para ocultar completamente o mobile-title */
        .mobile-title {
            display: none !important;
        }

        /* Custom CSS */
        body {
            font-family: 'Poppins', sans-serif;
            color: #333;
            background-color: #f8f9fa;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
        }

        /* Navbar */
        .navbar {
            background-color: #fff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 15px 0;
        }

        .navbar-brand img {
            height: 40px;
        }

        /* Logo alinhada à esquerda padrão Bootstrap */
        @media (max-width: 991.98px) {
            .navbar .container {
                justify-content: space-between;
                position: relative;
            }

            .navbar-brand {
                margin: 0;
            }

            .navbar-toggler {
                display: none !important;
            }
        }

        .navbar-nav .nav-link {
            color: #333;
            font-weight: 500;
            padding: 10px 15px;
        }

        .navbar-nav .nav-link:hover {
            color: #3f51b5;
        }

        .navbar-nav .btn-primary {
            background: #3f51b5;
            border-color: #3f51b5;
            padding: 10px 20px;
            font-weight: 600;
            border-radius: 30px;
        }

        .navbar-nav .btn-primary:hover {
            background-color: #4352AF !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(67, 82, 175, 0.4);
        }

        /* Estilos específicos para a página de criação de contrato */
        @media (min-width: 992px) {
            .navbar .container {
                display: flex;
                justify-content: space-between;
                position: relative;
            }

            .navbar-brand {
                position: static;
                left: auto;
                transform: none;
                margin: 0;
            }

            .navbar-nav {
                margin-left: auto;
            }
        }

        /* Estilos globais para os botões da tela de pós-pagamento */
        .pos-payment-buttons {
            width: 100%;
        }

        .pos-payment-row {
            width: 100%;
        }

        .pos-payment-btn {
            margin: 5px 0;
        }

        /* Estilos de hover para os botões da fase 1 */
        #btn-importar-dados:hover {
            background-color: #4352AF !important;
            box-shadow: 0 6px 12px rgba(67, 82, 175, 0.4) !important;
            transform: translateY(-2px) !important;
        }

        #btn-importar-meus-dados:hover {
            background-color: #4352AF !important;
            box-shadow: 0 6px 12px rgba(67, 82, 175, 0.4) !important;
            transform: translateY(-2px) !important;
        }

        #btn-preencher-teste:hover {
            background-color: #f8f9ff !important;
            color: #4352AF !important;
            box-shadow: 0 6px 12px rgba(67, 82, 175, 0.25) !important;
            transform: translateY(-2px) !important;
        }

        #btn-continue-step1:hover {
            background-color: #4352AF !important;
            box-shadow: 0 6px 16px rgba(67, 82, 175, 0.4) !important;
            transform: translateY(-2px) !important;
        }

        /* Estilos de hover para os botões do modal de importação */
        #btnColarTransferencia:hover {
            background-color: #4352AF !important;
            box-shadow: 0 6px 12px rgba(67, 82, 175, 0.4) !important;
            transform: translateY(-2px) !important;
        }

        #btnImportarJson:hover {
            background-color: #4352AF !important;
            box-shadow: 0 6px 12px rgba(67, 82, 175, 0.4) !important;
            transform: translateY(-2px) !important;
        }

        .modal-footer .btn[data-bs-dismiss="modal"]:hover {
            background-color: #5a6268 !important;
            box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3) !important;
            transform: translateY(-2px) !important;
        }

        /* Estilos responsivos para os botões */
        @media (max-width: 768px) {
            #btn-importar-dados, #btn-importar-meus-dados {
                width: 100% !important;
                margin-bottom: 10px !important;
            }
        }

        /* Botões com efeito de pulso para chamar atenção */
        @keyframes pulse-animation {
            0% {
                box-shadow: 0 0 0 0 rgba(84, 109, 234, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(84, 109, 234, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(84, 109, 234, 0);
            }
        }

        #btn-continue-step1 {
            animation: pulse-animation 2s infinite;
        }

        /* Estilos de hover para os botões de pós-pagamento */
        #btn-compartilhar-pos-pagamento:hover {
            background-color: #4352AF !important;
            box-shadow: 0 6px 15px rgba(67, 82, 175, 0.4) !important;
            transform: translateY(-2px) !important;
        }

        #btn-salvar-dados-pos-pagamento:hover {
            background-color: #4352AF !important;
            box-shadow: 0 6px 15px rgba(67, 82, 175, 0.4) !important;
            transform: translateY(-2px) !important;
        }

        #btn-novo-contrato-central:hover {
            background-color: #f8f9ff !important;
            box-shadow: 0 6px 15px rgba(67, 82, 175, 0.25) !important;
            transform: translateY(-2px) !important;
        }

        #btn-gerar-contrato-pos-pagamento:hover {
            background-color: #4352AF !important;
            box-shadow: 0 6px 15px rgba(67, 82, 175, 0.4) !important;
            transform: translateY(-2px) !important;
        }

        /* Animação de pulsação para o ícone do contrato */
        .contrato-icon {
            animation: contract-pulse 2s infinite ease-in-out;
        }

        @keyframes contract-pulse {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
            100% {
                transform: scale(1);
            }
        }

        /* Estilo para a visualização do contrato */
        #contratoPreview {
            width: 100%;
            height: 100%;
            padding: 0 !important;
            overflow: hidden;
        }

        #contratoPreview embed {
            width: 100%;
            height: 100vh;
            border: none;
            display: block;
        }

        /* Correções para PDF demo no mobile */
        @media (max-width: 768px) {
            #contratoPreview {
                width: 100% !important;
                height: 80vh !important;
                min-height: 400px !important;
            }

            #contratoPreview embed {
                width: 100% !important;
                height: 100% !important;
                min-height: 400px !important;
            }

            #contratoModal .modal-body {
                padding: 10px !important;
                height: 90vh !important;
            }

            #contratoModal .modal-content {
                height: 95vh !important;
            }

            #contratoModal .modal-dialog {
                max-width: 100% !important;
                height: 95vh !important;
                margin: 10px !important;
            }

            /* Melhorias específicas para mobile */
            #contratoModal {
                z-index: 99999 !important;
            }

            #contratoModal .modal-dialog {
                margin: 0 !important;
                max-width: 100vw !important;
                width: 100vw !important;
                height: 100vh !important;
            }

            #contratoModal .modal-content {
                border-radius: 0 !important;
                height: 100vh !important;
                margin: 0 !important;
            }

            #contratoModal .modal-body {
                padding: 5px !important;
                height: calc(100vh - 120px) !important;
                overflow: hidden !important;
            }

            #contratoPreview {
                height: 100% !important;
                min-height: 100% !important;
                padding: 0 !important;
            }

            #contratoPreview embed {
                height: 100% !important;
                min-height: 100% !important;
                border: none !important;
            }

            /* Fallback para PDF no mobile */
            .pdf-fallback {
                display: block !important;
                text-align: center !important;
                padding: 20px !important;
            }

            .pdf-fallback .btn {
                width: 100% !important;
                margin: 10px 0 !important;
                padding: 15px !important;
                font-size: 16px !important;
            }

            /* Botão de e-mail no mobile */
            #enviarEmailContrato {
                background-color: #28a745 !important;
                border-color: #28a745 !important;
                color: white !important;
                font-weight: 600 !important;
                padding: 12px 20px !important;
                border-radius: 8px !important;
                transition: all 0.3s ease !important;
            }

            #enviarEmailContrato:hover {
                background-color: #218838 !important;
                border-color: #1e7e34 !important;
                transform: translateY(-2px) !important;
                box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
            }

            #enviarEmailContrato:active {
                transform: translateY(0) !important;
            }

            /* Ocultar botões do rodapé no mobile */
            #contratoModal .modal-footer {
                display: none !important;
            }

            /* Ajustar altura do modal-body para ocupar todo o espaço */
            #contratoModal .modal-body {
                height: calc(100vh - 60px) !important;
                padding: 20px !important;
                display: flex !important;
                flex-direction: column !important;
                justify-content: center !important;
                align-items: center !important;
            }

            /* Centralizar conteúdo do PDF fallback no mobile */
            .pdf-fallback {
                display: flex !important;
                flex-direction: column !important;
                justify-content: center !important;
                align-items: center !important;
                height: 100% !important;
                min-height: 100% !important;
            }
        }

            /* Correções específicas para mobile */
            #contratoModal {
                z-index: 9999 !important;
            }

            #contratoModal .modal-dialog {
                margin: 0 !important;
                max-width: 100vw !important;
                width: 100vw !important;
                height: 100vh !important;
            }

            #contratoModal .modal-content {
                border-radius: 0 !important;
                height: 100vh !important;
                margin: 0 !important;
            }

            #contratoModal .modal-body {
                padding: 5px !important;
                height: calc(100vh - 120px) !important;
                overflow: hidden !important;
            }

            #contratoPreview {
                height: 100% !important;
                min-height: 100% !important;
                padding: 0 !important;
            }

            #contratoPreview embed {
                height: 100% !important;
                min-height: 100% !important;
                border: none !important;
            }


        /* Correções específicas para iPhone */
        @media only screen and (device-width: 375px), only screen and (device-width: 390px), only screen and (device-width: 414px) {
            #contratoModal .modal-dialog {
                margin: 0 !important;
                max-width: 100vw !important;
                width: 100vw !important;
                height: 100vh !important;
            }

            #contratoModal .modal-content {
                border-radius: 0 !important;
                height: 100vh !important;
                margin: 0 !important;
            }

            #contratoModal .modal-body {
                padding: 5px !important;
                height: calc(100vh - 120px) !important;
                overflow: hidden !important;
            }

            #contratoPreview {
                height: 100% !important;
                min-height: 100% !important;
                padding: 0 !important;
            }

            #contratoPreview embed {
                height: 100% !important;
                min-height: 100% !important;
                border: none !important;
            }

            /* Fase 11 - Botões empilhados verticalmente no iPhone */
            #step11 .pos-payment-buttons {
                flex-direction: column !important;
                align-items: center !important;
                gap: 20px !important;
            }

            #step11 .pos-payment-row {
                flex-direction: column !important;
                width: 100% !important;
                gap: 15px !important;
            }

            #step11 .pos-payment-btn {
                width: 100% !important;
                max-width: 100% !important;
                margin: 0 !important;
                flex: none !important;
            }

            #step11 .d-flex.justify-content-center {
                flex-direction: column !important;
                align-items: center !important;
            }

            /* Ocultar botões do rodapé no iPhone */
            #contratoModal .modal-footer {
                display: none !important;
            }

            /* Ajustar altura do modal-body para ocupar todo o espaço no iPhone */
            #contratoModal .modal-body {
                height: calc(100vh - 60px) !important;
                padding: 20px !important;
                display: flex !important;
                flex-direction: column !important;
                justify-content: center !important;
                align-items: center !important;
            }

            /* Centralizar conteúdo do PDF fallback no iPhone */
            .pdf-fallback {
                display: flex !important;
                flex-direction: column !important;
                justify-content: center !important;
                align-items: center !important;
                height: 100% !important;
                min-height: 100% !important;
            }

            /* Botão de e-mail no iPhone */
            #enviarEmailContrato {
                background-color: #28a745 !important;
                border-color: #28a745 !important;
                color: white !important;
                font-weight: 600 !important;
                padding: 12px 20px !important;
                border-radius: 8px !important;
                transition: all 0.3s ease !important;
            }

            #enviarEmailContrato:hover {
                background-color: #218838 !important;
                border-color: #1e7e34 !important;
                transform: translateY(-2px) !important;
                box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
            }

            #enviarEmailContrato:active {
                transform: translateY(0) !important;
            }
        }

        /* Ajuste para o modal do contrato */
        #contratoModal .modal-body {
            padding: 0;
            height: 85vh;
            overflow: hidden;
        }

        #contratoModal .modal-content {
            height: 90vh;
        }

        #contratoModal .modal-dialog {
            max-width: 95%;
            height: 95vh;
            margin: 10px auto;
        }

        @media (max-width: 768px) {
            #contratoModal .modal-dialog {
                max-width: 100%;
                height: 100vh;
                margin: 0;
            }

            #contratoModal .modal-content {
                height: 100vh;
                border-radius: 0;
            }

            #contratoPreview embed {
                height: 75vh;
            }
        }

        .container-icon-cc {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 67px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            background: white;
        }

        #btn-pagar-pix, #btn-pagar-cartao {
            /* Estilos normais - sem !important forçado */
        }

        input#codigo_cupom {
            font-size: 28px !important;
            font-weight: bolder;
        }

            /* Estilos para o modal de importação com seleção múltipla */
            .cidade-opcoes, .estado-opcoes {
                max-height: 200px;
                overflow-y: auto;
                border: 1px solid #e9ecef;
                border-radius: 6px;
                padding: 10px 27px;
                background-color: #f8f9fa;
            }

            .cidade-opcoes .form-check,
            .estado-opcoes .form-check {
                margin-bottom: 8px;
                padding: 4px 1px;
                border-radius: 4px;
                transition: background-color 0.2s ease;
            }

            .cidade-opcoes .form-check:hover,
            .estado-opcoes .form-check:hover {
                background-color: #e3f2fd;
            }

            .cidade-opcoes .form-check-input:checked + .form-check-label,
            .estado-opcoes .form-check-input:checked + .form-check-label {
                font-weight: 600;
                color: #0d6efd;
            }

            .cidade-opcoes .form-check-label,
            .estado-opcoes .form-check-label {
                cursor: pointer;
                font-size: 14px;
                margin-left: 8px;
            }

            /* Melhorar aparência do preview */
            #dadosIdentificados .alert {
                font-size: 13px;
                margin-bottom: 0;
                padding: 10px 15px;
            }

            #dadosIdentificados .border.rounded.bg-light {
                border-color: #dee2e6 !important;
                background-color: #f8f9fa !important;
            }

            /* Indicadores visuais para campos identificados */
            #dadosIdentificados .fas.fa-check {
                color: #28a745;
                font-size: 12px;
            }

            #dadosIdentificados .fas.fa-city {
                color: #17a2b8;
            }

            #dadosIdentificados .fas.fa-map-marker-alt {
                color: #6f42c1;
            }

            #dadosIdentificados .fas.fa-info-circle {
                color: #0d6efd;
            }

            /* Responsividade para mobile */
            @media (max-width: 768px) {
                .cidade-opcoes, .estado-opcoes {
                    max-height: 150px;
                    font-size: 13px;
                }

                .cidade-opcoes .form-check-label,
                .estado-opcoes .form-check-label {
                    font-size: 13px;
                }
            }

        /* ─── SPLASH SCREEN ─────────────────────────────────────────── */
        #lf-splash-screen {
            position: fixed;
            inset: 0;
            background: linear-gradient(135deg, rgb(41 80 136 / 95%) 0%, rgb(114 166 84 / 97%) 100%);
            z-index: 100000;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: opacity 0.6s ease;
        }
        #lf-splash-logo {
            width: 200px;
            margin-bottom: 36px;
            filter: brightness(0) invert(1);
            animation: lf-pulse 1.8s ease-in-out infinite alternate;
        }
        @keyframes lf-pulse {
            from { transform: scale(1); opacity: 0.85; }
            to   { transform: scale(1.04); opacity: 1; }
        }
        #lf-splash-text {
            color: rgba(255,255,255,0.9);
            font-family: 'Outfit', sans-serif;
            font-size: 1rem;
            font-weight: 500;
            margin-bottom: 28px;
            text-shadow: 0 2px 6px rgba(0,0,0,0.3);
        }
        #lf-splash-progress-container {
            width: 260px;
            height: 6px;
            background: rgba(255,255,255,0.25);
            border-radius: 4px;
            overflow: hidden;
        }
        #lf-splash-progress-bar {
            height: 100%;
            width: 0%;
            background: #fff;
            border-radius: 4px;
            transition: width 0.1s linear;
        }

        /* ─── AUTH OVERLAY ─────────────────────────────────────────── */
        #lfAuthOverlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.6);
            backdrop-filter: blur(5px);
            z-index: 999999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        #lfAuthOverlay:not(.active) { display: none; }
        #lfAuthPanel {
            display: flex;
            width: min(750px, 96vw);
            min-height: 600px;
            max-height: 92vh;
            overflow: hidden;
            border-radius: 22px;
            box-shadow: 0 30px 80px rgba(0,0,0,.55);
            animation: lfAuthIn .35s cubic-bezier(.22,1,.36,1);
        }
        @keyframes lfAuthIn {
            from { transform: scale(.93); opacity: 0; }
            to   { transform: scale(1);  opacity: 1; }
        }
        #lfAuthLeft {
            flex: 0 0 50%;
            background: linear-gradient(150deg, #295088 0%, #1a3459 55%, #0a1a2e 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            padding: 40px 20px 0;
            position: relative;
            overflow: hidden;
        }
        .lf-left-bg, .lf-right-bg {
            position: absolute;
            inset: 0;
            background-image: url('/images/login/background-liberafacil.png');
            background-size: 300px;
            background-repeat: repeat;
            pointer-events: none;
            z-index: 1;
        }
        .lf-left-bg { opacity: 0.12; mix-blend-mode: soft-light; }
        .lf-right-bg { opacity: 0.10; mix-blend-mode: multiply; z-index: 0; }
        #lfAuthLeft .lf-brand-box {
            position: relative;
            z-index: 2;
            text-align: center;
            width: 100%;
        }
        #lfAuthLeft .lf-brand-logo { 
            width: 180px; 
            max-width: 85%; 
            filter: brightness(0) invert(1); 
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }
        #lfAuthLeft .lf-brand-sub {
            color: rgba(255,255,255,0.8);
            font-family: 'Outfit', sans-serif;
            font-size: 0.85rem;
            margin-top: 10px;
            text-align: center;
            line-height: 1.5;
            position: relative;
            z-index: 2;
        }
        .lf-chars {
            position: relative;
            z-index: 2;
            width: 125%;
            margin-bottom: -5px; /* Manter colado na base */
            display: block;
            border-top-left-radius: 50%;
            border-top-right-radius: 50%;
        }
        /* RIGHT PANEL */
        #lfAuthRight {
            flex: 1;
            background-color: #f4f7ee;
            display: flex;
            flex-direction: column;
            padding: 28px;
            position: relative;
            overflow-y: auto;
            max-height: 92vh;
        }
        /* Back btn */
        .lf-back-btn {
            display: none;
            position: absolute;
            top: 20px; left: 20px;
            align-items: center; justify-content: center;
            width: 36px; height: 36px;
            border: 1.5px solid #295088;
            border-radius: 50%;
            background: rgba(255,255,255,.7);
            color: #295088;
            font-size: 16px; cursor: pointer;
            transition: background .2s;
            z-index: 100;
        }
        .lf-back-btn:hover { background: rgba(41,80,136,.15); }
        .lf-back-btn.visible { display: flex !important; }
        /* Close btn */
        .lf-close-btn {
            position: absolute;
            top: 25px;
            right: 25px;
            width: 40px; height: 40px;
            border: none;
            border-radius: 50%;
            background: rgba(255,255,255,0.9);
            color: #295088;
            font-size: 24px;
            font-weight: 900;
            display: none;
            align-items: center; justify-content: center;
            cursor: pointer; z-index: 2000;
            transition: all 0.3s;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        .lf-close-btn.visible { display: flex !important; }
        .lf-close-btn:hover {
            background: #fff;
            color: #1a3459;
            transform: scale(1.1) rotate(90deg);
            box-shadow: 0 6px 20px rgba(41,80,136,0.25);
        }
        /* Avatar */
        .lf-avatar-area { display: flex; flex-direction: column; align-items: center; margin-bottom: 10px; }
        .lf-avatar-icon { width: 112px; height: 122px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: -3px; }
        .lf-avatar-icon img { 
            width: 90px; 
            filter: brightness(0) saturate(100%) invert(27%) sepia(19%) saturate(4157%) hue-rotate(186deg) brightness(92%) contrast(92%);
        }
        .lf-avatar-mobile { display: none; }
        @media (max-width: 768px) {
            .lf-avatar-desktop { display: none !important; }
            .lf-avatar-mobile { display: block !important; width: 180px !important; margin-bottom: 20px; }
            .lf-avatar-icon { width: auto !important; height: auto !important; }
        }
        .lf-avatar-icon i { font-size: 64px; color: #295088; opacity: .4; }
        /* Reg pill */
        .lf-reg-pill {
            display: inline-flex; align-items: center; gap: 7px;
            background: rgba(41,80,136,.15); border: none; border-radius: 50px;
            color: #295088; font-size: 13px; font-weight: 700; cursor: pointer;
            padding: 7px 14px; font-family: 'Outfit', sans-serif;
            transition: background .2s; margin-bottom: 16px;
        }
        .lf-reg-pill:hover { background: rgba(41,80,136,.28); }
        /* Inputs */
        .lf-field { position: relative; margin-top: 10px; }
        .lf-field i.lf-icon, .lf-field .lf-icon-svg {
            position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
            font-size: 15px; color: #295088; opacity: .5;
        }
        .lf-icon-svg {
            width: 18px; height: 18px; object-fit: contain;
            filter: invert(27%) sepia(19%) saturate(4157%) hue-rotate(186deg) brightness(92%) contrast(92%);
            transition: opacity .2s;
        }
        .lf-avatar-icon .lf-icon-svg { width: 50px; height: 50px; opacity: 0.3; }
        .lf-submit-btn img { filter: brightness(0) invert(1); width: 18px; margin-right: 8px; }
        .lf-recover-btn img { width: 15px; margin-right: 6px; filter: invert(27%) sepia(19%) saturate(4157%) hue-rotate(186deg) brightness(92%) contrast(92%); }
        .lf-reg-pill img { width: 14px; margin-right: 6px; filter: invert(27%) sepia(19%) saturate(4157%) hue-rotate(186deg) brightness(92%) contrast(92%); }
        .lf-field input {
            width: 100%; padding: 11px 14px 11px 40px;
            border: 2px solid #a8c4f5; border-radius: 50px;
            background: #fff; color: #1f2937; font-size: 13.5px;
            font-family: 'Outfit', sans-serif; outline: none;
            transition: border-color .2s, box-shadow .2s; box-sizing: border-box;
        }
        .lf-field input::placeholder { color: #bbb; }
        .lf-field input:focus { border-color: #295088; box-shadow: 0 0 0 3px rgba(41,80,136,.15); }
        /* Recover row */
        .lf-recover-row { display: flex; justify-content: flex-end; margin: 8px 0 14px; }
        .lf-recover-btn { background: none; border: none; color: #295088; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 0; font-family: 'Outfit', sans-serif; }
        .lf-recover-btn:hover { text-decoration: underline; }
        /* Submit btn */
        .lf-submit-btn {
            width: 100%; padding: 13px;
            background: linear-gradient(90deg, #295088 18%, #72a654 100%);
            border: none; border-radius: 50px; color: #fff;
            font-size: 15px; font-weight: 700; font-family: 'Outfit', sans-serif;
            cursor: pointer; transition: opacity .2s, transform .15s;
            box-shadow: 0 4px 18px rgba(41,80,136,.3);
            margin-top: 11px; display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .lf-submit-btn:not(:disabled):hover { opacity: .92; transform: translateY(-1px); }
        .lf-submit-btn:not(:disabled):active { transform: scale(0.98); }
        .lf-submit-btn:disabled { opacity: .4 !important; cursor: not-allowed !important; }
        /* Sections */
        .lf-section { display: none; }
        .lf-section.active { display: flex; flex-direction: column; justify-content: center; flex: 1; }
        /* Spinner */
        .lf-spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: lf-spin .8s linear infinite; }
        @keyframes lf-spin { to { transform: rotate(360deg); } }
        /* Toaster */
        #lfToaster {
            position: absolute; top: 10px; left: 50%; transform: translateX(-50%) translateY(-8px);
            z-index: 10; min-width: 220px; max-width: calc(100% - 40px);
            padding: 10px 18px; border-radius: 10px; font-size: 13.5px;
            font-family: 'Outfit', sans-serif; font-weight: 600; text-align: center;
            pointer-events: none; opacity: 0; transition: opacity .25s ease, transform .25s cubic-bezier(.22,1,.36,1);
            box-shadow: 0 6px 20px rgba(0,0,0,.15);
        }
        #lfToaster.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
        #lfToaster.error   { background: #fef2f2; border: 1.5px solid #fca5a5; color: #b91c1c; }
        #lfToaster.success { background: #f0fdf4; border: 1.5px solid #86efac; color: #166534; }
        /* Checkboxes */
        .lf-check-label { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; font-weight: 600; color: #295088; cursor: pointer; margin-bottom: 5px; line-height: 1.4; }
        .lf-check-label.neutral { color: #6b7280; font-weight: 500; }
        .lf-check-label input[type="checkbox"] { width: 15px; height: 15px; accent-color: #295088; cursor: pointer; flex-shrink: 0; margin-top: 2px; }
        /* PW Strength */
        .lf-pw-strength-box { margin: 6px 0 10px; padding: 10px 14px; background: #f0f7ff; border: 1px solid #c3d9f7; border-radius: 10px; font-size: 12px; font-family: 'Outfit'; }
        .lf-pw-strength-bar-wrap { display: flex; gap: 4px; margin-bottom: 8px; }
        .lf-pw-strength-seg { flex: 1; height: 5px; border-radius: 3px; background: #e5e7eb; transition: background .3s; }
        .lf-pw-strength-label { font-size: 11.5px; font-weight: 700; margin-bottom: 8px; }
        .lf-pw-criteria { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
        .lf-pw-crit { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #9ca3af; }
        .lf-pw-crit.ok { color: #16a34a; }
        @media (max-width: 580px) {
            #lfAuthLeft { display: none; }
            #lfAuthPanel { max-width: 420px; }
        }

        /* ─── USER NAVBAR (top bar dropdown) ──────────────────────── */
        .lf-user-menu {
            position: relative;
            display: inline-block;
            margin-left: auto;
        }
        /* User Menu */
        .lf-user-menu { position: relative; display: inline-block; font-family: 'Outfit', sans-serif; }
        .lf-user-pill {
            display: flex; align-items: center; gap: 8px; padding: 5px 12px;
            background: rgba(41,80,136,.08); border: 1px solid rgba(41,80,136,.2);
            border-radius: 50px; cursor: pointer; transition: all .2s;
        }
        .lf-user-pill:hover { background: rgba(41,80,136,.12); border-color: rgba(41,80,136,.3); }
        .lf-user-pic { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #eee; }
        .lf-user-name { font-size: 13px; font-weight: 700; color: #1e3a5f; }
        
        .lf-dropdown {
            position: absolute; top: 100%; right: 0; margin-top: 8px;
            background: #fff; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,.12);
            min-width: 190px; border: 1px solid #f1f5f9; overflow: visible;
            opacity: 0; visibility: hidden; transform: translateY(10px);
            transition: all .2s cubic-bezier(.22,1,.36,1); z-index: 25000;
        }
        .lf-dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; background: transparent; }
        .lf-user-menu:hover .lf-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

        .lf-dropdown-item {
            display: flex; align-items: center; gap: 10px; padding: 11px 16px;
            color: #4b5563; font-size: 13.5px; text-decoration: none;
            transition: background .15s; background: none; border: none; width: 100%;
            text-align: left; cursor: pointer; font-family: 'Outfit', sans-serif; font-weight: 500;
        }
        .lf-dropdown-item:hover { background: #f8fafc; color: #295088; }
        .lf-dropdown-item i { width: 16px; opacity: .7; text-align: center; }
        .lf-dropdown-divider { height: 1px; background: #f1f5f9; margin: 0; }
        
        .lf-dropdown-header { padding: 12px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #f1f5f9; }
        .lf-credits-badge {
            background: #f0fdf4; border: 1px solid #dcfce7; border-radius: 50px;
            padding: 4px 12px; display: flex; align-items: center; gap: 6px;
        }
        .lf-credits-badge i { color: #166534; font-size: 12px; }
        .lf-credits-badge span { color: #166534; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }

        .lf-login-btn {
            display: flex; align-items: center; gap: 7px;
            padding: 7px 18px;
            background: linear-gradient(90deg, #295088, #72a654);
            border: none; border-radius: 50px; color: #fff;
            font-size: 13px; font-weight: 700; font-family: 'Outfit', sans-serif;
            box-shadow: 0 3px 12px rgba(41,80,136,.3);
            white-space: nowrap; cursor: pointer; margin-left: auto;
            transition: all .2s;
        }
        .lf-login-btn:hover { opacity: .9; transform: translateY(-1px); }
        .lf-login-btn:active { transform: scale(0.96); }

        /* Estilos para Edição de Percentual de Compositores (padronizado para Principal e Adicional) */
        .percentage-edit-group,
        .lf-percentage-group {
            box-shadow: 0 4px 12px rgba(67, 82, 175, 0.15);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #4352AF;
            background: #fff;
            width: 185px !important;
            min-width: 185px !important;
            max-width: 185px !important;
            flex: 0 0 185px !important;
            flex-wrap: nowrap !important;
            align-items: stretch !important;
        }

        .percentage-edit-group .btn {
            background-color: #4352AF !important;
            border-color: #4352AF !important;
            color: white !important;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 34px !important;
            min-width: 34px !important;
            flex: 0 0 34px !important;
            padding: 0 !important;
        }

        .percentage-edit-group .btn:hover {
            background-color: #364395 !important;
            transform: scale(1.05);
        }

        .percentage-edit-group .btn:active {
            transform: scale(0.95);
        }

        .percentage-edit-group .edit-percentual,
        .edit-percentual {
            border: none !important;
            font-size: 15px !important;
            font-weight: 600 !important;
            padding: 6px 10px !important;
            min-width: 0 !important;
            width: auto !important;
            flex: 1 1 auto !important;
            background-color: #f8f9ff !important;
            color: #1e293b !important;
        }

        .edit-percentual:focus {
            box-shadow: none !important;
            background-color: #fff !important;
        }

        @media (max-width: 576px) {
            .percentage-edit-group,
            .lf-percentage-group {
                width: 156px !important;
                min-width: 156px !important;
                max-width: 156px !important;
                flex: 0 0 156px !important;
            }

            .percentage-edit-group .btn {
                width: 30px !important;
                min-width: 30px !important;
                flex: 0 0 30px !important;
            }
        }

        /* Remover setas padrão do input number */
        .edit-percentual::-webkit-inner-spin-button, 
        .edit-percentual::-webkit-outer-spin-button { 
            -webkit-appearance: none; 
            appearance: none;
            margin: 0; 
        }
        .edit-percentual {
            -moz-appearance: textfield;
            appearance: textfield;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .percentage-badge {
            cursor: pointer;
            transition: all 0.2s;
            padding: 2px 8px;
            border-radius: 4px;
            background: rgba(67, 82, 175, 0.1);
            color: #4352AF;
            font-weight: bold;
        }

        .percentage-badge:hover {
            background: rgba(67, 82, 175, 0.2);
            transform: scale(1.05);
        }

        /* Ajuste específico para o card do Compositor Principal */
        #compositor-principal {
            border: 1px solid #bfbfff !important;
            padding: 18px 0 9px 28px !important;
            background-color: #fbfbff !important;
            border-radius: 12px !important;
            margin-bottom: 20px !important;
        }

        #compositor-principal strong {
            color: #333;
            font-size: 18px;
            margin-bottom: 12px;
        }

        #compositor-principal p {
            font-size: 16px;
            color: #555;
            display: flex;
            align-items: center;
        }
/* Navigation and Phone UI Adjustments */
.phone-group input[type="tel"] {
    padding: 0px !important;
}
.lf-nav-buttons-container {
    margin-top: 60px !important;
}
