/* Basic Reset & Body Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Importando fonte tecnológica do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
    font-family: Arial, Helvetica, sans-serif; /* Or a similar bold sans-serif */
    background-color: #ffffff;
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Video Background Styles */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -3; /* Colocar abaixo do overlay e do conteúdo */
    object-fit: cover;
    transition: opacity 1s ease;
}

/* Add semi-transparent overlay to improve readability */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Escurecendo um pouco mais o overlay */
    z-index: -2; /* Entre o vídeo e o conteúdo */
    pointer-events: none;
}

/* Screen Container Styles */
.screen {
    display: none; /* Hide screens by default */
    flex-direction: column;
    align-items: center;
    justify-content: space-around; /* Adjust vertical spacing */
    width: 100%;
    max-width: 450px; /* Limite de largura para telas maiores */
    min-height: 80vh; /* Ensure content fills vertical space */
    text-align: center;
    padding: 30px 15px; /* Padding inside each screen */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle semi-transparent border */
    border-radius: 10px; /* Optional: rounds corners of the 'device' */
    background-color: rgba(28, 66, 32, 0.60); /* Tom escuro do site da Motomco */
    backdrop-filter: blur(5px); /* Blur effect for modern browsers */
    color: #fff; /* Light text for better contrast */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); /* Subtle shadow */
    position: relative;
    z-index: 10; /* Garantir que fique acima dos vídeos */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0s;
}

.screen.active {
    display: flex; /* Show the active screen */
    animation: fadeInUp 0.5s ease forwards;
}

.screen.exit {
    animation: fadeOutDown 0.4s ease forwards;
    display: flex;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Efeito de destaque para elementos na transição */
.screen.active .title,
.screen.active .input-area,
.screen.active .result-box,
.screen.active .logo {
    opacity: 0;
    animation: fadeInStagger 0.8s ease forwards;
}

/* Tratamento especial para botões: fade-in seguido por pulsação */
.screen.active .button {
    opacity: 0;
    animation: fadeInStagger 0.8s ease forwards, pulseButtons 4s infinite 0.8s ease-in-out;
}

/* Tratamento especial para link-box: fade-in seguido por pulsação */
.screen.active .link-box {
    opacity: 0;
    animation: fadeInStagger 0.8s ease forwards, pulseButtons 4s infinite 0.8s ease-in-out;
    animation-delay: 0.7s;
}

.screen.active .title { animation-delay: 0.1s; }
.screen.active .input-area { animation-delay: 0.25s; }
.screen.active .result-box:nth-child(1) { animation-delay: 0.2s; }
.screen.active .result-box:nth-child(2) { animation-delay: 0.3s; }
.screen.active .result-box:nth-child(3) { animation-delay: 0.4s; }
.screen.active .result-box:nth-child(4) { animation-delay: 0.5s; }
.screen.active .result-box:nth-child(5) { animation-delay: 0.6s; }
.screen.active .logo { animation-delay: 0.8s; }

@keyframes fadeInStagger {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito de brilho ao mudar de tela */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(44, 186, 80, 0), rgba(44, 186, 80, 0.2));
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Title Styles */
.title {
    font-size: clamp(1.8rem, 5vw, 2.2rem); /* Tamanho de fonte responsivo */
    font-weight: bold;
    margin-bottom: clamp(20px, 4vh, 30px);
    line-height: 1.2;
    margin-top: 20px;
    color: #fff; /* White text for better contrast */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Text shadow for legibility */
}

/* Input Area Styles */
.input-area {
    background-color: #222; /* Dark background */
    color: #ccc; /* Light grey text for placeholder */
    border-radius: 30px; /* Highly rounded corners */
    padding: clamp(15px, 3vh, 25px) clamp(10px, 5%, 20px);
    margin-bottom: clamp(15px, 3vh, 25px);
    margin-left: auto;
    margin-right: auto;
    width: clamp(200px, 80%, 350px); /* Largura responsiva */
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    min-height: 60px; /* Ensure minimum height */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(44, 186, 80, 0.3); /* Borda sutil com a cor verde da Motomco */
    box-sizing: border-box;
    position: relative; /* Para posicionar o alerta */
    transition: border-color 0.3s ease;
}

/* Highlight input with error */
.input-area input.input-error {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
}

/* Input error state */
.input-area input.input-error + .validation-alert {
    display: block;
}

/* Shake animation for error */
@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-3px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(3px, 0, 0);
    }
}

