/* WOWFIX AI Form CSS - EXACT COPY FROM DEMO */

/* Fixed Header Container */
.fixed-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #2d3748;
    flex-shrink: 0;
}

/* Progress Bar Styles */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    padding-right: 60px; /* Space for close button */
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(139, 147, 170, 0.2);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(139, 147, 170, 0.3);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #5b6edb;
    color: white;
    box-shadow: 0 0 0 4px rgba(91, 110, 219, 0.2);
}

.progress-step.completed .step-number {
    background: #10b981;
    color: white;
}

.progress-step.completed .step-number i {
    font-size: 18px;
}

.step-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    white-space: nowrap;
}

.progress-step.active .step-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.progress-step.completed .step-label {
    color: #10b981;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: rgba(139, 147, 170, 0.2);
    margin: 0 10px;
    position: relative;
}

.progress-line.completed {
    background: #10b981;
}

/* Modal overlay */
.wowfix-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.ai-form-container {
    background: #2d3748;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    position: relative;
    backdrop-filter: blur(10px);
    max-height: 90vh;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 35px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1000;
}

.close-button:hover {
    color: #FFFFFF;
    transform: rotate(90deg);
}

.form-header {
    background: transparent;
    color: white;
    padding: 20px 30px 15px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(139, 147, 170, 0.2);
    transition: all 0.3s ease;
}

/* Logo removed to save space */

.form-header.hidden {
    display: none;
}

.form-header h3,
#wowfix-ai-modal .form-header h3,
.wowfix-modal .ai-form-container .form-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #FFFFFF !important;
    margin-top: 0;
    line-height: 1.2;
}

/* Welcome subtitle */
.welcome-subtitle {
    display: block;
    color: rgba(200, 210, 230, 0.9);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 0;
    font-family: inherit;
}

/* Override any theme h3 styles */
.ai-form-container h3,
.ai-form-container .form-header h3 {
    color: #FFFFFF !important;
}

.form-header p {
    color: rgba(200, 210, 230, 0.8);
    font-size: 14px;
}

/* Local Social Proof */
.social-proof-container {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 10px 20px;
    margin: 10px 30px 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: fadeIn 0.5s ease;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.social-proof-container i {
    color: #10b981;
    font-size: 20px;
}

.social-proof-text {
    color: rgba(200, 210, 230, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.social-proof-text .highlight {
    color: #10b981;
    font-weight: 600;
}

.social-proof-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
}

.social-proof-line i {
    color: #10b981;
    font-size: 18px;
}

.social-proof-line .highlight {
    color: #10b981;
    font-weight: 600;
}

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

/* AI indicator removed - replaced with WowFix logo */

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

.chat-container {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
    background: transparent;
    min-height: 0; /* Important for flex */
}

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

.chat-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb {
    background: rgba(139, 147, 170, 0.5);
    border-radius: 3px;
}

.chat-message {
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

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

.bot-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bot-avatar {
    width: 35px;
    height: 35px;
    background: #5b6edb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.message-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Break long words */
}

.message-content p {
    color: rgba(200, 210, 230, 0.9);
    margin: 0;
}

.user-message {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.user-message .message-content {
    background: #364AC4;
    color: white;
    border-radius: 18px 0 18px 18px;
}

.input-options {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.option-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(139, 147, 170, 0.3);
    border-radius: 35px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(200, 210, 230, 0.9);
    max-width: 100%; /* Ensure buttons don't exceed container */
    word-wrap: break-word; /* Break long text in buttons */
    overflow-wrap: break-word; /* Break long text in buttons */
}

.option-btn:hover {
    border-color: rgba(139, 147, 170, 0.5);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.option-btn.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-color: transparent;
}

.option-btn .icon i {
    font-size: 24px;
}

.option-btn .label {
    font-size: 12px;
    font-weight: 600;
}

.quick-answers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.quick-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 147, 170, 0.3);
    color: rgba(200, 210, 230, 0.9);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    max-width: 100%; /* Ensure buttons don't exceed container */
    word-wrap: break-word; /* Break long text in buttons */
    overflow-wrap: break-word; /* Break long text in buttons */
}

.quick-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(139, 147, 170, 0.5);
    color: white;
    transform: scale(1.05);
}

/* Special styling for messages with only buttons */
.buttons-only-message .message-content {
    background: transparent;
    border: none;
    padding: 0;
}

.buttons-only-message .quick-answers {
    margin: 0;
}

/* Make Book Now button more prominent */
.buttons-only-message .quick-btn {
    background: #388E3C;
    border: none;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
}

.buttons-only-message .quick-btn:hover {
    background: #2E7D32;
    transform: scale(1.08);
}

/* Yes/No buttons styling */
.buttons-only-message .quick-btn:has(.ph-check),
.buttons-only-message .quick-btn:has(.ph-check-circle) {
    background: #388E3C;
    min-width: 80px;
}

.buttons-only-message .quick-btn:has(.ph-check):hover,
.buttons-only-message .quick-btn:has(.ph-check-circle):hover {
    background: #2E7D32;
}

.buttons-only-message .quick-btn:has(.ph-x),
.buttons-only-message .quick-btn:has(.ph-x-circle) {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 147, 170, 0.3);
    min-width: 80px;
}

