body {
    font-family: 'Century Gothic', sans-serif;
    min-height: 100vh; 
    background-color: #f0f2f5;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden; 
}

.legal-notice {
    padding: 1rem;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    font-size: 0.95rem;
    text-align: center;
    color: #333;
}

.chat-container {
    background-color: #fff;
    border-radius: 0; 
    box-shadow: none; 
    width: 100vw; 
    height: 100vh; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

.chat-header {
    
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    position: relative;
    flex-shrink: 0;
    justify-content: center; 
}

/* Styling for the new avatar wrapper div */
.chat-header .avatar-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: rgb(224, 220, 220); 
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styling for the actual avatar image inside the wrapper */
.chat-header .avatar-wrapper .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 10px;      
    transform: scale(1.1);      
    transform-origin: center;   
    display: block;
}

/* Pseudo-element for the round green dot indicator */
.chat-header .avatar-wrapper::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 0px;
    width: 12px;
    height: 12px;
    background-color: #BAD025;
    border-radius: 50%;
    box-sizing: border-box;
    z-index: 1;
}

.chat-header span {
    font-weight: bold;
    color: #333;
}

.chat-header .close-button {
    background: none;
    border: none;
    font-size: 35px;
    color: #999;
    cursor: pointer;
    position: absolute; /* Positioned relative to .chat-header */
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.main-content-area {
    font-family: 'Century Gothic', sans-serif;
    flex-grow: 1;
    padding: 100px 50px 50px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center; 
    text-align: center;
    overflow-y: auto;
    margin-top: 50px; 
}

/* Styles for single messages/prompts */
.bot-message-bubble {
    font-family: 'Century Gothic', sans-serif;
    background-color: #27367e;
    border-radius: 18px;
    padding: 20px 65px 10px 65px;
    max-width: 95%;
    max-width: calc(100% - 20px);
    word-wrap: break-word;
    color: #fff;
    margin-bottom: 50px;
    position: relative;
    text-align: left;
}

.bot-message-bubble::after {
    font-family: 'Century Gothic', sans-serif;
    content: '';
    position: absolute;
    bottom: 100%; /* Positions the triangle above the bubble */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #27367e; /* Makes the triangle point upwards */
    margin-bottom: -1px; /* Overlaps slightly with the bubble */
}

.bot-message-bubble,
.bot-message-bubble p {
    font-family: 'Century Gothic', sans-serif;
}
/* Loading dots animation */
.loading-dots {
    width: 120px;
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 50px;
    background-color: #e0e0e0;
    border-radius: 18px;
    padding: 10px 15px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background-color: #666;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Option Cards Container */
.options-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 650px; /* Prevents options from spreading too wide on very large screens */
}

.options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.option-card {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 30px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    flex: 1 1 calc(50% - 15px); /* Allows two cards per row with gap */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    min-width: 150px;
    max-width: 400px; /* Ensures individual cards don't get too large */
}

.option-card:hover {
    background-color: #e6e6e6;
}


.option-card .icon-gradient {
    position: absolute;
    left: 0;
    /* top: 30px; */
    width: 22%;
    height: 57%;
    background: linear-gradient(to right, #BAD025, #BAD025);
    border-radius: 0px 120% 0px 0px;
    z-index: 1;
    BOTTOM: 0;
}

.option-card .option-icon {
    width: 40px;
    height: auto;
    z-index: 2;
    object-fit: contain;
    display: block;
}

.option-card span {
    font-weight: bold;
    color: #333;
    z-index: 2;
}

.option-card .arrow {
    margin-left: auto;
    font-size: 1.2em;
    color: #999;
    z-index: 2;
    background-color: rgb(224, 220, 220);
    border-radius: 50%;
    width: 30px; /* Increased size for better visual balance */
    height: 30px; /* Increased size for better visual balance */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.other-options-button {
    background-color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 25px;
    padding: 10px 60px;
    cursor: pointer;
    font-size: 1em;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: background-color 0.2s ease-in-out;
    margin-top: 20px;
    width: fit-content;
    display: none;
    pointer-events: none;
}

.other-options-button:hover {
    background-color: #e6e6e6;
}

.other-options-button .arrow-down {
    font-size: 0.8em;
    transition: transform 0.3s ease-in-out;
}

.other-options-button.expanded .arrow-down {
    transform: rotate(180deg);
}

.form-elements-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

.form-elements-container input[type="text"],
.form-elements-container input[type="number"],
.form-elements-container input[type="tel"],
.form-elements-container input[type="email"],
.form-elements-container input,
.form-elements-container select {
    width: calc(100% - 40px); /* Accounts for padding */
    max-width: 450px; /* Prevents inputs from becoming too wide */
    padding: 12px 20px;
    padding-right: 45px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 1em;
    text-indent: 15px;
    box-sizing: border-box;
    text-align: center;
    
}

.form-elements-container input::placeholder {
    text-align: center;
    color: #999;
}

.form-elements-container input[type="email"] {
    text-align: center;
}

#yearOfManufacture,
#carCategory,
#carMake,
#homeSubCategory
 { /* Targeting this specific select by its ID */
    padding-right: 30px; /* Adjust right padding to make space for the custom arrow */
    text-align: center; /* Align text to the left within this select */
    text-indent: 15px; /* Indent the text slightly from the left edge */

    /* Hide the default browser arrow for THIS select only */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* Add your custom SVG arrow as a background image for THIS select only */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="16" height="16"><path fill="%23000" d="M256 294.1L96.5 134.6 66.6 164.5 256 353.9l189.4-189.4-29.9-29.9z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 40px center; /* Position the custom arrow 15px from the right edge */
    background-size: 15px; /* Size of the custom arrow */
}

#carModel  { 
    padding-right: 30px; 
    text-align: center; 
    text-indent: 15px; 

   
    
    -moz-appearance: none;
    appearance: none;

    /* Add your custom SVG arrow as a background image for THIS select only */
    
    background-repeat: no-repeat;
    background-position: right 40px center; 
    background-size: 15px;
}

.form-elements-container button.next-button {
    background-color: #27367e;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 40px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out;
    margin-top: 10px;
    width: 240px;
}

.form-elements-container button.next-button:hover {
    background-color: #d0d0d0;
}

.quote-display-container {
    background-color: #f0f0f08f; /* Light gray background */
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.premium-options-row {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.premium-option {
    padding: 10px 20px;
    margin: 20px 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    background-color: #eee;
    color: #555;    
    font-weight: bold;
    transition: all 0.3s ease;
}

.premium-option.active {
    background-color: #BAD025; 
    color: white;
    border-color: #008ee6;
}

.premium-option:hover:not(.active) {
    background-color: #e0e0e0;
}

.premium-value-display {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    font-size: 2em; /* Adjust as needed */
    font-weight: bold;
    margin-bottom: 20px;
}

.quote-message p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
    margin-bottom: 20px;
}

.quote-buttons-row {
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between buttons */
    margin-top: 20px;
}

.quote-action-button {
    background-color: #333; /* Dark color for buttons */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.quote-action-button:hover {
    background-color: #555;
}


.form-elements-container .next-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    margin-top: 20px;
}

.form-elements-container .next-button:hover {
    background-color: #efefef;
}

/* Style for the container of each row of inputs */
.form-elements-container .input-row {
    display: flex; 
    gap: 20px; 
    width: 100%; 
    justify-content: start; 
    flex-wrap: wrap; 
    max-width: 450px; 
}

/* Adjust the styling for input elements *within* these new rows */
.form-elements-container .input-row input {
    flex: 1 1 calc(50% - 10px); 
    max-width: 215px; 
    box-sizing: border-box;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 15px;
    font-size: 1em;
    text-align: center;
}

@media (max-width: 768px) {
    .options-row {
    flex-direction: row;
    width: auto !important;
    }

    .option-card {
        flex:unset !important;
        min-width: unset !important;
        max-width: unset !important;
    }
}