/* Validation Alert Styles */
.validation-alert {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: linear-gradient(to bottom right, rgba(220, 50, 50, 0.95), rgba(180, 30, 30, 0.95));
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(220, 50, 50, 0.4);
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    z-index: 100;
    min-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.validation-alert.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.validation-alert::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0) 50%, rgba(180, 30, 30, 0.95) 50%);
    border-radius: 0 0 4px 0;
}

.alert-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
    animation: pulse 2s infinite;
}

.alert-message {
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

/* Specific Input Field Styles */
.input-area input {
    background-color: transparent;
    border: none;
    color: #fff; /* White text for input */
    font-size: clamp(1.2rem, 3vw, 1.5rem); /* Aumentado o tamanho da fonte */
    text-align: center; /* Garantindo que o texto está centralizado */
    width: 100%;
    outline: none; /* Remove default outline */
    padding: 5px 0; /* Adicionando um pouco de padding vertical */
    margin: 0;
    font-weight: 500; /* Um pouco mais de peso na fonte */
}
.input-area input::placeholder { /* Style placeholder specifically */
     color: #ccc;
     opacity: 1; /* Firefox */
     font-size: clamp(1rem, 2.7vw, 1.3rem); /* Aumentado o tamanho do placeholder */
     text-align: center; /* Garantindo que o texto do placeholder está centralizado */
}

/* Button Styles - Verde da Motomco */
.button {
    background-color: rgba(44, 186, 80, 0.9); /* Verde da Motomco */
    color: #ffffff;
    border-radius: 30px;
    padding: 18px 20px;
    margin-top: 15px; /* Space above button */
    margin-bottom: 30px; /* Space below button */
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block; /* Proper button behavior */
    transition: all 0.3s ease; /* Smooth hover effect */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

.button:hover {
    background-color: rgb(44, 186, 80); /* Verde sólido ao passar o mouse */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 186, 80, 0.4);
    animation: none !important; /* Para a animação quando o mouse estiver sobre o botão */
    opacity: 1 !important; /* Garante que o botão permaneça visível no hover */
}

/* Animação de Pulsação - Ajustada para o verde da Motomco */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(44, 186, 80, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}

/* Nova animação de pulsação para botões - sequência rápida com pausa e sombra luminosa */
@keyframes pulseButtons {
    0% {
        transform: scale(1);
        box-shadow: 0 0 18px rgba(44, 186, 80, 0.4), 0 0 30px rgba(44, 186, 80, 0.2);
    }
    10% {
        transform: scale(1.02);
        box-shadow: 0 0 18px rgba(44, 186, 80, 0.4), 0 0 30px rgba(44, 186, 80, 0.2);
    }
    15% {
        transform: scale(1);
        box-shadow: 0 0 18px rgba(44, 186, 80, 0.4), 0 0 30px rgba(44, 186, 80, 0.2);
    }
    20% {
        transform: scale(1.02);
        box-shadow: 0 0 18px rgba(44, 186, 80, 0.4), 0 0 30px rgba(44, 186, 80, 0.2);
    }
    25% {
        transform: scale(1);
        box-shadow: 0 0 18px rgba(44, 186, 80, 0.4), 0 0 30px rgba(44, 186, 80, 0.2);
    }
    30% {
        transform: scale(1.02);
        box-shadow: 0 0 18px rgba(44, 186, 80, 0.4), 0 0 30px rgba(44, 186, 80, 0.2);
    }
    35% {
        transform: scale(1);
        box-shadow: 0 0 18px rgba(44, 186, 80, 0.4), 0 0 30px rgba(44, 186, 80, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(44, 186, 80, 0.5), 0 0 35px rgba(44, 186, 80, 0.3);
    }
    75% {
        box-shadow: 0 0 18px rgba(44, 186, 80, 0.4), 0 0 30px rgba(44, 186, 80, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 18px rgba(44, 186, 80, 0.4), 0 0 30px rgba(44, 186, 80, 0.2);
    }
}

/* Result Box Styles - Modificado para incluir ícones */
.result-box {
    background-color: #222;
    color: #ffffff;
    border-radius: 30px;
    padding: clamp(10px, 2vh, 15px);
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    width: clamp(200px, 80%, 350px);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    min-height: 50px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border: 1px solid rgba(44, 186, 80, 0.3);
    box-sizing: border-box;
    position: relative;
}

.result-icon {
    flex: 0 0 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.result-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.result-text {
    flex: 1;
    text-align: left;
    padding-right: 5px;
}

.result-box.large {
    min-height: 80px;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    font-weight: bold;
    padding: clamp(15px, 3vh, 25px);
    background-color: rgba(44, 186, 80, 0.2);
}

/* Destaque especial para o box de desconto total */
#resultDescontoTotal {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    background-color: rgba(44, 186, 80, 0.3);
    border: 2px solid rgba(44, 186, 80, 0.5);
    box-shadow: 0 0 15px rgba(44, 186, 80, 0.3), inset 0 0 20px rgba(44, 186, 80, 0.1);
}

#resultDescontoTotal .result-text {
    color: #ffd700; /* Dourado */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.result-box.large .result-icon img {
    width: 55px;
    height: 55px;
}

/* Ícone maior para o box de desconto total */
#resultDescontoTotal .result-icon img {
    width: 65px;
    height: 65px;
    filter: drop-shadow(0 0 5px rgba(44, 186, 80, 0.5));
}

/* Link Box Style (for Screen 7) */
.link-box {
    background-color: #222;
    color: #ffffff;
    border-radius: 30px;
    padding: clamp(10px, 2vh, 15px);
    margin-top: clamp(15px, 3vh, 20px);
    margin-bottom: clamp(20px, 4vh, 30px);
    margin-left: auto;
    margin-right: auto;
    width: clamp(200px, 80%, 350px);
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    cursor: pointer; /* Indicate it's clickable */
    border: 1px solid rgba(44, 186, 80, 0.3); /* Borda sutil com a cor verde da Motomco */
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.link-box:hover {
    background-color: rgba(44, 186, 80, 0.2);
    animation: none !important; /* Para a animação quando o mouse estiver sobre o elemento */
    opacity: 1 !important; /* Garante que o link-box permaneça visível no hover */
}

/* Logo Styles */
.logo {
    margin-top: 0; /* Posicionamento no topo */
    margin-bottom: 20px; /* Espaço abaixo da logo */
    padding-top: 10px;
    display: flex;
    justify-content: center;
    order: -1; /* Faz com que seja o primeiro elemento na ordem de flex */
}
.logo img {
    max-height: clamp(60px, 15vh, 90px); /* Tamanho maior */
    width: auto;
}
/* Removendo estilos anteriores do logo que não serão mais necessários */
.logo-graphic {
    display: none;
}

/* Estilo específico para centralizar a tela de agradecimento */
#screen9 {
    justify-content: center; /* Centraliza verticalmente todo o conteúdo */
}

#screen9 .title {
    margin-bottom: clamp(30px, 7vh, 50px); /* Espaço maior abaixo do título */
}

