#leads-in8-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    overflow: hidden;
    transform: translateY(calc(100% + 20px));
    transition: transform 0.3s ease;
}

#leads-in8-widget.open {
    transform: translateY(0);
}

#leads-in8-header {
    background: #6B46C1;
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 26px;
}

#leads-in8-header-content {
    order: 2;
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

#leads-in8-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    order: 2;
    padding: 10px;
    flex-shrink: 0;
}

#leads-in8-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    order: 1;
    word-break: break-word;
    line-height: 1.3;
}

#leads-in8-close {
    background: transparent;
    border: 2px solid rgba(255, 255, 255);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: border-color 0.2s;
    order: 1;
    flex-shrink: 0;
}

#leads-in8-close:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

#leads-in8-form {
    padding: 30px 25px;
}

.leads-in8-field {
    margin-bottom: 20px;
}

.leads-in8-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.leads-in8-field input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: transparent;
    outline: none;
}

.leads-in8-field input::placeholder {
    color: #999;
}

#leads-in8-submit {
    width: 100%;
    padding: 15px;
    background: #25D366;
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

#leads-in8-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}


#leads-in8-trigger svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

#leads-in8-trigger.hidden {
    display: none;
}

.leads-in8-error {
    border-color: #ff4444 !important;
}

.leads-in8-error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
}

.leads-in8-color-preview-box {
    width: 30px;
    height: 30px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-top: 8px;
    display: inline-block;
}

@media (max-width: 480px) {
    #leads-in8-widget {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }
    
    #leads-in8-trigger {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
}

