/* style.css corrigido */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
}

/* Viewport mobile otimizada */
.viewport-mobile {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Container principal para mobile */
.mobile-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* Smooth transitions for interactive elements */
button, [type='button'], [type='submit'], a {
    transition: all 0.2s ease-in-out;
}

/* Custom shadow for cards */
.shadow-lg {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Hover effect for payment methods and cards */
.flex.items-center.justify-between.py-3:hover,
.border-santander-500:hover {
    background-color: rgba(236, 0, 0, 0.05);
    cursor: pointer;
}

/* PIX Modal */
#pixModal {
    transition: opacity 0.3s ease;
}

#pixQrCode {
    width: 250px;
    height: 250px;
    border: 1px solid #e5e7eb;
    max-width: 100%;
}

/* Form inputs */
input, select {
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
}

input:focus, select:focus {
    border-color: #ec0000;
    box-shadow: 0 0 0 2px rgba(236, 0, 0, 0.2);
    outline: none;
}

/* Card selection */
.border-santander-500 {
    border-width: 2px;
}

/* Footer Styles */
.santander-footer {
    background-color: #333333;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
    width: 100%;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: #ec0000;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: #ec0000;
}

.footer-bottom {
    border-top: 1px solid #555555;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: #999999;
    justify-content: center;
}

.footer-legal a {
    color: #cccccc;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #ec0000;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #999999;
    margin-top: 1rem;
    text-align: center;
}

/* Modal Styles */
.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.bg-opacity-50 {
    background-color: rgba(0, 0, 0, 0.5);
}

.z-50 {
    z-index: 50;
}

.hidden {
    display: none;
}

/* Spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Smooth transitions for modals */
#analysisModal, #approvalModal {
    transition: opacity 0.3s ease;
}

/* Classes específicas para correção mobile */
.mobile-full-width {
    width: 100%;
    max-width: 100%;
}

.mobile-padding {
    padding-left: 16px;
    padding-right: 16px;
}

.mobile-text-center {
    text-align: center;
}

/* Correção para elementos que podem quebrar em mobile */
img {
    max-width: 100%;
    height: auto;
}

/* Grid responsivo para mobile */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Ajustes específicos para telas muito pequenas */
    @media (max-width: 360px) {
        .mobile-container {
            padding: 0 12px;
        }
        
        .footer-social a {
            font-size: 0.8rem;
        }
    }
}

/* Garantir que o body ocupe toda a altura da tela */
.min-h-screen {
    min-height: 100vh;
}

/* Prevenir overflow horizontal */
.prevent-overflow {
    overflow-x: hidden;
}

/* Logo do header — tamanho consistente e responsivo
   Ajuste os valores abaixo se quiser correspondência exata ao site oficial. */
header img {
    height: 3.5rem !important; /* 56px */
    max-height: 3.5rem !important;
    width: auto !important;
    display: inline-block;
}

@media (min-width: 1024px) {
    header img {
        height: 4rem !important; /* 64px em telas maiores */
        max-height: 4rem !important;
    }
}

@media (max-width: 640px) {
    header img {
        height: 2.5rem !important; /* 40px em mobile */
        max-height: 2.5rem !important;
    }
}