#screen9 .logo {
    margin-top: clamp(30px, 7vh, 50px); /* Espaço acima do logo na tela final */
    position: absolute;
    bottom: clamp(20px, 5vh, 30px);
}

/* Estilo para o efeito de fade na transição dos vídeos */
.video-fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    z-index: -1; /* Posiciona abaixo do conteúdo mas acima do vídeo */
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Media Queries para diferentes tamanhos de tela */
@media screen and (max-width: 480px) {
    /* Ajustes para dispositivos móveis pequenos */
    .screen {
        min-height: 90vh;
        padding: 20px 10px;
        margin-bottom: 20px; /* Margem inferior para evitar que encoste no fim da tela */
    }
    
    .title {
        margin-bottom: 15px;
    }
    
    .logo {
        padding-top: 10px;
    }
    
    .logo img {
        max-height: 30px;
    }
}

@media screen and (min-width: 768px) {
    /* Ajustes para tablets e desktops */
    .screen {
        max-width: 500px;
        min-height: 75vh;
    }
    
    .input-area, .button, .result-box, .link-box {
        width: clamp(250px, 75%, 400px);
    }
}

@media screen and (min-width: 1200px) {
    /* Ajustes para telas grandes */
    .screen {
        max-width: 550px;
        min-height: 70vh;
    }
    
    .input-area, .button, .result-box, .link-box {
        width: clamp(300px, 70%, 450px);
    }
}

