
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.chat-container {
    width: 100%;
    max-width: 700px;
    height: 90vh;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-bar {
    padding: 15px 20px;
    background-color: #f5f6f7;
    border-bottom: 1px solid #dddfe2;
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar label {
    font-weight: 600;
    color: #4b4f56;
}

#country-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #dddfe2;
    font-size: 16px;
    background-color: #fff;
}

#chat-header {
    position: relative;
    text-align: center;
    color: white;
    height: 150px; /* Fixed height for the header */
    display: none; /* Initially hidden */
}

#country-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the header area */
    filter: brightness(0.7);
}

#country-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

#chat-window {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.5;
    word-wrap: break-word;
}

.bot-message {
    background-color: #e4e6eb;
    color: #050505;
    align-self: flex-start;
}

.user-message {
    background-color: #1877f2;
    color: white;
    align-self: flex-end;
}

.bot-message h2, .bot-message h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}
.bot-message ul {
    padding-left: 20px;
    margin: 10px 0 0 0;
}
.bot-message .warning {
    font-weight: bold;
    color: #d93025;
}
.bot-message .disclaimer {
    font-style: italic;
    font-size: 12px;
    color: #606770;
    margin-top: 10px;
}

#message-form {
    display: flex;
    padding: 15px;
    border-top: 1px solid #dddfe2;
    background-color: #f5f6f7;
}

#message-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 18px;
    padding: 10px 18px;
    font-size: 16px;
    border: none;
    background-color: #e4e6eb;
}

#message-input:focus {
    outline: none;
}

#message-form button {
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 18px;
    padding: 10px 20px;
    margin-left: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

#message-form button:hover {
    background-color: #166fe5;
}
