@media (min-width: 450px) {
    .main-card {
        width: 96%;
        max-width: 400px;
        /* height: calc(100% - 32px) !important; */
        border-radius: 8px !important;
        max-height: 450px;
        margin: 16px !important;
    }
}

.collapsed {
    width: 48px !important;
    height: 48px !important;
    border-radius: 24px !important;
    margin: 16px !important;
}

.main-card {
    background: white;
    color: white;
    width: 100%;
    height: 100%;
    margin: 0px;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    right: 12px;
    bottom: .1rem;
    position: fixed;
    z-index: 1000;
    transition: all 0.5s;
    box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
#chatbot_toggle {
    position: absolute;
    right: 0;
    border: none;
    height: 48px;
    width: 48px;
    background: #1e73be;
    padding: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

#chatbot_toggle:hover {
    background: #265075;
}

.line {
    height: 1px;
    background-color: #1e73be;
    width: 100%;
    opacity: 0.2;
}

.main-title {
    background-color: #1e73be;
    font-size: large;
    font-weight: bold;
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 8px;
}

.main-title>div {
    height: 48px;
    width: 48px;
    display: flex;
    margin-right: 8px;
}

.main-title svg {
    height: 24px;
    margin: auto;
}

.main-title>span {
    flex-grow: 1;
    color: white;
}

.input-div {
    padding: 16px;
    padding-bottom: 20px;
    border-top: 1px solid #ddd;
    background-color: #fff;
}

.input-message {
    width: 100%;
    padding: 10px;
    border: 1px solid gainsboro;
    border-radius: 4px;
    resize: none;
    box-sizing: border-box;
}

.input-send {
    background: #1e73be;
    color: white;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.input-send:hover {
    background: #265075;
}

/* Form Styles */
.user-form {
    display: flex;
    flex-direction: column;
}

.user-form input,
.user-form textarea {
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid gainsboro;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.user-form button {
    padding: 10px;
    background: #1e73be;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.user-form button:hover {
    background: #265075;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-bottom: 8px;
}

.success-message {
    color: green;
    font-size: 12px;
    margin-bottom: 8px;
}