/* Loader na tela de cálculo */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: clamp(20px, 5vh, 50px) auto;
    height: clamp(80px, 15vh, 150px);
    width: 100%;
}

.spinner-loader {
    position: relative;
    width: clamp(70px, 12vw, 100px);
    height: clamp(70px, 12vw, 100px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: rgba(44, 186, 80, 0.8); /* Verde da Motomco */
    border-left-color: rgba(44, 186, 80, 0.6); /* Verde da Motomco mais transparente */
    border-right-color: rgba(44, 186, 80, 0.4); /* Verde da Motomco ainda mais transparente */
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 20px rgba(44, 186, 80, 0.3);
}

.spinner-circle-inner {
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-bottom-color: rgba(44, 186, 80, 0.9); /* Verde da Motomco */
    border-right-color: rgba(44, 186, 80, 0.7); /* Verde da Motomco mais transparente */
    animation: spin 2s linear infinite reverse;
}

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

/* Teclado Virtual - Estilo base aprimorado */
.virtual-keyboard {
    position: fixed;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(to bottom, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.98));
    border-top: 2px solid rgba(44, 186, 80, 0.7);
    padding: 15px 10px 10px;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: block;
    backdrop-filter: blur(10px);
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    will-change: transform, opacity;
}

.virtual-keyboard.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(44, 186, 80, 0.2);
}

/* Estilos restaurados para elementos do teclado */
.keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.keyboard-key {
    background: linear-gradient(145deg, rgba(56, 56, 56, 0.9), rgba(40, 40, 40, 0.9));
    color: white;
    border: 1px solid rgba(70, 70, 70, 0.6);
    border-radius: 10px;
    margin: 0 3px;
    padding: 12px 0;
    font-size: 1.2rem;
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-width: 40px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Efeito de ripple ao clicar */
.keyboard-key::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(44, 186, 80, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.keyboard-key:active::after {
    animation: ripple 0.4s cubic-bezier(0, 0.5, 0.5, 1);
}

@keyframes ripple {
    0% {
        transform: scale(0, 0) translate(-50%, -50%);
        opacity: 0.7;
    }
    100% {
        transform: scale(25, 25) translate(-50%, -50%);
        opacity: 0;
    }
}

/* Estilo para SVGs dentro das teclas */
.keyboard-key svg {
    width: 20px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: all 0.2s ease;
}

.keyboard-key:hover svg {
    stroke: rgba(44, 186, 80, 0.9);
    transform: scale(1.1);
}

.keyboard-key:active svg {
    stroke: white;
    transform: scale(0.95);
}

/* Hover e active melhorados */
.keyboard-key:hover {
    background: linear-gradient(145deg, rgba(70, 70, 70, 0.9), rgba(50, 50, 50, 0.9));
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 10px rgba(44, 186, 80, 0.2);
    border-color: rgba(44, 186, 80, 0.6);
    color: rgba(255, 255, 255, 1);
}

.keyboard-key:active {
    background: linear-gradient(145deg, rgba(44, 186, 80, 0.8), rgba(35, 150, 65, 0.8));
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(0, 0, 0, 0.1), 0 0 15px rgba(44, 186, 80, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    transition-duration: 0.05s;
}

.keyboard-key.wide {
    flex: 1.8;
}

.keyboard-key.extra-wide {
    flex: 3;
}

/* Estilo para tecla Shift quando ativada */
.keyboard-key.active {
    background: linear-gradient(145deg, rgba(44, 186, 80, 0.7), rgba(35, 160, 70, 0.7));
    box-shadow: 0 0 12px rgba(44, 186, 80, 0.4), inset 0 1px 5px rgba(0, 0, 0, 0.1);
    border-color: rgba(44, 186, 80, 0.8);
    color: #ffffff;
    font-weight: bold;
}

/* Teclas especiais com ícones */
.keyboard-key[data-key="backspace"], 
.keyboard-key[data-key="enter"],
.keyboard-key[data-key="shift"],
.keyboard-key[data-key="symbols"] {
    font-weight: 600;
    background: linear-gradient(145deg, rgba(50, 50, 50, 0.9), rgba(35, 35, 35, 0.9));
}

/* Teclado Numérico Dedicado */
.numeric-keyboard {
    position: fixed;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(to bottom, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.98));
    border-top: 2px solid rgba(44, 186, 80, 0.7);
    padding: 15px 10px 5px;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(10px);
    will-change: transform, opacity;
}

.numeric-keyboard.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(44, 186, 80, 0.2);
}

/* Efeito de borda pulsante para teclados ativos */
.virtual-keyboard.active, .numeric-keyboard.active {
    animation: keyboardBorderPulse 4s infinite;
}

@keyframes keyboardBorderPulse {
    0% {
        border-top-color: rgba(44, 186, 80, 0.5);
    }
    50% {
        border-top-color: rgba(44, 186, 80, 0.9);
        box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(44, 186, 80, 0.4);
    }
    100% {
        border-top-color: rgba(44, 186, 80, 0.5);
    }
}

/* Estilo para o botão de fechar na parte inferior */
.keyboard-close-bottom {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, rgba(50, 50, 50, 0.9), rgba(35, 35, 35, 0.9));
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    border-top: 1px solid rgba(70, 70, 70, 0.6);
    z-index: 10;
    border-radius: 0 0 12px 12px;
}