.buttons-only-message .quick-btn:has(.ph-x):hover,
.buttons-only-message .quick-btn:has(.ph-x-circle):hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 147, 170, 0.5);
}

/* Booking buttons specific styling */
#booking-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    justify-content: flex-start !important;
}

#booking-buttons .quick-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

/* Fixed Footer Container */
.fixed-footer {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: #2d3748;
    flex-shrink: 0;
}

.input-section {
    padding: 15px 20px;
    border-top: 1px solid rgba(139, 147, 170, 0.2);
    background: transparent;
}

.text-input-wrapper {
    display: none;
    position: relative;
}

.text-input-wrapper.active {
    display: block;
}

.text-input {
    width: 100%;
    padding: 18px 55px 18px 25px; /* Отступ справа для кнопки */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 147, 170, 0.3);
    border-radius: 35px;
    color: #FFFFFF;
    font-size: 15px;
    resize: none;
    transition: all 0.3s;
    max-width: 100%; /* Ensure inputs don't exceed container */
    box-sizing: border-box; /* Include padding in width calculation */
}

.text-input::placeholder {
    color: rgba(200, 210, 230, 0.8);
}

.text-input:focus {
    outline: none;
    border-color: rgba(139, 147, 170, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* Send button styles */
.send-text-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #2563eb;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.3s ease;
}

.send-text-btn:hover {
    background: #1d4ed8;
}

.send-text-btn i {
    font-size: 18px;
}

.voice-input-wrapper {
    display: none;
    text-align: center;
}

.voice-input-wrapper.active {
    display: block;
}

.mic-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6911, #D12E29);
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.mic-button:hover {
    transform: scale(1.1);
}

/* Recording state - simple color change */
.mic-button.recording {
    background: linear-gradient(135deg, #10b981, #059669);
}

.voice-status {
    margin-top: 15px;
    color: rgba(200, 210, 230, 0.8);
    font-size: 14px;
}

#transcript {
    color: rgba(200, 210, 230, 0.9);
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(139, 147, 170, 0.2);
}

.photo-input-wrapper {
    display: none;
    text-align: center;
}

.photo-input-wrapper.active {
    display: block;
}

.photo-upload-area {
    border: 2px dashed rgba(139, 147, 170, 0.3);
    border-radius: 12px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s;
    color: rgba(200, 210, 230, 0.9);
}

.photo-upload-area p {
    color: rgba(200, 210, 230, 0.9);
    margin: 5px 0;
}

.photo-upload-area:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(139, 147, 170, 0.5);
}

.photo-preview {
    display: none;
    margin-top: 15px;
}

.photo-preview img {
    max-width: 100%;
    border-radius: 12px;
}

.analyzing {
    display: none;
    text-align: center;
    padding: 20px;
}

.analyzing p {
    color: rgba(200, 210, 230, 0.9);
    font-size: 16px;
}

