:root {
    --aua-glass-bg: #ffffff; 
    --aua-glass-border: rgba(0, 0, 0, 0.08); 
    --aua-glass-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.03), 
        0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --aua-blur: blur(0px); 
    --aua-primary: #007AFF;
    --aua-primary-dark: #0062cc;
    --aua-text: #1d1d1f;
    --aua-text-light: #6e6e73;
    --aua-radius: 24px;
}

#aua-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#aua-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--aua-primary);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#aua-trigger:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 122, 255, 0.4);
}

#aua-trigger svg {
    transition: all 0.3s ease;
}

#aua-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 340px;
    background: var(--aua-glass-bg);
    border: 1px solid var(--aua-glass-border);
    box-shadow: var(--aua-glass-shadow);
    border-radius: var(--aua-radius);
    overflow: hidden;
    opacity: 1;
    transform: scale(1) translateY(0);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

#aua-chat-window.aua-hidden {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
    visibility: hidden;
}

.aua-lottie-header {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #ffffff 100%);
}

.aua-lottie-header dotlottie-wc {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transform: scale(1.1);
}

#aua-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    color: var(--aua-text);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

#aua-close:hover {
    background: rgba(0, 0, 0, 0.12);
}

.aua-body {
    padding: 0 24px 24px 24px;
    position: relative;
    z-index: 2;
    background: var(--aua-glass-bg); 
}

.aua-intro {
    margin-bottom: 20px;
    text-align: center;
}

.aua-intro h4 {
    margin: 0 0 6px 0;
    font-size: 18px;
    color: var(--aua-text);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.aua-intro p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--aua-text-light);
}

.aua-field {
    margin-bottom: 14px;
}

.aua-field input[type="text"],
.aua-field input[type="email"],
.aua-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: #f5f5f7; 
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    color: var(--aua-text);
    box-sizing: border-box;
    transition: all 0.2s;
    font-family: inherit;
    resize: none;
}

.aua-field input:focus,
.aua-field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--aua-primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.aua-field input::placeholder,
.aua-field textarea::placeholder {
    color: #a1a1a6;
}

.aua-file-label {
    display: block;
    font-size: 13px;
    color: var(--aua-text-light);
    cursor: pointer;
    margin-top: 5px;
}

.aua-file-text {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

input[type="file"] {
    font-size: 12px;
    color: var(--aua-text-light);
}

#aua-submit-btn {
    width: 100%;
    background: var(--aua-primary);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    margin-top: 12px;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

#aua-submit-btn:hover {
    background: var(--aua-primary-dark);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.35);
}

#aua-submit-btn:active {
    transform: scale(0.98);
}

#aua-submit-btn:disabled {
    background: #d1d1d6;
    color: #8e8e93;
    box-shadow: none;
    cursor: not-allowed;
}

#aua-status {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    min-height: 20px;
    font-weight: 500;
}

.aua-success { color: #34c759; }
.aua-error { color: #ff3b30; }

@media (max-width: 480px) {
    #aua-wrapper {
        bottom: 30px; 
        right: 16px;
        left: 16px;
        width: auto;
        align-items: flex-end;
    }

    #aua-trigger {
        margin-left: auto;
        padding: 10px 18px;
        font-size: 13px;
        gap: 8px;
        box-shadow: 0 4px 15px rgba(0, 122, 255, 0.25); 
    }

    #aua-trigger svg {
        width: 18px;
        height: 18px;
    }

    #aua-chat-window {
        width: 100%; 
        right: auto;
        left: 0;
        bottom: 65px; 
    }

    .aua-lottie-header {
        height: 130px; 
    }

    .aua-body {
        padding: 0 20px 20px 20px;
    }

    .aua-field input[type="text"],
    .aua-field input[type="email"],
    .aua-field textarea {
        padding: 10px 14px; 
    }
}