:root {
    --bg: #0d0d0d;
    --bg2: #111;
    --text: #fff;
    --muted: #ccc;
    --muted2: #888;
    --brand1: #00FFD1;
    --brand2: #00A3FF;
    --card: #1a1a1a;
    --stroke: #333;
    --grad: linear-gradient(90deg, var(--brand1), var(--brand2));
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

#chat-container {
    width: 100%;
    max-width: 420px;
    height: 80vh;
    max-height: 700px;
    background-color: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#chat-header {
    background-color: var(--bg2);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--stroke);
}

#chat-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.header-avatar {
    color: var(--brand2);
}

#chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 85%;
}

.message-text {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.user-message {
    align-self: flex-end;
}

.user-message .message-text {
    background: var(--grad);
    color: var(--bg);
    border-bottom-right-radius: 4px;
}

.bot-message {
    align-self: flex-start;
}

.bot-message .message-text {
    background-color: var(--bg2);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.bot-avatar {
    color: var(--brand2);
    margin-top: 0.5rem;
}

#chat-input-container {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--stroke);
    gap: 0.5rem;
}

#chat-input {
    flex-grow: 1;
    border: 1px solid var(--stroke);
    background-color: var(--bg2);
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
}

#chat-input::placeholder {
    color: var(--muted2);
}

#send-button {
    border: none;
    background-color: var(--brand2);
    color: var(--bg);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choice-button, .form-button {
    display: block;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.choice-button {
    background-color: var(--bg2);
    color: var(--text);
    border: 1px solid var(--stroke);
}

.form-button {
    background: var(--grad);
    color: var(--bg);
    font-weight: 600;
}

.choice-button:hover, .form-button:hover {
    transform: translateY(-2px);
}

.contact-buttons-container {
    margin-top: 0.5rem;
}