/**
 * Cégem360 AI Chat Widget Styles
 * Modern, reszponzív chat widget design
 */

/* CSS Variables */
:root {
    --cegem360-primary: #2563eb;
    --cegem360-primary-hover: #1d4ed8;
    --cegem360-secondary: #64748b;
    --cegem360-success: #22c55e;
    --cegem360-error: #ef4444;
    --cegem360-bg: #ffffff;
    --cegem360-bg-secondary: #f8fafc;
    --cegem360-text: #1e293b;
    --cegem360-text-light: #64748b;
    --cegem360-border: #e2e8f0;
    --cegem360-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --cegem360-radius: 16px;
    --cegem360-radius-sm: 8px;
    --cegem360-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Chat Toggle Button */
.cegem360-chat-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--cegem360-primary);
    border: none;
    cursor: pointer;
    box-shadow: var(--cegem360-shadow);
    z-index: 99998;
    transition: var(--cegem360-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cegem360-chat-toggle:hover {
    background: var(--cegem360-primary-hover);
    transform: scale(1.05);
}

.cegem360-chat-toggle.left {
    right: auto;
    left: 24px;
}

.cegem360-chat-toggle svg {
    width: 28px;
    height: 28px;
    fill: white;
    transition: var(--cegem360-transition);
}

.cegem360-chat-toggle.open svg.chat-icon {
    display: none;
}

.cegem360-chat-toggle svg.close-icon {
    display: none;
}

.cegem360-chat-toggle.open svg.close-icon {
    display: block;
}

/* Notification Badge */
.cegem360-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--cegem360-error);
    color: white;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    animation: cegem360-pulse 2s infinite;
}

@keyframes cegem360-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Chat Container */
.cegem360-chat-container {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 600px;
    max-height: calc(100vh - 140px);
    background: var(--cegem360-bg);
    border-radius: var(--cegem360-radius);
    box-shadow: var(--cegem360-shadow);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--cegem360-transition);
}

.cegem360-chat-container.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.cegem360-chat-container.left {
    right: auto;
    left: 24px;
}

/* Chat Header */
.cegem360-chat-header {
    background: var(--cegem360-primary);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cegem360-chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cegem360-chat-avatar svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.cegem360-chat-header-info {
    flex: 1;
    min-width: 0;
}

.cegem360-chat-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cegem360-chat-status {
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cegem360-chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cegem360-success);
}

.cegem360-chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--cegem360-transition);
}

.cegem360-chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cegem360-chat-close svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Pre-chat Form */
.cegem360-prechat-form {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cegem360-prechat-intro {
    font-size: 14px;
    color: var(--cegem360-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.cegem360-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--cegem360-text);
    margin-bottom: 6px;
}

.cegem360-form-group label .required {
    color: var(--cegem360-error);
}

.cegem360-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--cegem360-border);
    border-radius: var(--cegem360-radius-sm);
    font-size: 14px;
    color: var(--cegem360-text);
    transition: var(--cegem360-transition);
    box-sizing: border-box;
}

.cegem360-form-group input:focus {
    outline: none;
    border-color: var(--cegem360-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cegem360-form-group input.error {
    border-color: var(--cegem360-error);
}

.cegem360-form-error {
    font-size: 12px;
    color: var(--cegem360-error);
    margin-top: 4px;
    display: none;
}

.cegem360-form-group input.error + .cegem360-form-error {
    display: block;
}

.cegem360-start-chat-btn {
    width: 100%;
    padding: 14px;
    background: var(--cegem360-primary);
    color: white;
    border: none;
    border-radius: var(--cegem360-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--cegem360-transition);
    margin-top: auto;
}

.cegem360-start-chat-btn:hover {
    background: var(--cegem360-primary-hover);
}

.cegem360-start-chat-btn:disabled {
    background: var(--cegem360-secondary);
    cursor: not-allowed;
}

/* Messages Area */
.cegem360-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--cegem360-bg-secondary);
}

.cegem360-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.cegem360-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.cegem360-chat-messages::-webkit-scrollbar-thumb {
    background: var(--cegem360-border);
    border-radius: 3px;
}

