.inneo-bitrix-form,
.inneo-bitrix-form * {
    box-sizing: border-box;
}

.inneo-bitrix-form {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
    width: 64px;
    font-family: "Open Sans", sans-serif;
    line-height: 1.4;
}

.inneo-launcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #25d366, #1fb856);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, visibility .2s ease;
}

.inneo-launcher:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(37, 211, 102, 0.4);
}

.inneo-launcher-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
}

.inneo-launcher-icon svg {
    width: 100%;
    height: 100%;
}

.inneo-chat-container {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(380px, calc(100vw - 24px));
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.inneo-bitrix-form.is-minimized .inneo-chat-container {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
}

.inneo-bitrix-form.is-open {
    width: min(380px, calc(100vw - 24px));
}

.inneo-bitrix-form.is-open .inneo-launcher {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.92);
}

.inneo-chat-header {
    background: linear-gradient(135deg, #00b2a9 0%, #20807b 100%);
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.inneo-chat-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
}

.inneo-chat-avatar img {
    width: 24px;
    height: 24px;
}

.inneo-chat-header-info {
    min-width: 0;
}

.inneo-chat-header-info h2,
.inneo-chat-header-info p {
    margin: 0;
}

.inneo-chat-header-info h2 {
    font-size: 18px;
    font-weight: 700;
}

.inneo-chat-header-info p {
    margin-top: 2px;
    font-size: 12px;
    opacity: 0.9;
}

.inneo-chat-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 22px;
    line-height: 1;
}

.inneo-chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.inneo-chat-messages {
    min-height: 190px;
    padding: 20px;
    background: #e6ded5;
}

.inneo-message-content {
    max-width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    color: #333;
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.inneo-form-section {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

.inneo-form-group {
    margin-bottom: 16px;
}

.inneo-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
    outline: 0;
    color: #333;
    background: #e8f5f4;
    font: inherit;
}

.inneo-form-group input:focus {
    background: #d4ede8;
    box-shadow: 0 0 0 2px rgba(24, 168, 121, 0.15);
}

.inneo-phone-group {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.inneo-phone-country {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 10px;
    background: #eef8f5;
    color: #234;
    font: inherit;
    flex: 0 0 auto;
}

.inneo-phone-input {
    flex: 1 1 auto;
}

.inneo-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.inneo-checkbox-group input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #18a879;
    flex: 0 0 auto;
}

.inneo-checkbox-group a {
    color: #157a5e;
}

.inneo-submit {
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #157a5e;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.inneo-submit:hover:not(:disabled) {
    background: #0f5c48;
}

.inneo-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.inneo-alert {
    display: none;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
}

.inneo-alert.is-visible,
.inneo-loading.is-visible {
    display: flex;
}

.inneo-alert-error {
    color: #b71c1c;
    background: #ffebee;
}

.inneo-alert-success {
    color: #1b5e20;
    background: #e8f5e9;
}

.inneo-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #666;
    font-size: 13px;
}

.inneo-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e8f5f0;
    border-top-color: #18a879;
    border-radius: 50%;
    animation: inneo-spin 1s linear infinite;
}

.inneo-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@keyframes inneo-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .inneo-bitrix-form {
        right: 16px;
        bottom: 16px;
    }

    .inneo-chat-container,
    .inneo-bitrix-form.is-open {
        width: min(360px, calc(100vw - 16px));
    }

    .inneo-chat-messages,
    .inneo-form-section {
        padding: 16px;
    }

    .inneo-message-content {
        max-width: 100%;
    }
}
