.axis-lead-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.axis-lead-modal.is-visible {
    display: flex;
}

.axis-lead-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 31, 60, 0.72);
    backdrop-filter: blur(2px);
}

.axis-lead-modal__dialog {
    position: relative;
    width: min(520px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 28px;
    box-shadow: 0 24px 60px rgba(9, 31, 60, 0.25);
    animation: axisModalIn 0.35s ease;
}

.axis-lead-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f4f6f9;
    color: #091f3c;
}

.axis-lead-modal__badge {
    display: inline-block;
    background: #ed2025;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 14px;
}

.axis-lead-modal__dialog h3 {
    font-size: 28px;
    margin-bottom: 8px;
}

.axis-lead-modal__dialog p {
    margin-bottom: 20px;
}

.axis-form-group {
    margin-bottom: 14px;
}

.axis-form-group label {
    display: block;
    color: #091f3c;
    font-weight: 500;
    margin-bottom: 6px;
}

.axis-form-group input,
.axis-form-group textarea,
.axis-enroll-input input {
    width: 100%;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: none;
    transition: 0.3s;
}

.axis-form-group input:focus,
.axis-form-group textarea:focus,
.axis-enroll-input input:focus {
    outline: none;
    border-color: #ed2025;
}

.axis-submit-btn {
    width: 100%;
    margin-top: 8px;
}

.axis-form-feedback {
    margin-top: 12px;
    font-size: 14px;
}

.axis-form-feedback.is-success {
    color: #1f8b4c;
}

.axis-form-feedback.is-error {
    color: #ed2025;
}

.axis-enroll-widget {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 10040;
}

.axis-enroll-launcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 14px 20px;
    background: #ed2025;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(237, 32, 37, 0.35);
}

.axis-enroll-launcher i {
    font-size: 18px;
}

.axis-enroll-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    width: min(400px, calc(100vw - 32px));
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(9, 31, 60, 0.22);
    display: none;
    flex-direction: column;
    max-height: min(88vh, 640px);
}

.axis-enroll-panel.is-open {
    display: flex;
    animation: axisModalIn 0.25s ease;
}

.axis-enroll-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: #091f3c;
    color: #fff;
    flex-shrink: 0;
}

.axis-enroll-header span {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.axis-enroll-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
}

.axis-enroll-messages {
    flex: 1 1 auto;
    min-height: 400px;
    max-height: min(52vh, 460px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    background: #f7f9fc;
    scroll-behavior: smooth;
}

.axis-chat-bubble {
    max-width: 85%;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.axis-chat-bubble.bot {
    background: #fff;
    color: #091f3c;
    border: 1px solid #e8edf3;
}

.axis-chat-bubble.user {
    margin-left: auto;
    background: #ed2025;
    color: #fff;
}

.axis-chat-bubble.axis-chat-bubble--appear {
    animation: axisBubbleIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes axisBubbleIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.axis-typing-row {
    max-width: 85%;
    margin-bottom: 12px;
}

.axis-typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(9, 31, 60, 0.06);
}

.axis-typing-indicator span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6b7c93;
    animation: axisTypingDot 1.05s ease-in-out infinite;
}

.axis-typing-indicator span:nth-child(1) {
    animation-delay: 0ms;
}

.axis-typing-indicator span:nth-child(2) {
    animation-delay: 0.18s;
}

.axis-typing-indicator span:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes axisTypingDot {
    0%,
    60%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

.axis-enroll-input {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e8edf3;
    background: #fff;
    flex-shrink: 0;
}

.axis-enroll-input input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.axis-enroll-service-select {
    flex: 1 1 auto;
    min-width: 0;
    display: none;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #091f3c;
    box-shadow: none;
    transition: 0.3s;
}

.axis-enroll-service-select:focus {
    outline: none;
    border-color: #ed2025;
}

.axis-enroll-input button {
    width: 44px;
    border: 0;
    border-radius: 10px;
    background: #ed2025;
    color: #fff;
}

@keyframes axisModalIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .axis-enroll-widget {
        right: 16px;
        bottom: 84px;
    }

    .axis-lead-modal__dialog {
        padding: 24px 18px 18px;
    }
}