/* Message Bubbles */
.cegem360-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: cegem360-slideIn 0.3s ease;
}

@keyframes cegem360-slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cegem360-message.user {
    align-self: flex-end;
}

.cegem360-message.assistant {
    align-self: flex-start;
}

.cegem360-message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.cegem360-message.user .cegem360-message-content {
    background: var(--cegem360-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.cegem360-message.assistant .cegem360-message-content {
    background: var(--cegem360-bg);
    color: var(--cegem360-text);
    border: 1px solid var(--cegem360-border);
    border-bottom-left-radius: 4px;
}

.cegem360-message-time {
    font-size: 11px;
    color: var(--cegem360-text-light);
    margin-top: 4px;
    padding: 0 4px;
}

.cegem360-message.user .cegem360-message-time {
    text-align: right;
}

/* Typing Indicator */
.cegem360-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: var(--cegem360-bg);
    border: 1px solid var(--cegem360-border);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 80px;
}

.cegem360-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cegem360-secondary);
    animation: cegem360-typing 1.4s infinite;
}

.cegem360-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.cegem360-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes cegem360-typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Input Area */
.cegem360-chat-input-area {
    padding: 16px;
    background: var(--cegem360-bg);
    border-top: 1px solid var(--cegem360-border);
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.cegem360-chat-input-wrapper {
    flex: 1;
    position: relative;
}

.cegem360-chat-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--cegem360-border);
    border-radius: 24px;
    font-size: 14px;
    color: var(--cegem360-text);
    resize: none;
    max-height: 120px;
    line-height: 1.4;
    transition: var(--cegem360-transition);
    box-sizing: border-box;
    font-family: inherit;
}

.cegem360-chat-input:focus {
    outline: none;
    border-color: var(--cegem360-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cegem360-chat-input::placeholder {
    color: var(--cegem360-text-light);
}

.cegem360-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cegem360-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--cegem360-transition);
    flex-shrink: 0;
}

.cegem360-send-btn:hover {
    background: var(--cegem360-primary-hover);
    transform: scale(1.05);
}

.cegem360-send-btn:disabled {
    background: var(--cegem360-secondary);
    cursor: not-allowed;
    transform: none;
}

.cegem360-send-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Welcome Message */
.cegem360-welcome-message {
    text-align: center;
    padding: 20px;
}

.cegem360-welcome-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--cegem360-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cegem360-welcome-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.cegem360-welcome-text {
    font-size: 14px;
    color: var(--cegem360-text);
    line-height: 1.6;
}

/* Error State */
.cegem360-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: var(--cegem360-radius-sm);
    font-size: 13px;
    text-align: center;
    margin: 16px;
}

.cegem360-retry-btn {
    background: var(--cegem360-error);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--cegem360-radius-sm);
    font-size: 13px;
    cursor: pointer;
    margin-top: 8px;
    transition: var(--cegem360-transition);
}

.cegem360-retry-btn:hover {
    background: #dc2626;
}

/* Powered By */
.cegem360-powered-by {
    text-align: center;
    padding: 8px;
    font-size: 11px;
    color: var(--cegem360-text-light);
    background: var(--cegem360-bg-secondary);
    border-top: 1px solid var(--cegem360-border);
}

.cegem360-powered-by a {
    color: var(--cegem360-primary);
    text-decoration: none;
}

.cegem360-powered-by a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .cegem360-chat-container {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .cegem360-chat-container.left {
        left: 0;
    }
    
    .cegem360-chat-toggle {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
    
    .cegem360-chat-toggle.left {
        left: 16px;
    }
}

/* Print Styles - Hide Chat Widget */
@media print {
    .cegem360-chat-toggle,
    .cegem360-chat-container {
        display: none !important;
    }
}

/* Markdown Support in Messages */
.cegem360-message-content p {
    margin: 0 0 8px 0;
}

.cegem360-message-content p:last-child {
    margin-bottom: 0;
}

.cegem360-message-content ul,
.cegem360-message-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.cegem360-message-content li {
    margin-bottom: 4px;
}

.cegem360-message-content code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.cegem360-message-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 8px 0;
}