.analyzing.active {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.simple-input::placeholder {
    color: rgba(200, 210, 230, 0.8) !important;
}

.submit-btn {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 35px;
    font-size: 25px;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    max-width: 100%; /* Ensure buttons don't exceed container */
    box-sizing: border-box; /* Include padding in width calculation */
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231,76,60,0.3);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: transparent;
    border-top: 1px solid rgba(139, 147, 170, 0.2);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.trust-badges.hidden {
    display: none;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(200, 210, 230, 0.8);
}

.trust-badge i {
    color: #4CAF50;
    font-size: 16px;
}

.typing-indicator {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 10px;
}

.typing-indicator.active {
    display: flex;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: rgba(139, 147, 170, 0.6);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

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

/* Conversation mode styles */
.stop-conversation-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 35px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stop-conversation-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.conversation-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 147, 170, 0.3);
    border-radius: 35px;
}

.status-icon {
    font-size: 20px;
    animation: pulse 2s infinite;
}

.status-text {
    color: rgba(200, 210, 230, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.listening-indicator {
    color: #e74c3c;
    font-weight: 600;
}

.thinking-indicator {
    color: #3498db;
    font-weight: 600;
}

/* Recording bars animation - Subtle */
.recording-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    justify-content: center;
    margin: 10px 0;
    height: 20px;
}

.recording-bars .bar {
    width: 3px;
    height: 16px;
    background: #10b981;
    border-radius: 2px;
    animation: soundWave 1.2s ease-in-out infinite;
    transform-origin: center;
    opacity: 0.8;
}

.recording-bars .bar:nth-child(1) { animation-delay: 0s; }
.recording-bars .bar:nth-child(2) { animation-delay: 0.15s; }
.recording-bars .bar:nth-child(3) { animation-delay: 0.3s; }
.recording-bars .bar:nth-child(4) { animation-delay: 0.45s; }
.recording-bars .bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes soundWave {
    0%, 100% { 
        transform: scaleY(0.5); 
        opacity: 0.6;
    }
    50% { 
        transform: scaleY(1); 
        opacity: 0.9;
    }
}

/* Upsell Chat Card Styles */
.upsell-chat-card {
    background: #2d3748;
    border-radius: 15px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #4a5568;
}

.upsell-header h3 {
    color: #e2e8f0;
    margin: 0 0 5px 0;
    font-size: 18px;
}

.upsell-header p {
    color: #a0aec0;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.upsell-pricing {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.price-option {
    flex: 1;
    background: #1a202c;
    border: 2px solid #4a5568;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-option:hover {
    border-color: #f60;
}

.price-option.selected {
    border-color: #f60;
    background: rgba(255, 102, 0, 0.1);
}

.price-option.recommended {
    border-color: #f60;
    position: relative;
}

.option-label {
    color: #e2e8f0;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 5px;
}

.option-price {
    color: #f60;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.option-save {
    color: #48bb78;
    font-size: 12px;
    font-weight: bold;
}

.option-service, .option-desc, .option-cost {
    color: #a0aec0;
    font-size: 12px;
    margin-bottom: 3px;
}

.upsell-addons {
    margin-bottom: 20px;
}

.addon-title {
    color: #e2e8f0;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.addon-title i {
    color: #f60;
}

.addon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 8px;
}

.addon-item:hover {
    background: rgba(255, 102, 0, 0.1);
}

.addon-checkbox {
    position: relative;
}

.addon-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #4a5568;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.addon-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: #f60;
    border-color: #f60;
}

.addon-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.addon-item label {
    color: #e2e8f0;
    cursor: pointer;
    font-size: 14px;
}

.upsell-actions {
    display: flex;
    gap: 10px;
}

.upsell-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upsell-btn.primary {
    background: #f60;
    color: white;
}

.upsell-btn.primary:hover {
    background: #e55a00;
}

.upsell-btn.secondary {
    background: transparent;
    color: #e2e8f0;
    border: 2px solid #4a5568;
}

.upsell-btn.secondary:hover {
    border-color: #f60;
    color: #f60;
}

.booking-confirmation {
    background: #2d3748;
    border-radius: 15px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #48bb78;
}

.booking-confirmation h3 {
    color: #48bb78;
    margin: 0 0 15px 0;
}

