/* ElevenLabs Conversational AI Form Styles */
.convai-form-container {
    opacity: 0;
    transform: translatey(15%);
    position: fixed;
    z-index: 999999;
    right: 344px;
    bottom: 32px;
    max-width: 500px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    width: 400px;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 8px 16px;
    background-color: #ffffff;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    transition: transform ease-out 0.2s, opacity ease-out 0.2s;
}

.convai-form-container-show {
    transform: translatey(0%);
    opacity: 1;
}

.convai-form-container form {
    display: flex;
    flex-direction: column;
    font-family: inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #323235;
    font-size: 14px;
    width: 100%;
    gap: 20px;
}

.convai-form-container form .input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.convai-form-container form label {
    display: block;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 20px;
    font-size: 14px;
}

.convai-form-container form input, 
.convai-form-container form textarea, 
.convai-form-container form select {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    outline: none;
    width: 100%;
    box-shadow: none;
    line-height: 24px;
    margin-bottom: 0;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.convai-form-container form input, 
.convai-form-container form select {
    height: 40px;
    padding: 0 12px;
}

.convai-form-container form textarea {
    padding: 10px 12px;
    min-height: 80px;
    resize: vertical;
}

.convai-form-container form input:hover,
.convai-form-container form textarea:hover,
.convai-form-container form select:hover {
    border-color: rgba(0, 0, 0, 0.24);
}

.convai-form-container form input:focus,
.convai-form-container form textarea:focus,
.convai-form-container form select:focus {
    border-color: #5436DA;
    box-shadow: 0 0 0 1px #5436DA;
    outline: none;
}

.convai-form-container form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.convai-form-container form .validation-message {
    color: #E53935;
    font-size: 12px;
    margin-top: 4px;
    display: none;
    line-height: 1.4;
}

.convai-form-container form input.invalid,
.convai-form-container form textarea.invalid,
.convai-form-container form select.invalid {
    border-color: #E53935;
}

.convai-form-container form input.invalid:focus,
.convai-form-container form textarea.invalid:focus,
.convai-form-container form select.invalid:focus {
    border-color: #E53935;
    box-shadow: 0 0 0 1px #E53935;
}

.convai-form-container form input.invalid + .validation-message,
.convai-form-container form textarea.invalid + .validation-message,
.convai-form-container form select.invalid + .validation-message {
    display: block;
}

.convai-form-container::-webkit-scrollbar {
    width: 8px;
}

.convai-form-container::-webkit-scrollbar-track {
    background: transparent;
}

.convai-form-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.convai-form-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}