.cegem360-message-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.cegem360-message-content a {
    color: var(--cegem360-primary);
    text-decoration: underline;
}

.cegem360-message-content strong {
    font-weight: 600;
}

.cegem360-message-content em {
    font-style: italic;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cegem360-chat-container.dark-mode {
        --cegem360-bg: #1e293b;
        --cegem360-bg-secondary: #0f172a;
        --cegem360-text: #f1f5f9;
        --cegem360-text-light: #94a3b8;
        --cegem360-border: #334155;
    }
    
    .cegem360-chat-container.dark-mode .cegem360-message.assistant .cegem360-message-content {
        background: #334155;
        border-color: #475569;
    }
    
    .cegem360-chat-container.dark-mode .cegem360-chat-input {
        background: #0f172a;
        border-color: #334155;
        color: #f1f5f9;
    }
}

/* Accessibility */
.cegem360-chat-toggle:focus,
.cegem360-chat-close:focus,
.cegem360-send-btn:focus,
.cegem360-start-chat-btn:focus {
    outline: 2px solid var(--cegem360-primary);
    outline-offset: 2px;
}

/* ========================================
   TERMÉK KÁRTYÁK STÍLUSOK
   ======================================== */

/* Termék konténer */
.cegem360-products-container {
    width: 100%;
    padding: 8px 0;
    animation: cegem360-slideIn 0.3s ease;
}

/* Termék lista - egy oszlopban */
.cegem360-products-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px;
}

/* Termék kártya - horizontális elrendezés */
.cegem360-product-card {
    background: var(--cegem360-bg);
    border: 1px solid var(--cegem360-border);
    border-radius: var(--cegem360-radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: var(--cegem360-transition);
}

.cegem360-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Kép wrapper - fix szélesség horizontális nézethez */
.cegem360-product-image-wrapper {
    position: relative;
    width: 80px;
    min-width: 80px;
    height: 80px;
    background: var(--cegem360-bg-secondary);
    overflow: hidden;
    flex-shrink: 0;
}

.cegem360-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cegem360-product-card:hover .cegem360-product-image {
    transform: scale(1.05);
}

/* Badge */
.cegem360-product-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.cegem360-product-badge.sale {
    background: var(--cegem360-error);
    color: white;
}

/* Termék info - horizontális nézethez */
.cegem360-product-info {
    padding: 8px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.cegem360-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--cegem360-text);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cegem360-product-description {
    font-size: 11px;
    color: var(--cegem360-text-light);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Értékelés */
.cegem360-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.cegem360-stars {
    color: #fbbf24;
    letter-spacing: 1px;
}

.cegem360-review-count {
    color: var(--cegem360-text-light);
}

/* Ár */
.cegem360-product-price {
    font-size: 14px;
    font-weight: 700;
    margin-top: auto;
}

.cegem360-product-price-current {
    color: var(--cegem360-text);
}

.cegem360-product-price-old {
    color: var(--cegem360-text-light);
    text-decoration: line-through;
    font-size: 12px;
    font-weight: 400;
}

.cegem360-product-price-sale {
    color: var(--cegem360-error);
}

/* Készlet státusz */
.cegem360-product-stock {
    font-size: 11px;
    font-weight: 500;
}

.cegem360-product-stock.in-stock {
    color: var(--cegem360-success);
}

.cegem360-product-stock.out-of-stock {
    color: var(--cegem360-error);
}

/* Gombok */
.cegem360-product-actions {
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
}

.cegem360-product-link-btn,
.cegem360-add-to-cart-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--cegem360-radius-sm);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--cegem360-transition);
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.cegem360-product-link-btn {
    background: var(--cegem360-bg-secondary);
    color: var(--cegem360-text);
    border: 1px solid var(--cegem360-border);
}

.cegem360-product-link-btn:hover {
    background: var(--cegem360-border);
}

.cegem360-add-to-cart-btn {
    background: var(--cegem360-primary);
    color: white;
}

.cegem360-add-to-cart-btn:hover {
    background: var(--cegem360-primary-hover);
}

