body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.chat-container {
    width: 100%;
    margin: 0;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    display: block; /* Always show the chat container */
    z-index: 999;
}
.chat-header {
    background-color: #ff7700;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-weight: bold;
}
.chat-messages {
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    background-color: #f9f9f9;
}
.chat-input {
    display: flex;
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #eee;
}
.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    outline: none;
    font-size: 14px;
}
.chat-input input:focus {
    border-color: #ff7700;
}
.chat-input button {
    padding: 12px 20px;
    border: none;
    background-color: #ff7700;
    color: #fff;
    border-radius: 30px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.chat-input button:hover {
    background-color: #e56a00;
}
.chat-input button i {
    font-size: 16px;
}
.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}
.message.user {
    align-items: flex-end;
}
.message.bot {
    align-items: flex-start;
}
.message p {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.message.user p {
    background-color: #ff7700;
    color: #fff;
    border-bottom-right-radius: 5px;
}
.message.bot p {
    background-color: #fff;
    color: #333;
    border-bottom-left-radius: 5px;
}
.options {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 10px 0;
    max-width: 90%;
}
.options button {
    padding: 10px 15px;
    border: 1px solid #ff7700;
    background-color: #fff;
    color: #ff7700;
    border-radius: 18px;
    margin: 5px 5px 5px 0;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.options button:hover {
    background-color: #ff7700;
    color: #fff;
}
.faq-bubbles {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    margin-bottom: 10px;
}
.faq-bubble {
    background-color: #fff;
    color: #ff7700;
    border: 1px solid #ff7700;
    padding: 8px 15px;
    border-radius: 18px;
    margin: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.faq-bubble:hover {
    background-color: #ff7700;
    color: #fff;
}
.typing {
    display: flex;
    align-items: center;
    margin-top: 5px;
    margin-left: 10px;
}
.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #aaa;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1s infinite;
}
.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes typing {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* Add styling for call button */
.options button.call-btn {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
}

.options button.call-btn:hover {
    background-color: #218838;
}

.options button.text-btn {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.options button.text-btn:hover {
    background-color: #0069d9;
}

/* Form styling inside chat */
.chat-form-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 90%;
}

.chat-form-container h3 {
    color: #ff7700;
    margin-top: 0;
    font-size: 16px;
    margin-bottom: 15px;
}

.form-field {
    margin-bottom: 10px;
}

.form-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
    color: #333;
    font-weight: bold;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus {
    border-color: #ff7700;
    outline: none;
    box-shadow: 0 0 3px rgba(255, 119, 0, 0.3);
}

.form-field input.invalid {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 2px;
}

.form-tabs {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.form-tab {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    border: none;
    background: none;
    position: relative;
}

.form-tab.active {
    color: #ff7700;
    font-weight: bold;
}

.form-tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff7700;
}

.form-submit-btn {
    background-color: #ff7700;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
}

.form-submit-btn:hover {
    background-color: #e56a00;
}

.hidden {
    display: none;
}

.tab-content {
    margin-top: 10px;
}

/* Add styling for image upload and display */
.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.upload-btn {
    border: 1px solid #ccc;
    color: #555;
    background-color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
}

.upload-btn-wrapper input[type=file] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.image-preview {
    margin-top: 10px;
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: none;
}

.image-upload-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
}

.upload-progress {
    width: 100%;
    background-color: #f1f1f1;
    height: 5px;
    border-radius: 3px;
    margin-top: 5px;
    display: none;
}

.upload-progress-bar {
    height: 5px;
    background-color: #ff7700;
    border-radius: 3px;
    width: 0%;
}

/* Agent contact options styling */
.agent-contact-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.agent-contact-btn {
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
}

.sms-btn {
    background-color: #007bff;
    color: white;
    border: none;
}

.call-btn {
    background-color: #28a745;
    color: white;
    border: none;
}

.contact-icon {
    margin-right: 6px;
    font-size: 16px;
}

/* Add these CSS styles to your existing styles section */
.image-preview-container {
    margin-top: 10px;
    display: none;
}

/* Form styling improvements */
.form-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
    color: #333;
    font-weight: bold;
}

.form-field label.required::after {
    content: "*";
    color: #dc3545;
    margin-left: 3px;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus {
    border-color: #ff7700;
    outline: none;
    box-shadow: 0 0 3px rgba(255, 119, 0, 0.3);
}

.form-field input.invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.form-field input.valid {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 2px;
}

/* Radio button styling */
.radio-container {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.radio-label {
    font-weight: normal;
    margin-left: 5px;
}

/* Date input styling */
input[type="datetime-local"] {
    padding: 8px;
}

/* Form section header */
.form-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #ff7700;
    margin: 20px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* File upload improvements */
.file-upload-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.file-upload-icon {
    color: #ff7700;
}

/* Prevent duplicate live agent options */
.agent-contact-options.duplicate {
    display: none;
}

.upload-status {
    color: #666;
    font-size: 12px;
    margin: 5px 0;
    padding: 5px 0;
}

.upload-status.success {
    color: #28a745;
}

.upload-status.error {
    color: #dc3545;
}

@keyframes highlight {
    0% { background-color: #fff; }
    50% { background-color: #ffe0cc; }
    100% { background-color: #fff; }
}

/* Add styles for the upload info text */
.upload-info {
    font-size: 12px;
    color: #666;
    margin: 5px 0 10px;
    font-style: italic;
}

/* Add additional styles for the option tabs */
.option-tabs {
    border-bottom: none;
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.option-tabs .form-tab {
    padding: 6px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

/* Default state for No buttons */
.option-tabs .form-tab[onclick*="'no'"] {
    background-color: #ff7700;
    color: white;
    border-color: #ff7700;
}

/* Active state for any button */
.option-tabs .form-tab.active {
    background-color: #ff7700;
    color: white;
    border-color: #ff7700;
}

/* Reset No button when Yes is active */
.option-tabs .form-tab[onclick*="'yes'"].active ~ .form-tab[onclick*="'no'"],
.option-tabs .form-tab[onclick*="'no'"].inactive {
    background-color: #f9f9f9;
    color: #333;
    border-color: #ddd;
}

.option-tabs .form-tab.active:after {
    display: none;
}

/* Chat Icon Button Styles */
.chat-icon-button {
    display: none; /* Hide the chat icon button */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .chat-container {
        width: 100%;
        margin: 0;
    }

    .chat-icon-button {
        bottom: 10px;
        right: 10px;
    }
}

/* Add iframe specific styles */
.iframe-container {
    position: fixed;
    bottom: 0;
    right: 0;
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

/* State dropdown specific styling */
#state {
    position: relative;
}

#state option {
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
}

/* Ensure dropdown opens downward */
#license-plate-tab .form-field select {
    position: relative;
}

#license-plate-tab .form-field select option {
    direction: ltr;
}

/* Force dropdown to open downward */
#state {
    transform-origin: top;
    transform: none !important;
}

.form-field select#state {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
    padding-right: 30px;
}

/* Dropdown container styling */
#state option {
    padding: 8px 12px;
}

#state:focus {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Custom dropdown positioning */
.form-field select#state {
    z-index: 1000;
    display: block;
    width: 100%;
}

.form-field select#state optgroup,
.form-field select#state option {
    max-height: 300px;
    overflow-y: auto;
    position: relative;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
}

/* Ensure dropdown list appears below */
.form-field select#state:focus + .select-dropdown {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
}

.form-field {
    position: relative;
}

/* Style for the dropdown container */
.form-field select#state {
    position: relative;
    background-color: white;
}

.form-field select#state option:checked {
    background-color: #ff7700;
    color: white;
}

/* Ensure dropdown opens below on all browsers */
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
    .form-field select#state {
        -webkit-appearance: none;
        -moz-appearance: none;
    }
}

.form-field select#state::-ms-expand {
    display: none;
}

.form-field select#state {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Force dropdown direction */
.form-field select#state {
    transform: none !important;
    top: 0 !important;
}

.form-field select#state option {
    transform: none !important;
}

/* Common vehicle fields */ 