.keyboard-close-bottom svg {
    width: 24px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 2.5px;
}

.keyboard-close-bottom:hover {
    background: linear-gradient(145deg, rgba(60, 60, 60, 0.9), rgba(45, 45, 45, 0.9));
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.keyboard-close-bottom:active {
    background: linear-gradient(145deg, rgba(44, 186, 80, 0.5), rgba(35, 150, 65, 0.5));
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Layout do teclado numérico */
.numeric-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 10px 0;
}

.numeric-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 15px;
}

.numeric-key {
    background: linear-gradient(145deg, rgba(56, 56, 56, 0.9), rgba(40, 40, 40, 0.9));
    color: white;
    border: 1px solid rgba(70, 70, 70, 0.6);
    border-radius: 12px;
    padding: 18px 0;
    margin: 0 8px;
    flex: 1;
    text-align: center;
    font-size: 1.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Efeito de ripple para teclas numéricas */
.numeric-key::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(44, 186, 80, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.numeric-key:active::after {
    animation: ripple 0.4s cubic-bezier(0, 0.5, 0.5, 1);
}

/* Hover e active para teclas numéricas */
.numeric-key:hover {
    background: linear-gradient(145deg, rgba(70, 70, 70, 0.9), rgba(50, 50, 50, 0.9));
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 10px rgba(44, 186, 80, 0.2);
    border-color: rgba(44, 186, 80, 0.6);
    color: rgba(255, 255, 255, 1);
}

.numeric-key:active {
    background: linear-gradient(145deg, rgba(44, 186, 80, 0.8), rgba(35, 150, 65, 0.8));
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    transition-duration: 0.05s;
}

/* Estilo para tecla de backspace */
.numeric-key.backspace-key {
    background: linear-gradient(145deg, rgba(70, 70, 70, 0.9), rgba(50, 50, 50, 0.9));
}

.numeric-key.backspace-key:hover {
    background: linear-gradient(145deg, rgba(80, 80, 80, 0.9), rgba(60, 60, 60, 0.9));
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(44, 186, 80, 0.6);
}

.numeric-key.backspace-key:active {
    background: linear-gradient(145deg, rgba(44, 186, 80, 0.8), rgba(35, 150, 65, 0.8));
}

.numeric-key.backspace-key svg {
    width: 22px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2px;
    transition: all 0.2s ease;
}

/* Animação para teclas do teclado quando aparecem */
.keyboard-row .keyboard-key, .numeric-row .numeric-key {
    animation: keyReveal 0.5s backwards;
}

/* Aplicar atraso escalonado para cada tecla */
.keyboard-row:nth-child(1) .keyboard-key:nth-child(1), .numeric-row:nth-child(1) .numeric-key:nth-child(1) { animation-delay: 0.05s; }
.keyboard-row:nth-child(1) .keyboard-key:nth-child(2), .numeric-row:nth-child(1) .numeric-key:nth-child(2) { animation-delay: 0.07s; }
.keyboard-row:nth-child(1) .keyboard-key:nth-child(3), .numeric-row:nth-child(1) .numeric-key:nth-child(3) { animation-delay: 0.09s; }
.keyboard-row:nth-child(1) .keyboard-key:nth-child(4) { animation-delay: 0.11s; }
.keyboard-row:nth-child(1) .keyboard-key:nth-child(5) { animation-delay: 0.13s; }
.keyboard-row:nth-child(1) .keyboard-key:nth-child(6) { animation-delay: 0.15s; }
.keyboard-row:nth-child(1) .keyboard-key:nth-child(7) { animation-delay: 0.17s; }
.keyboard-row:nth-child(1) .keyboard-key:nth-child(8) { animation-delay: 0.19s; }
.keyboard-row:nth-child(1) .keyboard-key:nth-child(9) { animation-delay: 0.21s; }
.keyboard-row:nth-child(1) .keyboard-key:nth-child(10) { animation-delay: 0.23s; }
.keyboard-row:nth-child(1) .keyboard-key:nth-child(11) { animation-delay: 0.25s; }

.keyboard-row:nth-child(2) .keyboard-key:nth-child(1), .numeric-row:nth-child(2) .numeric-key:nth-child(1) { animation-delay: 0.1s; }
.keyboard-row:nth-child(2) .keyboard-key:nth-child(2), .numeric-row:nth-child(2) .numeric-key:nth-child(2) { animation-delay: 0.12s; }
.keyboard-row:nth-child(2) .keyboard-key:nth-child(3), .numeric-row:nth-child(2) .numeric-key:nth-child(3) { animation-delay: 0.14s; }
.keyboard-row:nth-child(2) .keyboard-key:nth-child(4) { animation-delay: 0.16s; }
.keyboard-row:nth-child(2) .keyboard-key:nth-child(5) { animation-delay: 0.18s; }
.keyboard-row:nth-child(2) .keyboard-key:nth-child(6) { animation-delay: 0.2s; }
.keyboard-row:nth-child(2) .keyboard-key:nth-child(7) { animation-delay: 0.22s; }
.keyboard-row:nth-child(2) .keyboard-key:nth-child(8) { animation-delay: 0.24s; }
.keyboard-row:nth-child(2) .keyboard-key:nth-child(9) { animation-delay: 0.26s; }
.keyboard-row:nth-child(2) .keyboard-key:nth-child(10) { animation-delay: 0.28s; }

@keyframes keyReveal {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.keyboard-close-bottom, .close-keyboard-button {
    animation: keyReveal 0.5s backwards;
    animation-delay: 0.4s;
}

/* Ajustes para dispositivos maiores */
@media screen and (min-width: 768px) {
    .virtual-keyboard {
        max-width: 650px;
        border-radius: 16px 16px 0 0;
        padding: 18px 15px 15px;
    }
    
    .numeric-keyboard {
        max-width: 400px;
        border-radius: 16px 16px 0 0;
    }
}

/* Question Mark Styles */
.question-mark-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.question-mark {
    font-size: 8rem;
    font-weight: bold;
    color: #fff;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 15px rgba(44, 186, 80, 0.5);
    animation: questionMarkPulse 2s infinite;
}

.question-mark::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(44, 186, 80, 0.2) 0%, rgba(44, 186, 80, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: explosionEffect 2s infinite;
}

@keyframes questionMarkPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(44, 186, 80, 0.5);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(44, 186, 80, 0.8);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(44, 186, 80, 0.5);
    }
}

@keyframes explosionEffect {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(2);
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* Tratamento especial para o ponto de interrogação na animação de entrada */
.screen.active .question-mark-container {
    opacity: 0;
    animation: fadeInStagger 0.8s ease forwards;
    animation-delay: 0.2s;
}

/* Estilo para o ícone de home */
.home-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, rgba(44, 186, 80, 0.8), rgba(35, 150, 65, 0.8));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 10;
}