.cegem360-add-to-cart-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cegem360-add-to-cart-btn.success {
    background: var(--cegem360-success);
}

.cegem360-add-to-cart-btn.error {
    background: var(--cegem360-error);
}

/* Spinner */
.cegem360-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: cegem360-spin 0.8s linear infinite;
}

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

/* Kosár értesítés */
.cegem360-cart-notification {
    background: linear-gradient(135deg, var(--cegem360-success), #16a34a);
    color: white;
    border-radius: var(--cegem360-radius-sm);
    padding: 12px;
    margin-top: 8px;
    animation: cegem360-slideIn 0.3s ease;
}

.cegem360-cart-notification.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.cegem360-cart-notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.cegem360-cart-notification-icon {
    font-size: 18px;
}

.cegem360-cart-notification-text {
    font-size: 13px;
    font-weight: 500;
}

.cegem360-cart-notification-actions {
    display: flex;
    gap: 8px;
}

.cegem360-cart-link,
.cegem360-checkout-link {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--cegem360-radius-sm);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: var(--cegem360-transition);
}

.cegem360-cart-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.cegem360-cart-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cegem360-checkout-link {
    background: white;
    color: var(--cegem360-success);
}

.cegem360-checkout-link:hover {
    background: #f0fdf4;
}

/* ===================================
   Kapcsolatfelvételi űrlap a beszélgetés végén
   =================================== */

.cegem360-contact-form-end {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    border-radius: var(--cegem360-radius-sm);
    padding: 16px;
    margin-top: 12px;
    animation: cegem360-slideIn 0.3s ease;
}

.cegem360-contact-form-intro {
    margin-bottom: 16px;
}

.cegem360-contact-form-intro strong {
    color: #166534;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.cegem360-contact-form-intro p {
    color: #15803d;
    font-size: 13px;
    margin: 0;
}

.cegem360-contact-form-end .cegem360-form-group {
    margin-bottom: 12px;
}

.cegem360-contact-form-end .cegem360-form-group:last-of-type {
    margin-bottom: 16px;
}

.cegem360-contact-form-end label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #166534;
    margin-bottom: 4px;
}

.cegem360-contact-form-end label .required {
    color: var(--cegem360-error);
}

.cegem360-contact-form-end input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #86efac;
    border-radius: var(--cegem360-radius-sm);
    font-size: 14px;
    background: white;
    color: var(--cegem360-text);
    transition: var(--cegem360-transition);
    box-sizing: border-box;
}

.cegem360-contact-form-end input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.cegem360-contact-form-end input.error {
    border-color: var(--cegem360-error);
    background: #fef2f2;
}

.cegem360-submit-contact-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: var(--cegem360-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--cegem360-transition);
}

.cegem360-submit-contact-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
}

.cegem360-submit-contact-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Contact form close button */
.cegem360-contact-form-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: 1px solid #86efac;
    background: white;
    color: #166534;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--cegem360-transition);
    line-height: 1;
    padding: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cegem360-contact-form-close:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
    transform: scale(1.1);
}

.cegem360-contact-form-end {
    position: relative;
    padding-top: 20px; /* Hely a bezáró gombnak */
}

/* Contact form buttons container */
.cegem360-contact-form-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Continue chat button */
.cegem360-continue-chat-btn {
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: var(--cegem360-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--cegem360-transition);
}

.cegem360-continue-chat-btn:hover {
    background: rgba(22, 101, 52, 0.05);
    border-color: #22c55e;
}

/* Sikeres kapcsolatfelvétel visszajelzés */
.cegem360-contact-form-success {
    text-align: center;
    padding: 20px;
}

.cegem360-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    font-size: 24px;
    margin-bottom: 12px;
}

.cegem360-contact-form-success strong {
    display: block;
    color: #166534;
    font-size: 16px;
    margin-bottom: 6px;
}

.cegem360-contact-form-success p {
    color: #15803d;
    font-size: 13px;
    margin: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cegem360-chat-container,
    .cegem360-chat-toggle,
    .cegem360-message,
    .cegem360-typing-dot,
    .cegem360-chat-badge {
        animation: none;
        transition: none;
    }
}
