body {
    font-family: 'Inter', sans-serif;
    background-color: #F8F7F4;
}
.professional-gradient {
    background: linear-gradient(135deg, #F8F7F4 0%, #ffffff 100%);
}
.analysis-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsividade adicional */
@media (max-width: 640px) {
    .analysis-box {
        margin: 0 8px;
    }
    h1 {
        line-height: 1.2;
    }
    h2 {
        line-height: 1.3;
    }
}

/* Melhor espaçamento em telas pequenas */
@media (max-width: 480px) {
    .py-12 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Garantir que o texto não quebre em telas muito pequenas */
@media (max-width: 360px) {
    .text-2xl {
        font-size: 1.25rem;
    }
    .text-lg {
        font-size: 1rem;
    }
}

/* Responsividade específica para valores monetários */
@media (max-width: 480px) {
    #calc-resultado-economia {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        word-break: break-all;
        hyphens: auto;
    }
    
    .monetary-value {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 360px) {
    #calc-resultado-economia {
        font-size: 1.25rem !important;
        line-height: 1.1 !important;
    }
    
    .monetary-value {
        font-size: 0.8rem !important;
        line-height: 1.1 !important;
    }
}

/* Garantir que valores monetários não estourem */
.monetary-value {
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Estilos para mensagens de erro */
.error-message {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.error-message.show {
    display: block;
}

.error-input {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.valor-minimo-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

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

/* Floating WhatsApp Button Styles */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp-btn:active {
    transform: scale(0.95);
}

.floating-whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: #25D366;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-header p {
    color: #666;
    margin: 8px 0 0 0;
    font-size: 0.9rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.modal-form input:focus {
    outline: none;
    border-color: #25D366;
}

.modal-form input.error {
    border-color: #ef4444;
}

.modal-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 4px;
    display: none;
}

.modal-error.show {
    display: block;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.modal-btn-cancel:hover {
    background: #e5e7eb;
}

.modal-btn-submit {
    background: #25D366;
    color: white;
}

.modal-btn-submit:hover {
    background: #128C7E;
}

.modal-btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Loading state for modal button */
.modal-btn-submit.loading {
    position: relative;
    color: transparent;
}

.modal-btn-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Amber badge background - fallback for Tailwind amber classes */
.bg-amber-200 {
    background-color: #fde68a !important;
}

.border-amber-400 {
    border-color: #fbbf24 !important;
}

.text-amber-700 {
    color: #b45309 !important;
}

.text-amber-900 {
    color: #78350f !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .floating-whatsapp-btn {
        width: 56px;
        height: 56px;
        bottom: 16px;
        right: 16px;
    }
    
    .floating-whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 16px;
    }
}