#page {
    background-color: #F3F3F3;
}
/* Widget Flow Container Styles */
.ai-widget-flow-container {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #333;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.ai-widget-flow-wrapper {
    background-color: #fff;
    border-radius: 20px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); */
    padding: 30px;
    margin: 120px 0 120px; /* Increased top margin to account for navbar */
    position: relative; /* Added for the line positioning */
    border: 1px solid #DDDDDD;
}

/* Line below steps - Adjusted to match Figma */
.ai-widget-steps::after {
    content: '';
    display: block;
    width: 350px; /* Match the width of the steps container */
    height: 1px;
    background-color: #e0e0e0;
    position: absolute;
    bottom: -30px; /* Position below the steps */
    left: 0;
}

/* Steps indicator */
.ai-widget-steps {
    display: flex;
    align-items: center;
    margin-bottom: 55px;
    width: 350px;
    margin-left: 0; /* Ensure no left margin is pushing it */
    justify-content: flex-start; /* Align steps to the left */

    position: relative; /* Added for the line positioning */
    z-index: 1; /* So steps appear above the line */
}

.ai-widget-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-widget-step.ai-widget-active {
    background-color: #8855dd;
}

.ai-widget-step.ai-widget-completed {
    background-color: #8855dd;
}

.ai-widget-step-number {
    font-weight: 600;
    font-size: 14px;
}

.ai-widget-step.ai-widget-active .ai-widget-step-number,
.ai-widget-step.ai-widget-completed .ai-widget-step-number {
    color: white;
}

.ai-widget-step-line {
    flex-grow: 1;
    height: 2px;
    background-color: #e0e0e0;
    margin: 0 10px;
    max-width: 100px;
}

.ai-widget-step.ai-widget-completed + .ai-widget-step-line {
    background-color: #8855dd;
}

/* Content wrapper */
.ai-widget-content-wrapper {
    display: flex;
    gap: 30px;
}

.ai-widget-left-content {
    flex: 1;
    max-width: 50%; /* Changed to make it take half the space */
    padding-top: 0; /* Removed top padding as steps are now within this container */
}

.ai-widget-right-content {
    flex: 1;
    max-width: 50%; /* Changed to make it take half the space */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
}

.ai-widget-preview-image {
    max-width: 100%; /* Made the image smaller */
    height: auto;
    border-radius: 20px;
}

/* Step content */
.ai-widget-step-content {
    display: none;
}

.ai-widget-step-content.ai-widget-active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Logo */
.ai-widget-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.ai-widget-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #f8f7fe;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    overflow: hidden;
}

.ai-widget-accessibility-icon {
    width: 40px;
    height: 40px;
}

.ai-widget-logo-text {
    display: flex;
    flex-direction: column;
}

.ai-widget-logo-text span:first-child {
    font-weight: 600;
    font-size: 16px;
    color: #3B3F44;
}

.ai-widget-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: -4px;
}

/* Content */
.ai-widget-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #3B3F44;
}

.ai-widget-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 50px;
}

/* Form elements */
.ai-widget-form {
    margin-bottom: 25px;
}

.ai-widget-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.ai-widget-form-group {
    flex: 1;
}

.ai-widget-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}

.ai-widget-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.2s ease;
}

.ai-widget-input:focus {
    outline: none;
    border-color: #8855dd;
}

/* Form validation styles */
.ai-widget-input.error {
    border-color: #e74c3c;
}

.ai-widget-error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px; /* Prevent layout shift when error appears */
}

/* Accessibility focus styles */
.ai-widget-input:focus-visible,
.ai-widget-button:focus-visible {
    outline: 2px solid #8855dd;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(136, 85, 221, 0.2);
}

.ai-widget-help-text {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

/* Buttons */
.ai-widget-button {
    width: 100%;
    /* padding: 12px; */
    padding: 8px;
    margin-bottom: 15px;
    /* border-radius: 5px; */
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.ai-widget-primary-button {
    background-color: #8855dd;
    color: white;
}

.ai-widget-primary-button:hover:not(:disabled) {
    background-color: #7744cc;
    color: white !important;
}

.ai-widget-primary-button:disabled {
    background-color: #c4b5e0;
    cursor: not-allowed;
}

.ai-widget-secondary-button {
    background-color: transparent;
    color: #555;

}

.ai-widget-secondary-button:hover {
    background-color: #f5f5f5;
}

/* Checkbox for terms */
.ai-widget-checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    margin-top: 100px;
}

.ai-widget-checkbox {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #8855dd;
}

.ai-widget-checkbox-label {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.ai-widget-link {
    color: #8855dd;
    text-decoration: none;
}

.ai-widget-link:hover {
    text-decoration: underline;
}

/* Progress bar for loading screen */
.ai-widget-progress-bar {
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    margin: 15px 0 25px;
    overflow: hidden;
    position: relative;
}

.ai-widget-progress-indicator {
    height: 100%;
    background-color: #8855dd;
    border-radius: 3px;
    width: 30%;
    position: absolute;
    animation: progressAnimation 2s infinite ease-in-out;
}

@keyframes progressAnimation {
    0% {
        left: -30%;
    }
    100% {
        left: 100%;
    }
}

.ai-widget-loading-message {
    font-size: 15px;
    color: #777;
    text-align: center;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.ai-desc-to-laod {
    margin-bottom: 120px;
}
@media (max-width: 768px) {
    .ai-widget-content-wrapper {
        flex-direction: column;
    }
    .ai-widget-steps {
        width: 298px;
    }
    .ai-widget-left-content {
        max-width: 100%;
    }
    
    .ai-widget-right-content {
        margin-top: 20px;
        max-width: 100%;
        width: 100%;
        padding: 0;
        border-radius: 0;
    }
    
    .ai-widget-preview-image {
        max-width: 100%;
        width: 100%;
        border-radius: 10px;
        /* content: url('../images/get-free-widget-flow-mobile.png');  */
    }
    
    .ai-widget-steps::after {
        display: none; /* Hide the line on mobile */
    }
}

@media (max-width: 562px) {
    .ai-widget-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .ai-widget-form-group {
        width: 100%;
    }
    
    .ai-widget-description {
        margin-bottom: 30px; /* Reduce margin for smaller screens */
    }
    
    .ai-widget-title {
        font-size: 22px; /* Slightly smaller title for better fit */
    }
}