/* Configurações Gerais de Layout */
body {
    background: #f4f1ea;
    font-family: 'Georgia', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
    color: #2c3e2f;
}

.container {
    max-width: 600px; /* Aumentei levemente para acomodar as 3 colunas melhor */
    width: 100%;
    background: white;
    border-radius: 45px;
    padding: 2.5rem; /* Reduzi o padding superior para ganhar espaço */
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #e0d6cc;
}

/* --- NOVO CABEÇALHO EM 3 COLUNAS --- */
.header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f4f1ea;
}

.header-info {
    flex: 1;
    text-align: left;
}

.header-info h1 {
    font-size: 2rem;
    margin: 0;
    font-weight: 400;
    justify-content: flex-start;
}

.header-avatar {
    flex: 0 0 auto;
}

.header-avatar img {
    width: 90px; /* Tamanho otimizado para a linha */
    height: auto;
    display: block;
}

.header-quote {
    flex: 1;
    text-align: right;
    font-size: 0.8rem;
    color: #8c8375;
    line-height: 1.3;
}

.header-quote em {
    color: #6b5e4a;
    font-style: italic;
    display: block;
    margin-top: 2px;
}

/* --- RESTANTE DO ESTILO --- */

input { 
    width: 100%;
    box-sizing: border-box;
    padding: 1.2rem 1.6rem;
    border: 1px solid #e0d6cc;
    border-radius: 25px;
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
}

input:focus {
    border-color: #9b8c7c;
}

.input-container { 
    margin-bottom: 1rem;
}

.button-container { 
    margin: 1rem 0;
    text-align: center;
}

button { 
    background: #2d362e;
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1rem;
    transition: background 0.3s;
}

button:hover {
    background: #1f2620;
}

button:disabled, input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.resposta {
    margin-top: 1rem;
    padding: 1.5rem 2rem;
    min-height: 100px;
    border: 1px solid #ede4db;
    border-radius: 30px;
    background: #fdfcfb;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #3e4a3f;
    white-space: pre-wrap;
}

.resposta em {
    color: #7f6e5d;
    font-style: italic;
}

.footer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #a3998e;
    letter-spacing: 0.5px;
}

.doc-link {
    display: block;
    margin-top: 10px;
    color: #3b82f6;
    text-decoration: none !important;
    font-size: 0.8rem;
}

.doc-link:hover {
    color: #1e40af;
}
.input-container { 
    margin-bottom: 2rem; /* Espaço direto para a resposta */
}

input {
    /* Mantém seu estilo, mas talvez um foco mais suave */
    transition: all 0.3s ease;
}

/* Responsividade para Celular */
@media (max-width: 500px) {
    .header-card {
        flex-direction: column;
        gap: 10px;
    }
    .header-info, .header-quote {
        text-align: center;
    }
    .header-info h1 {
        justify-content: center;
    }
}