/* Universal Popup Styles - Works with all brand pages */

.universal-popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.universal-popup-container[style*="flex"] {
    display: flex !important;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
    z-index: 10001;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10002;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #333;
}

.popup-body {
    padding: 40px 30px 30px;
}

/* Step 1 Styles */
.step-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.popup-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
}

.lets-start-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 20px;
    transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.lets-start-btn:hover {
    background: #174ea6;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

.lets-start-btn.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #1a73e8;
}

.lets-start-btn.btn-disabled:hover {
    background: #1a73e8;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.step-description {
    text-align: center;
    color: #666;
    font-size: 1em;
    margin-bottom: 40px;
}

.printer-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.printer-icon {
    font-size: 80px;
    filter: grayscale(0.3);
}

.back-printer {
    opacity: 0.4;
    transform: scale(1.2);
}

.front-printer {
    opacity: 1;
}

/* Step 2 Styles */
.step-question {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.connection-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.connection-option {
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.2s;
}

.connection-option:hover {
    border-color: #1a73e8;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.connection-icon {
    font-size: 40px;
    margin-bottom: 15px;
    text-align: center;
}

.connection-option p {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.connection-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.connection-btn:hover {
    background: #174ea6;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

/* Loading Step Styles */
.loading-container {
    text-align: center;
    padding: 20px 0;
}

.loading-icon {
    margin: 0 auto 30px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e8eaed;
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #202124;
    margin-bottom: 10px;
}

.loading-description {
    font-size: 1em;
    color: #5f6368;
    margin-bottom: 30px;
}

.progress-bar-container {
    position: relative;
    width: 100%;
    height: 32px;
    background: #e8eaed;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8 0%, #4285f4 100%);
    border-radius: 16px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.95em;
    font-weight: 600;
    color: #202124;
    z-index: 2;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.loading-step.active {
    opacity: 1;
    border-color: #dadce0;
}

.loading-step.completed {
    background: #e8f5e9;
    border-color: #81c784;
}

.loading-step.warning {
    background: #fff3e0;
    border-color: #ffb74d;
}

.loading-step .step-check {
    font-size: 1.2em;
    min-width: 24px;
}

.loading-step span:last-child {
    font-size: 0.95em;
    color: #202124;
    font-weight: 500;
}

/* Step 3 Styles */
.verify-text {
    color: #666;
    margin-bottom: 30px;
    font-size: 1em;
    text-align: center;
}

.connection-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
}

.laptop-icon, .printer-icon-large {
    font-size: 60px;
}

.connection-line {
    font-size: 30px;
    color: #0066cc;
}

.error-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.error-message h3 {
    color: #856404;
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
}

.troubleshooting-box {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.troubleshooting-item {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.troubleshooting-item p {
    color: #333;
    font-size: 1em;
}

.link-btn {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.link-btn:hover {
    text-decoration: underline;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.action-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.fix-btn {
    background: #1a73e8;
    color: white;
}

.fix-btn:hover {
    background: #174ea6;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

.assistance-btn {
    background: #f8f9fa;
    color: #202124;
    border: 1px solid #dadce0;
}

.assistance-btn:hover {
    background: #e8eaed;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
}

/* Step 4 Styles */
.welcome-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.support-ticket {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.support-ticket p {
    color: #333;
    margin-bottom: 10px;
}

.ticket-info {
    color: #666 !important;
    font-size: 0.95em;
    line-height: 1.6;
}

.support-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #5f6368;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-group input:hover {
    border-color: #b0b0b0;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #80868b;
    font-size: 0.85em;
}

.submit-btn, .chat-btn {
    width: 100%;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.submit-btn {
    background: #1a73e8;
    color: white;
}

.submit-btn:hover {
    background: #174ea6;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

.chat-btn {
    background: #f8f9fa;
    color: #202124;
    border: 1px solid #dadce0;
}

.chat-btn:hover {
    background: #e8eaed;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        max-height: 95vh;
    }

    .popup-body {
        padding: 30px 20px 20px;
    }

    .printer-icon {
        font-size: 60px;
    }

    .lets-start-btn {
        padding: 16px 40px;
        font-size: 1em;
    }

    .connection-option {
        padding: 20px 15px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .welcome-title {
        font-size: 1.5em;
    }

    .loading-title {
        font-size: 1.3em;
    }

    .loading-description {
        font-size: 0.95em;
    }

    .progress-bar-container {
        height: 28px;
    }

    .progress-percentage {
        font-size: 0.85em;
    }

    .loading-steps {
        max-width: 100%;
    }

    .loading-step {
        padding: 10px 12px;
    }

    .loading-step span:last-child {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .popup-body {
        padding: 25px 15px 15px;
    }

    .step-question {
        font-size: 1.2em;
    }

    .lets-start-btn {
        padding: 14px 35px;
        font-size: 0.95em;
    }

    .printer-icon {
        font-size: 50px;
    }

    .loading-title {
        font-size: 1.2em;
    }

    .loading-description {
        font-size: 0.9em;
    }

    .progress-bar-container {
        height: 24px;
    }

    .progress-percentage {
        font-size: 0.8em;
    }

    .spinner {
        width: 50px;
        height: 50px;
    }
}


