* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   DISCLAIMER BANNER - ESSENCIAL PARA COMPLIANCE
   ============================================ */
.disclaimer-banner {
    background-color: #fff3cd;
    border-bottom: 2px solid #ffc107;
    padding: 12px 20px;
    text-align: center;
}

.disclaimer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.disclaimer-icon {
    font-size: 18px;
}

.disclaimer-content span {
    color: #856404;
    font-size: 14px;
}

.disclaimer-content strong {
    color: #664d03;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background-color: #0033A0;
    width: 100%;
    padding: 15px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-img {
    display: block;
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

/* ============================================
   SERVICE INFO SECTION
   ============================================ */
.service-info {
    background: linear-gradient(135deg, #0033A0 0%, #001a5c 100%);
    padding: 40px 20px;
    color: #fff;
    text-align: center;
}

.service-info-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-info h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #FFD700;
}

.service-info p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
}

.service-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
}

.feature-icon {
    font-size: 20px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 30px;
}

/* ============================================
   CHAT CARD
   ============================================ */
.chat-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 0;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    gap: 10px;
    background-color: #F8FAFF;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e9ecef;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-title {
    color: #0033A0;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.online-badge {
    background-color: #d4edda;
    color: #155724;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.chat-messages {
    padding: 25px 30px;
    margin-bottom: 0;
    max-height: 500px;
    overflow-y: auto;
}

/* ============================================
   MESSAGES
   ============================================ */
.message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInMessage 0.3s ease-out forwards;
}

.message-user {
    justify-content: flex-end;
}

@keyframes fadeInMessage {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar {
    flex-shrink: 0;
}

.avatar-img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.message-bubble {
    background-color: #F0F3FF;
    padding: 14px 18px;
    border-radius: 12px;
    max-width: 85%;
    border: 1px solid #e0e5f0;
}

.message-bubble-user {
    background-color: #FFD700;
    color: #000;
    border-color: #e6c200;
}

.message-bubble p {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.message-bubble a {
    color: #0033A0;
    text-decoration: underline;
}

/* ============================================
   SPECIAL MESSAGE TYPES
   ============================================ */
.message-highlight {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.message-data {
    padding: 18px;
    background-color: #f8f9fa;
}

.user-data {
    color: #333;
    font-size: 14px;
    line-height: 1.8;
}

.data-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.data-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.data-item strong {
    color: #0033A0;
    font-weight: 600;
}

/* Service list in messages */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-item {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    font-size: 14px;
}

/* How it works box */
.how-it-works {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #0033A0;
}

.how-it-works p {
    margin-bottom: 8px;
}

.how-it-works p:last-child {
    margin-bottom: 0;
}

/* FAQ Box */
.faq-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 5px 0;
}

.faq-box p:first-child {
    margin-bottom: 8px;
    color: #0033A0;
}

/* Info Box */
.info-box {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #0033A0;
}

.info-box p {
    margin-bottom: 6px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Price Box */
.price-box {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: #155724;
    margin: 10px 0 5px;
}

.price-note {
    font-size: 12px;
    color: #666;
}

/* Disclaimer inline */
.disclaimer-inline {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.disclaimer-inline p {
    margin-bottom: 6px;
    color: #856404;
}

.disclaimer-inline p:last-child {
    margin-bottom: 0;
}

/* ============================================
   OPTIONS / BUTTONS
   ============================================ */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
    padding: 0 52px; /* Alinhado com as mensagens (40px avatar + 12px gap) */
}

.option-button {
    background-color: #fff;
    border: 2px solid #0033A0;
    color: #0033A0;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.option-button:hover:not(:disabled) {
    background-color: #0033A0;
    color: #fff;
    transform: translateX(5px);
}

.option-button.option-selected {
    background-color: #FFD700;
    border-color: #FFD700;
    color: #000;
}

.option-button.option-disabled {
    opacity: 0.5;
    cursor: default;
}

.message-button-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 0 30px;
}

.confirm-button {
    background-color: #0033A0;
    color: #fff;
    border: none;
    padding: 16px 50px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 51, 160, 0.3);
}

.confirm-button:hover:not(:disabled) {
    background-color: #002680;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 160, 0.4);
}

.confirm-button:active:not(:disabled) {
    transform: translateY(0);
}

.confirm-button:disabled {
    opacity: 0.7;
    cursor: default;
}

.payment-button {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.payment-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* ============================================
   TYPING INDICATOR
   ============================================ */
.typing-indicator {
    background-color: #F0F3FF;
    padding: 14px 18px;
    border-radius: 12px;
    display: flex;
    gap: 5px;
    align-items: center;
    max-width: 80px;
    border: 1px solid #e0e5f0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0033A0;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   CONSENT SECTION - LGPD COMPLIANCE
   ============================================ */
.consent-section {
    padding: 0 30px 20px;
}

.consent-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
}

.consent-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.consent-text a {
    color: #0033A0;
    text-decoration: underline;
}

.consent-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.consent-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0033A0;
}

/* ============================================
   INPUT SECTION
   ============================================ */
.input-section {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    padding: 0 30px 30px 30px;
}

.cpf-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.cpf-input:focus {
    border-color: #0033A0;
}

.cpf-input::placeholder {
    color: #999;
}

.consultar-btn {
    background-color: #0033A0;
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consultar-btn:hover:not(:disabled) {
    background-color: #002680;
}

.consultar-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ============================================
   TRANSPARENCY BOX
   ============================================ */
.transparency-box {
    max-width: 700px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #0033A0;
}

.transparency-box h4 {
    color: #0033A0;
    margin-bottom: 15px;
    font-size: 16px;
}

.transparency-box ul {
    list-style: none;
}

.transparency-box li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    padding-left: 20px;
    position: relative;
}

.transparency-box li:before {
    content: "✓";
    color: #28a745;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.transparency-box li:last-child {
    border-bottom: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: #0033A0;
    padding: 40px 20px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-title {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-disclaimer {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 12px !important;
    font-style: italic;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-info h1 {
        font-size: 22px;
    }

    .service-features {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .input-section {
        flex-direction: column;
    }

    .consultar-btn {
        width: 100%;
    }

    .options-container {
        padding: 0 20px;
    }

    .chat-messages {
        padding: 20px;
    }

    .message-bubble {
        max-width: 90%;
    }

    .disclaimer-content {
        flex-direction: column;
        text-align: center;
    }

    .transparency-box {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .service-info {
        padding: 25px 15px;
    }

    .main-content {
        padding: 20px 10px;
    }

    .chat-messages {
        padding: 15px;
        max-height: 400px;
    }

    .consent-section,
    .input-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .confirm-button {
        padding: 14px 30px;
        font-size: 14px;
    }
}