.home-icon svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

.home-icon:hover {
    background: linear-gradient(145deg, rgba(44, 186, 80, 0.9), rgba(35, 150, 65, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4), 0 0 10px rgba(44, 186, 80, 0.3);
}

.home-icon:active {
    background: linear-gradient(145deg, rgba(35, 150, 65, 0.9), rgba(44, 186, 80, 0.9));
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.home-icon:hover svg {
    transform: scale(1.1);
}

.home-icon:active svg {
    transform: scale(0.95);
}

/* Ajustes responsivos para o ícone de home */
@media screen and (max-width: 480px) {
    .home-icon {
        width: 36px;
        height: 36px;
        top: 12px;
        left: 12px;
    }
    
    .home-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Estilo para a tela de agradecimento com imagem */
.thank-you-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50vh; /* Reduzido de 60vh para 50vh */
    margin-top: -40px; /* Adicionado margin negativo para mover para cima */
}

.thank-you-image {
    max-width: 60%;
    max-height: 60vh;
    object-fit: contain;
    animation: fadeInStagger 1s ease forwards;
}

/* Estilo para a imagem da máquina na tela 2 */
.machine-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px auto;
}

.machine-image {
    max-width: 70%;
    max-height: 20vh;
    object-fit: contain;
    animation: fadeInStagger 0.8s ease forwards;
    animation-delay: 0.15s;
}

/* Tratamento especial para a imagem na animação de entrada */
.screen.active .machine-image-container {
    opacity: 0;
    animation: fadeInStagger 0.8s ease forwards;
    animation-delay: 0.15s;
}

/* Estilo para a imagem do caminhão na tela 3 */
.truck-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px auto;
}

