.itpanda-lead-fab {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 99990;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.itpanda-lead-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(39, 174, 96, 0.55);
}

.itpanda-lead-fab svg {
    width: 28px;
    height: 28px;
}

.itpanda-lead-fab::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(39, 174, 96, 0.45);
    animation: itpandaLeadPulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes itpandaLeadPulse {
    0% { transform: scale(0.92); opacity: 0.8; }
    100% { transform: scale(1.35); opacity: 0; }
}

.itpanda-lead-overlay {
    position: fixed;
    inset: 0;
    z-index: 99991;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 16px;
}

.itpanda-lead-overlay.is-open {
    display: flex;
}

.itpanda-lead-panel {
    width: min(360px, calc(100vw - 32px));
    background: #fff;
    border-radius: 18px;
    padding: 22px 20px 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    position: relative;
    animation: itpandaLeadSlide 0.28s ease;
}

@keyframes itpandaLeadSlide {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.itpanda-lead-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.itpanda-lead-panel h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #0f172a;
}

.itpanda-lead-panel p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.45;
}

.itpanda-lead-field {
    margin-bottom: 12px;
}

.itpanda-lead-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #334155;
    font-weight: 600;
}

.itpanda-lead-field input,
.itpanda-lead-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.itpanda-lead-phone-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.itpanda-lead-phone-wrap:focus-within {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.12);
}

.itpanda-lead-phone-prefix {
    display: flex;
    align-items: center;
    padding: 11px 10px 11px 12px;
    background: #e8f5ec;
    color: #1e8449;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-right: 1px solid #c8e6d0;
    user-select: none;
    flex-shrink: 0;
    cursor: default;
}

.itpanda-lead-phone-wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 0;
    padding: 11px 12px;
    background: transparent;
}

.itpanda-lead-phone-wrap input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

.itpanda-lead-field input:focus,
.itpanda-lead-field textarea:focus {
    outline: none;
    border-color: #27ae60;
}

.itpanda-lead-field textarea {
    min-height: 88px;
    resize: vertical;
}

.itpanda-lead-submit {
    width: 100%;
    margin-top: 4px;
    border: none;
    border-radius: 10px;
    padding: 13px 16px;
    background: #27ae60;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.itpanda-lead-submit:hover:not(:disabled) {
    background: #219653;
}

.itpanda-lead-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.itpanda-lead-policy {
    margin: 10px 0 0;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
    text-align: center;
}

.itpanda-lead-success {
    text-align: center;
    padding: 12px 0 4px;
}

.itpanda-lead-success-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(39, 174, 96, 0.12);
    color: #27ae60;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

@media (max-width: 480px) {
    .itpanda-lead-fab {
        left: 14px;
        bottom: 14px;
        width: 54px;
        height: 54px;
    }

    .itpanda-lead-overlay {
        align-items: center;
        justify-content: center;
    }
}
