/* Reset Básico e Fontes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header e Navegação */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #005f73;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    transition: color 0.3s;
}

nav a:hover {
    color: #005f73;
}

.btn-login {
    background-color: #005f73;
    color: #fff;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #0a9396;
}

/* Seção Hero (Página Inicial) */
.hero {
    background-color: #e9f5f5;
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 2.8rem;
    color: #001219;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.btn-main {
    background-color: #ee9b00;
    color: #001219;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-main:hover {
    background-color: #ca6702;
    color: #fff;
}

/* Seção Features */
.features {
    padding: 60px 0;
    text-align: center;
}

.features h2 {
    margin-bottom: 3rem;
    font-size: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Estilos de Página Genéricos */
.page-title {
    background-color: #005f73;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.content {
    padding: 60px 0;
    background-color: #fff;
}

.content h2 {
    margin-bottom: 1rem;
}

/* Planos */
.plans {
    padding: 60px 0;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.plan-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    border: 2px solid transparent;
}

.plan-item.featured {
    border-color: #ee9b00;
    transform: scale(1.05);
}

.plan-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-item .price {
    font-size: 2.5rem;
    font-weight: 600;
    color: #005f73;
    margin-bottom: 1.5rem;
}

.plan-item .price .period {
    font-size: 1rem;
    font-weight: 300;
}

.plan-item ul {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-item ul li {
    margin-bottom: 0.5rem;
}

.btn-secondary {
    background-color: transparent;
    color: #005f73;
    padding: 10px 25px;
    border: 2px solid #005f73;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #005f73;
    color: #fff;
}

.btn-secondary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.promo {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ca6702;
    font-weight: 600;
}


/* Footer */
footer {
    background-color: #001219;
    color: #e9f5f5;
    text-align: center;
    padding: 2rem 0;
    margin-top: 40px;
}

/* ======================== */
/* ESTILOS DA PÁGINA DE CHAT */
/* ======================== */

.chat-wrapper {
    padding: 40px 0;
}

.chat-container {
    max-width: 800px;
    height: 75vh; /* Altura de 75% da tela visível */
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background-color: #005f73;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.chat-header p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto; /* A mágica para a barra de rolagem aparecer */
    background-color: #f4f7f6;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.message p {
    margin: 0 0 5px 0;
}

.message .timestamp {
    font-size: 0.75rem;
    color: inherit;
    opacity: 0.8;
    display: block;
    text-align: right;
}

/* Mensagem Recebida (alinhada à esquerda) */
.message.received {
    background-color: #e9ecef;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.message.received .timestamp{
    text-align: left;
}


/* Mensagem Enviada (alinhada à direita) */
.message.sent {
    background-color: #0a9396;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 15px 20px;
    background-color: #fff;
    border-top: 1px solid #ddd;
}

.message-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.message-form textarea {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    resize: none;
    height: 40px; /* Começa com uma linha */
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: height 0.2s;
}
.message-form textarea:focus {
    outline: none;
    border-color: #005f73;
}


.message-form button {
    background-color: #005f73;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.message-form button:hover {
    background-color: #0a9396;
}