.truck-image {
    max-width: 70%;
    max-height: 20vh;
    object-fit: contain;
    animation: fadeInStagger 0.8s ease forwards;
    animation-delay: 0.15s;
}

/* Tratamento especial para a imagem na animação de entrada */
.screen.active .truck-image-container {
    opacity: 0;
    animation: fadeInStagger 0.8s ease forwards;
    animation-delay: 0.15s;
}

/* Estilo para a imagem do dinheiro na tela 4 */
.money-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px auto;
}

.money-image {
    max-width: 70%;
    max-height: 20vh;
    object-fit: contain;
    animation: fadeInStagger 0.8s ease forwards;
    animation-delay: 0.15s;
}

/* Tratamento especial para a imagem na animação de entrada */
.screen.active .money-image-container {
    opacity: 0;
    animation: fadeInStagger 0.8s ease forwards;
    animation-delay: 0.15s;
}

/* Estilo para a letra "E" verde no CONNECT */
.green-letter {
    color: rgb(44, 186, 80);
    font-weight: bold;
}

/* Estilo para a palavra CONNECT com fonte mais tecnológica */
.tech-font {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(44, 186, 80, 0.7), 0 0 25px rgba(44, 186, 80, 0.4);
    display: inline-block;
    animation: connectGlow 4s infinite ease-in-out;
}

/* Animação de brilho para a palavra CONNECT */
@keyframes connectGlow {
    0% {
        text-shadow: 0 0 15px rgba(44, 186, 80, 0.7), 0 0 25px rgba(44, 186, 80, 0.4);
    }
    50% {
        text-shadow: 0 0 20px rgba(44, 186, 80, 0.9), 0 0 35px rgba(44, 186, 80, 0.6), 0 0 45px rgba(44, 186, 80, 0.3);
    }
    100% {
        text-shadow: 0 0 15px rgba(44, 186, 80, 0.7), 0 0 25px rgba(44, 186, 80, 0.4);
    }
}

/* Estilo para a dica de pressionar Enter */
.enter-hint {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 15px;
    font-style: italic;
    position: relative;
    display: inline-block;
    animation: enter-hint-pulse 2s infinite ease-in-out;
}

@keyframes enter-hint-pulse {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
        color: rgba(44, 186, 80, 0.9);
    }
    100% {
        opacity: 0.7;
    }
}

/* Estilo para tecla de Enter no teclado numérico */
.numeric-key.enter-key {
    background: linear-gradient(145deg, rgba(70, 70, 70, 0.9), rgba(50, 50, 50, 0.9));
    border-color: rgba(100, 100, 100, 0.7);
}

.numeric-key.enter-key:hover {
    background: linear-gradient(145deg, rgba(80, 80, 80, 0.9), rgba(60, 60, 60, 0.9));
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(44, 186, 80, 0.6);
}

.numeric-key.enter-key:active {
    background: linear-gradient(145deg, rgba(44, 186, 80, 0.8), rgba(35, 150, 65, 0.8));
}

.numeric-key.enter-key svg {
    width: 22px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2px;
    transition: all 0.2s ease;
}