.selected-services {
    margin-bottom: 15px;
}

.selected-services h4 {
    color: #e2e8f0;
    margin: 0 0 10px 0;
}

.service-item {
    color: #a0aec0;
    margin-bottom: 5px;
}

.total-price {
    color: #f60;
    font-size: 18px;
    margin-bottom: 15px;
}

.confirm-booking-btn {
    background: #48bb78;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.confirm-booking-btn:hover {
    background: #38a169;
}

/* Mobile version */
@media (max-width: 768px) {
    .wowfix-modal {
        padding: 10px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    .ai-form-container {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: none;
        border-radius: 0;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    .close-button {
        top: 10px;
        right: 10px;
    }
    
    .progress-container {
        padding: 15px 20px; /* Optimized for 3 steps on mobile */
        padding-right: 55px; /* Better space for close button */
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    /* Ensure all content fits within viewport */
    .chat-container {
        overflow-x: hidden; /* Prevent horizontal scroll */
        word-wrap: break-word; /* Break long words */
    }
    
    .message-content {
        word-wrap: break-word; /* Break long words */
        overflow-wrap: break-word; /* Break long words */
        max-width: 100%; /* Ensure content doesn't exceed container */
    }
    
    /* Fix input fields */
    input[type="text"], input[type="tel"], textarea {
        max-width: 100%; /* Ensure inputs don't exceed container */
        box-sizing: border-box; /* Include padding in width calculation */
    }
    
    /* Fix buttons */
    .option-btn, .quick-btn {
        max-width: 100%; /* Ensure buttons don't exceed container */
        word-wrap: break-word; /* Break long text in buttons */
    }
}

/* Override body scroll when modal open */
body.modal-open {
    overflow: hidden;
}

/* Vision Analysis Card Styles - Chat Style */
.vision-message {
    /* Контейнер сообщения уже есть в .bot-message */
}

.vision-analysis-card {
    /* Убираем все лишнее - карточка теперь внутри .message-content */
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    color: inherit;
    animation: none;
}

/* Текст анализа */
.analysis-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: rgba(200, 210, 230, 0.9);
}

.analysis-text p {
    margin-bottom: 8px;
}

/* Детали в стиле списка */
.details-list {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.detail-label {
    color: rgba(255, 255, 255, 0.5);
}

.detail-value {
    color: rgba(255, 255, 255, 0.9);
}

/* Рекомендации */
.recommendations {
    background: rgba(94, 234, 212, 0.05);
    border: 1px solid rgba(94, 234, 212, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.recommendations-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5eead4;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recommendation-item {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recommendation-item:hover {
    color: rgba(255, 255, 255, 0.95);
}

/* Custom checkbox styles */
.recommendation-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.recommendation-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
}

.recommendation-checkbox .checkbox-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.recommendation-checkbox input[type="checkbox"]:checked ~ .checkbox-custom {
    background: #5eead4;
    border-color: #5eead4;
}

.recommendation-checkbox input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #2d3748;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.recommendation-checkbox input[type="checkbox"]:hover ~ .checkbox-custom {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Price animation */
@keyframes priceChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: #5eead4; }
    100% { transform: scale(1); }
}

.price-animating {
    animation: priceChange 0.3s ease;
}

/* Highlight recommended card on checkbox change */
.package-option.price-updating {
    animation: pulseHighlight 0.5s ease;
}

@keyframes pulseHighlight {
    0% { background: rgba(94, 234, 212, 0.05); }
    50% { background: rgba(94, 234, 212, 0.15); }
    100% { background: rgba(94, 234, 212, 0.05); }
}

/* Опции пакетов в стиле чата */
.package-options {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

/* Удаляем старые issues стили */

.package-option {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.package-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.package-option.recommended {
    border-color: #5eead4;
    background: rgba(94, 234, 212, 0.05);
}

.package-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.package-price {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.package-save {
    font-size: 12px;
    color: #5eead4;
}

/* Выделенная цена */
.price-highlight {
    background: rgba(94, 234, 212, 0.1);
    color: #5eead4;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Кнопки действий как в форме */
.action-buttons {
    display: flex;
    gap: 12px;
}

/* Удаляем лишние стили */

.btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn.primary {
    background: #5b6edb;
    border-color: #5b6edb;
    color: white;
    border-radius: 25px !important;
}

.btn.primary:hover {
    background: #4c5bc8;
}

/* Удаляем старые стили для action */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Мобильная версия для Vision карточки */
@media (max-width: 480px) {
    .package-options {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Enhanced Photo Upload Button */
.photo-upload-section {
    text-align: center;
    padding: 15px 0;
}

.enhanced-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.photo-upload-btn.enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin-top: 10px;
}

.photo-upload-btn.enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.photo-upload-btn .pulse-effect {
    font-size: 24px;
    animation: pulse 2s infinite;
}

.photo-upload-btn .main-text {
    font-size: 17px;
}

.photo-upload-btn .time-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.micro-copy {
    color: rgba(200, 210, 230, 0.8);
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.micro-copy i {
    color: #10b981;
    font-size: 16px;
}

.text-btn {
    background: none;
    border: 1px solid rgba(139, 147, 170, 0.3);
    color: rgba(200, 210, 230, 0.9);
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.text-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 147, 170, 0.5);
}

/* Phosphor Icons - убедитесь что подключены */
.ph-fill {
    font-weight: bold;
}

/* Success message styles */
.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 20px;
    animation: slideInUp 0.5s ease;
}

.success-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 10px;
}

.success-header i {
    font-size: 24px;
}

.success-message p {
    color: rgba(200, 210, 230, 0.9);
    margin-bottom: 15px;
}

.success-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(200, 210, 230, 0.9);
    font-size: 14px;
}

.detail-item i {
    color: #e74c3c;
    font-size: 18px;
    width: 20px;
}

.detail-item strong {
    color: #fff;
}

.thank-you-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    color: rgba(200, 210, 230, 0.9);
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    animation: slideInUp 0.5s ease;
}

.thank-you-message i {
    font-size: 20px;
}

.thank-you-message i.ph-fill.ph-heart {
    color: #e74c3c;
}

.thank-you-message i.ph-hand-waving {
    color: #FFA500;
}

/* Repair Summary Card Styles - Matching existing design */
.repair-summary-card {
    /* No special styling - just content */
}

.repair-summary-card h3 {
    color: rgba(200, 210, 230, 0.9);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 500;
}

.repairs-list {
    margin-bottom: 15px;
}

.repair-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(139, 147, 170, 0.2);
}

.repair-item:last-child {
    border-bottom: none;
}

.repair-number {
    color: rgba(139, 147, 170, 0.6);
    font-size: 14px;
    width: 20px;
}

.repair-details {
    flex: 1;
}

.repair-description {
    color: rgba(200, 210, 230, 0.9);
    font-size: 14px;
    margin-bottom: 2px;
}

.repair-price {
    color: rgba(200, 210, 230, 0.7);
    font-size: 14px;
}

.remove-repair {
    background: none;
    border: none;
    color: rgba(139, 147, 170, 0.5);
    padding: 5px;
    cursor: pointer;
    font-size: 16px;
}

.remove-repair:hover {
    color: rgba(239, 68, 68, 0.8);
}

.summary-total {
    padding: 15px 0;
    border-top: 1px solid rgba(139, 147, 170, 0.2);
    border-bottom: 1px solid rgba(139, 147, 170, 0.2);
    margin: 15px 0;
}

.total-label {
    color: rgba(200, 210, 230, 0.9);
    font-size: 15px;
    margin-bottom: 5px;
}

.total-amount {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 500;
}

.disclaimer {
    color: rgba(200, 210, 230, 0.6);
    font-size: 12px;
    margin-bottom: 15px;
}

.summary-actions {
    display: flex;
}

/* Mobile Upsell Styles for smaller screens */
@media (max-width: 768px) {
    .upsell-pricing {
        flex-direction: column;
        gap: 8px;
    }
    
    .price-option {
        padding: 12px;
    }
    
    .option-price {
        font-size: 20px;
    }
    
    .upsell-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .addon-item {
        padding: 8px;
    }
}
    gap: 10px;
}