.numeric-key.enter-key:hover svg {
    stroke: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.numeric-key.enter-key:active svg {
    stroke: white;
    transform: scale(0.95);
}

/* Estilo para o botão de fechar ao lado do Enter */
.close-keyboard-button {
    background: linear-gradient(145deg, rgba(70, 70, 70, 0.9), rgba(50, 50, 50, 0.9));
    color: white;
    border: 1px solid rgba(100, 100, 100, 0.7);
    border-radius: 10px;
    padding: 18px 0;
    margin: 0 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-keyboard-button:hover {
    background: linear-gradient(145deg, rgba(80, 80, 80, 0.9), rgba(60, 60, 60, 0.9));
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(44, 186, 80, 0.6);
}

.close-keyboard-button:active {
    background: linear-gradient(145deg, rgba(44, 186, 80, 0.8), rgba(35, 150, 65, 0.8));
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(0, 0, 0, 0.1);
}

.close-keyboard-button svg {
    width: 22px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2px;
    transition: all 0.2s ease;
}

.close-keyboard-button:hover svg {
    stroke: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.close-keyboard-button:active svg {
    stroke: white;
    transform: scale(0.95);
}

/* QR Code Styles */
.qrcode-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto 20px;
    width: 100%;
    max-width: 150px; /* Reduzido de 200px para 150px */
}

.qrcode-image {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 2px solid rgba(44, 186, 80, 0.6);
    background-color: white;
    padding: 8px;
    animation: fadeInStagger 0.8s ease forwards;
    animation-delay: 0.3s;
    transform: translateY(10px);
    opacity: 0;
}

/* Label para o QR code */
.qrcode-label {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 20px auto 5px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    position: relative;
    animation: fadeInStagger 0.8s ease forwards;
    animation-delay: 0.35s;
    opacity: 0;
    background: linear-gradient(90deg, rgba(44, 186, 80, 0) 0%, rgba(44, 186, 80, 0.4) 50%, rgba(44, 186, 80, 0) 100%);
    padding: 5px 0;
}

/* Classe para ocultar elementos em dispositivos móveis */
.mobile-hidden {
    display: none !important;
}

/* Adicionar animação para o qrcode na entrada da tela */
.screen.active .qrcode-container,
.screen.active .qrcode-label {
    opacity: 0;
    animation: fadeInStagger 0.8s ease forwards;
    animation-delay: 0.4s;
}

/* Estilo para destacar os valores calculados */
.result-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A037;
    display: block;
    margin-top: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Para telas maiores, aumenta ainda mais os valores */
@media screen and (min-width: 768px) {
    .result-value {
        font-size: 1.8em;
    }
}

@media screen and (min-width: 1200px) {
    .result-value {
        font-size: 2em;
    }
}

/* Overlay e animação de confirmação de email */
.confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.confirmation-animation {
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(38, 160, 55, 0.6);
    animation: pulse-grow 0.5s ease-in-out;
}

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

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #26A037;
    stroke-miterlimit: 10;
    margin: 10% auto;
    box-shadow: 0 0 0 #26A037;
    animation: fill-checkmark 0.4s ease-in-out 0.3s forwards;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #26A037;
    fill: none;
    animation: stroke-checkmark 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke-checkmark 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke-checkmark {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fill-checkmark {
    100% {
        box-shadow: inset 0 0 0 80px white;
    }
}

/* Animação de confirmação inline */
.input-area {
    position: relative;
    display: flex;
    align-items: center;
}

.inline-confirmation-animation {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    opacity: 0;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(38, 160, 55, 0.6);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.inline-confirmation-animation.active {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    animation: bounce 0.5s ease 0.2s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}

.inline-confirmation-animation .checkmark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #26A037;
    stroke-miterlimit: 10;
    box-shadow: 0 0 0 #26A037;
    animation: fill-checkmark 0.4s ease-in-out 0.3s forwards;
}

.inline-confirmation-animation .checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #26A037;
    fill: none;
    animation: stroke-checkmark 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.inline-confirmation-animation .checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke-checkmark 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

/* Ajuste de posicionamento para telas menores */
@media screen and (max-width: 768px) {
    .inline-confirmation-animation {
        right: -45px;
        width: 40px;
        height: 40px;
    }
    
    .inline-confirmation-animation .checkmark {
        width: 30px;
        height: 30px;
    }
}

/* Remover o overlay de tela inteira que não será mais usado */
.confirmation-overlay {
    display: none;
}

/* Classe para ocultar completamente os teclados virtuais */
.hidden-keyboard {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
} 