/**
 * Software Review Form Styles - Clean and Optimized
 * Contains all styles related to the software review form functionality
 * 
 * CLEANUP COMPLETED:
 * - Consolidated duplicate error message styles
 * - Removed duplicate form element styles
 * - Consolidated button and navigation styles
 * - Removed duplicate integration selector styles with debug borders
 * - Cleaned up mobile responsive styles
 * - File reduced from 4000+ lines to ~3300 lines
 * - Merged software-modal-header.css styles
 */

/* Simple Modal Heading Styling (merged from software-modal-header.css) */
.sm-simple-modal-heading {
    padding: 20px 20px 15px;
    text-align: center;
    border-bottom: 1px solid #e1e5e9;
    background: #fff;
}

.sm-simple-modal-heading h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

/* Responsive adjustments for modal heading */
@media (max-width: 768px) {
    .sm-simple-modal-heading {
        padding: 15px 15px 12px;
    }
    
    .sm-simple-modal-heading h2 {
        font-size: 18px;
    }
}

/* Scrollable Form Container */
.software-review-form-wrapper {
    max-height: none; /* No maximum height restriction */
    min-height: auto; /* Auto height instead of fixed viewport height */
    overflow: visible; /* Let inner content handle scrolling */
    display: flex;
    flex-direction: column;
    position: relative;
    border: none; /* Remove border as it's on the inner form */
    height: auto; /* Auto height instead of fixed viewport height */
    flex: 1; /* Expand to fill available space */
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 1000px; /* Maximum width for better readability */
    margin: 0 auto; /* Center the form */
    width: 100%; /* Full width up to max-width */
}

/* Responsive Design for Mobile Devices */
@media screen and (max-width: 768px) {
    .software-review-form-wrapper {
        max-width: 100%; /* Full width on mobile */
    }
    
    .sm-review-form-steps {
        padding: 25px 20px; /* Reduced padding on mobile */
        min-height: 500px; /* Slightly reduced minimum height */
    }
    
    /* Enhanced mobile responsiveness for user information section */
    .sm-user-info {
        padding: 10px 12px !important; /* Reduced padding on mobile */
        margin: 10px 0 !important; /* Reduced margin on mobile */
        border-radius: 6px !important; /* Slightly smaller border radius */
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .sm-user-avatar {
        margin-right: 10px !important; /* Reduced margin on mobile */
    }
    
    .sm-user-avatar img {
        width: 28px !important; /* Smaller avatar on mobile */
        height: 28px !important;
    }
    
    .sm-user-name {
        font-size: 13px !important; /* Slightly smaller font on mobile */
        line-height: 1.3 !important;
    }
    
    .sm-user-email {
        font-size: 11px !important; /* Smaller email font on mobile */
        line-height: 1.3 !important;
    }
    
    /* Brand header responsive adjustments */
    .sm-brand-header {
        padding: 20px 15px 15px 15px !important; /* Reduced padding on mobile */
        flex-wrap: wrap !important;
    }
    
    .sm-site-icon {
        width: 40px !important; /* Smaller site icon on mobile */
        height: 40px !important;
        margin-right: 10px !important;
    }
    
    .sm-brand-name {
        font-size: 20px !important; /* Smaller brand name on mobile */
        line-height: 1.2 !important;
    }
    
    .sm-review-subheading {
        font-size: 14px !important; /* Smaller subheading on mobile */
        margin: 2px 0 0 !important;
    }
    
    /* Login header responsive adjustments */
    .sm-login-header {
        padding: 12px 15px !important; /* Reduced padding on mobile */
        flex-direction: row !important; /* Keep row layout but more compact */
        align-items: center !important;
    }
    
    .sm-login-header-left {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }
    
    .sm-login-header-right {
        margin-left: 15px !important; /* Reduced margin on mobile */
        flex-shrink: 0 !important;
    }
    
    .sm-review-progress-bar {
        margin: 20px 0; /* Reduced margin on mobile */
    }
    
    .sm-review-progress-step {
        width: 32px; /* Smaller progress steps */
        height: 32px;
        font-size: 14px;
    }
    
    .sm-review-step {
        min-height: 450px; /* Reduced minimum height */
        padding: 15px 0; /* Adjusted step padding */
    }
    
    .sm-review-navigation {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 15px 0;
    }
    
    .sm-review-prev-btn,
    .sm-review-next-btn,
    .sm-review-submit-btn {
        width: 100%; /* Full width buttons on mobile */
        text-align: center;
    }
    
    /* Software display responsiveness */
    .sm-software-display {
        margin: 0 5px 20px 5px !important; /* Reduced margins on mobile */
        padding: 12px !important; /* Reduced padding on mobile */
        width: calc(100% - 10px) !important;
        gap: 12px !important;
        flex-direction: row !important;
        align-items: center !important;
    }
    
    .sm-software-logo {
        min-width: 60px !important; /* Smaller logo on mobile */
        width: 60px !important;
        height: 60px !important;
        border-radius: 6px !important;
    }
    
    .sm-software-name {
        font-size: 20px !important; /* Smaller software name on mobile */
        line-height: 1.2 !important;
        margin: 0 0 6px !important;
    }
    
    .review-form-title {
        font-size: 16px !important; /* Smaller form title on mobile */
        line-height: 1.3 !important;
        margin: 8px 0 0 0 !important;
    }
    
    /* Review header responsiveness */
    .sm-review-top-header {
        padding: 15px 15px 15px 15px !important; /* Reduced padding on mobile */
        margin-bottom: 15px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    
    .sm-review-header-left {
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
    
    .sm-review-header-center {
        padding-right: 0 !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    
    .sm-review-header-right {
        justify-content: center !important;
        margin-top: 10px !important;
    }
    
    /* Mobile spacing adjustments for form elements */
    .sm-form-group {
        margin-bottom: 20px; /* Reduced spacing on mobile */
        padding: 12px !important; /* Reduced padding on mobile */
    }
    
    .sm-review-step > .sm-form-group {
        margin-bottom: 25px; /* Reduced extra spacing on mobile */
    }
    
    .sm-survey-page-container .sm-review-input,
    .sm-survey-page-container .sm-review-textarea,
    .sm-survey-page-container .sm-review-select,
    .sm-radio-group,
    .sm-checkbox-group {
        margin-top: 6px; /* Reduced top margin on mobile */
        margin-bottom: 3px; /* Reduced bottom margin */
    }
    
    /* Mobile adjustments for radio and checkbox groups */
    .sm-radio-group.inline,
    .sm-checkbox-group.inline {
        gap: 12px; /* Reduced gap on mobile */
    }
    
    .sm-radio-group.inline .sm-radio-option,
    .sm-checkbox-group.inline .sm-checkbox-option {
        min-width: 100px; /* Smaller minimum width on mobile */
        padding: 8px 12px; /* Reduced padding */
    }
}

/* Form Steps Scrollable Container */
.sm-review-form-steps {
    max-height: none; /* No maximum height restriction */
    min-height: 600px; /* Minimum height to ensure content is visible */
    overflow-y: visible; /* No internal scrolling - let modal handle it */
    padding: 35px 30px; /* Balanced padding for better spacing */
    display: block;
    position: relative;
    border: none; /* Remove border */
    height: auto; /* Auto height instead of fixed viewport height */
    margin-bottom: 0; /* Remove bottom margin */
    z-index: 100; /* Ensure content is visible */
    flex: 1; /* Expand to fill available space */
    width: 100%; /* Ensure full width */
    max-width: 1000px; /* Match form wrapper max-width */
    margin: 0 auto; /* Center the content */
    box-sizing: border-box; /* Include padding in width calculation */
    border-radius: 0; /* No rounded corners for full width */
}

.sm-review-form-steps::-webkit-scrollbar {
    width: 16px; /* Increased width for better visibility */
    display: block;
}

.sm-review-form-steps::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    display: block;
}

.sm-review-form-steps::-webkit-scrollbar-thumb {
    background: #0073aa;
    border-radius: 10px;
    display: block;
    border: 2px solid #f1f1f1;
}

.sm-review-form-steps::-webkit-scrollbar-thumb:hover {
    background: #005177;
}

/* Survey Page Container */
.sm-survey-page-container {
    min-height: auto;
    height: auto;
    display: block;
    position: relative;
    overflow: visible;
    padding-bottom: 50px; /* Add padding at bottom */
}

/* Review Header */
.sm-review-header {
    margin-bottom: 0;
    padding: 25px 30px 20px 30px;
    border-bottom: 1px solid #eee;
    border-radius: 0; /* No rounded corners for full width */
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.sm-review-progress-step {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.sm-review-progress-step.active {
    border-color: #0073aa;
    background: #0073aa;
    color: white;
}

.sm-review-progress-step.completed {
    border-color: #4CAF50;
    background: #4CAF50;
    color: white;
}/* Enhanced spacing for form sections */
.sm-review-step > .sm-form-group {
    margin-bottom: 30px !important; /* Extra spacing for top-level form groups */
}

/* Consistent spacing for all form elements */
.sm-survey-page-container .sm-review-input,
.sm-survey-page-container .sm-review-textarea,
.sm-survey-page-container .sm-review-select,
.sm-radio-group,
.sm-checkbox-group {
    margin-top: 8px !important; /* Consistent top margin for inputs */
    margin-bottom: 5px !important; /* Small bottom margin */
}

/* Form Styling */
.sm-review-form, 
.sm-review-form-steps {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 0 !important;
    position: relative;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.sm-review-steps {
    position: relative;
    width: 100% !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
}

.sm-review-step {
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
    margin: 0;
    box-sizing: border-box;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.sm-review-step.active {
    display: block;
    opacity: 1;
    overflow: visible !important;
}

.sm-review-form {
    background: var(--sm-neutral-100) !important;
    position: relative !important;
    z-index: 2 !important;
    overflow: visible !important;
    height: auto !important;
}

/* Rating Error Message */
/* Consolidated Error Messages */
.sm-rating-error,
.sm-g2-error-message,
.sm-error-message,
.sm-review-error-message,
[class*="please-select"] {
    display: block;
    width: 100%;
    background-color: #fff8f8 !important;
    color: #d32f2f !important;
    padding: 14px 18px !important;
    border-radius: 8px !important;
    margin-top: 12px !important;
    margin-bottom: 15px !important;
    border: 1px solid #d32f2f !important;
    border-left: 4px solid #d32f2f !important;
    font-size: 15px !important;
    text-align: left !important;
    box-sizing: border-box;
    line-height: 1.5;
    position: relative !important;
    animation: errorSlideIn 0.3s ease-out;
    z-index: 1;
    clear: both;
}

.sm-rating-error:before,
.sm-g2-error-message:before,
.sm-error-message:before,
.sm-review-error-message:before,
[class*="please-select"]:before {
    content: "\26A0  "; /* Unicode warning sign with space */
    font-size: 18px;
    color: #d32f2f;
    vertical-align: middle;
    display: inline-block;
    margin-right: 6px;
    position: static;
    transform: none;
}

.sm-form-group.sm-invalid {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-color: #d32f2f !important;
    background: linear-gradient(135deg, #fff8f8, #ffffff) !important;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2), 0 4px 12px rgba(211, 47, 47, 0.1) !important;
    animation: invalidFieldPulse 0.5s ease;
}

@keyframes invalidFieldPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Ensure error messages stay within form group */
.sm-form-group .sm-g2-error-message {
    position: relative !important;
    width: calc(100% - 8px) !important;
    max-width: 100% !important;
    margin-left: 4px;
    margin-right: 4px;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Error states */
.sm-secondary-rating-item.sm-invalid {
    border: 1px solid #ff5555 !important;
    background-color: #fff8f8 !important;
    box-shadow: 0 5px 15px rgba(255, 85, 85, 0.1);
}

.sm-secondary-rating-item.sm-invalid:before {
    background: #ff5555;
}

.sm-secondary-rating-item .sm-g2-error-message {
    color: #ff5555;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #fff0f0;
    border-radius: 6px;
    font-weight: 500;
}

/* Hide error messages when rating is selected */
.sm-secondary-rating-item.sm-rating-selected .sm-g2-error-message {
    display: none !important;
}



/* Removed conflicting star display CSS - stars managed by detail-page-software-reviews.css */

.sm-star-label input[type="radio"] {
    display: none;
}

.sm-rating-value {
    margin-left: 10px;
    font-size: 16px;
    color: #666;
}



/* Form Field Styles */

/* Summary Section Styles */
.sm-step-4-summary {
    margin: 30px 0;
    padding: 0;
}

.sm-rating-summary-box {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.sm-rating-summary-title {
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.sm-rating-summary-title strong {
    font-size: 22px;
    color: #333;
}

.sm-summary-section {
    margin-bottom: 25px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sm-summary-section h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.sm-summary-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.sm-summary-section table th {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #ddd;
}

.sm-summary-section table td {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: middle;
}

/* Star rating display handled by detail-page-software-reviews.css - avoid conflicts */

.sm-summary-controls {
    text-align: center;
    margin: 15px 0;
}

.sm-toggle-summary {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.sm-toggle-summary:hover {
    background: #005177 !important;
}

.sm-toggle-summary.active {
    background: #e53935 !important;
}

/* Root Variables - Scoped to plugin container only */
.sm-survey-page-container {
    /* Primary Colors */
    --sm-primary: #0073aa;
    --sm-primary-dark: #005177;
    --sm-primary-light: #e5f0f5;
    
    /* Secondary Colors */
    --sm-secondary: #4CAF50;
    --sm-secondary-dark: #388E3C;
    --sm-secondary-light: #C8E6C9;
    
    /* Neutral Colors */
    --sm-neutral-100: #ffffff;
    --sm-neutral-200: #f8f8fc;
    --sm-neutral-300: #f0f0f0;
    --sm-neutral-400: #e5e1f2;
    --sm-neutral-500: #718096;
    --sm-neutral-600: #666666;
    --sm-neutral-700: #333333;
    --sm-neutral-800: #1a202c;
    
    /* Accent Colors */
    --sm-star-default: #dddddd;
    --sm-star-active: #ffca28;
    --sm-error: #e53935;
    --sm-success: #4CAF50;
    
    /* Shadows */
    --sm-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --sm-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --sm-shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.1);
    --sm-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.25);
    
/* Base properties */
    position: relative;
    width: 100%;
    max-width: 100% !important;
    min-height: auto;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background: var(--sm-neutral-100);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    contain: layout style;
}

/* TOC Exclusion */
.sm-survey-page-container #ez-toc-container,
.sm-survey-page-container .ez-toc-container,
.sm-survey-page-container .ez-toc-widget-container {
    display: none !important;
}

.sm-survey-page-container .ez-toc-exclude,
.sm-survey-page-container [data-ez-toc-exclude="true"] {
    display: block !important;
}

/* Plugin-scoped modal control - More specific selectors */
.sm-review-modal.active {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
}

/* Higher specificity for detail pages - override any theme conflicts */
html body .sm-review-modal.active,
body .software-detail-wrapper .sm-review-modal.active,
.sm-software-detail .sm-review-modal.active {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
}

/* Prevent body scroll when modal is open */
body.sm-modal-open {
    overflow: hidden !important;
}

/* Hide plugin-specific conflicting elements only */
.sm-survey-page-container .sm-submit-header,
.sm-survey-page-container .sm-submit-brand-header,
.sm-survey-page-container .sm-brand-header,
.sm-survey-page-container .gr-form-wrapper .sm-g2-header {
    display: none !important;
}

/* Hide plugin-specific form elements */
.sm-survey-page-container .sm-submit-brand-name,
.sm-survey-page-container .gr-form-wrapper .sm-brand-name {
    display: none !important;
}



/* Prevent any elements from escaping modal boundaries */
.sm-review-modal * {
    max-width: 100%;
    box-sizing: border-box;
}



.sm-review-modal-content {
    contain: layout style;
    position: relative;
    isolation: isolate;
}

/* Ensure login header stays within modal bounds */
.sm-login-required {
    position: relative;
    overflow: hidden;
    contain: layout style;
    width: 100%;
    max-width: 100%;
}

/* Modal Styles */
.sm-review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    box-sizing: border-box;
}


.sm-review-modal-content {
    position: relative;
    margin: 0 auto !important;
    background: var(--sm-neutral-100);
    padding: 0;
    border-radius: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 100vh !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible;
    box-shadow: none;
    display: flex !important;
    flex-direction: column !important;
    border: none;
}

/* Higher specificity for detail pages */
html body .sm-review-modal .sm-review-modal-content,
body .software-detail-wrapper .sm-review-modal .sm-review-modal-content {
    position: relative !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    border-radius: 0 !important;
}

/* Ensure form container doesn't block scrolling */
html body .sm-review-modal .software-review-form-wrapper,
html body .sm-review-modal .sm-review-form-steps,
html body .sm-review-modal .sm-survey-page-container {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

.sm-review-modal.active .sm-review-modal-content {
    transform: translateY(0);
}

/* Modal Close Button - Inside modal content - Now visible */
.sm-review-modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    font-size: 28px !important;
    cursor: pointer !important;
    color: #666 !important;
    z-index: 1000 !important;
    width: 45px !important;
    height: 45px !important;
    display: flex !important; /* Changed from none to flex to make visible */
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.sm-review-modal-close:hover {
    color: #e53935 !important;
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.2) !important;
    border-color: #e53935 !important;
}

/* Responsive Modal Styles */
@media screen and (max-width: 1200px) {
    .sm-review-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
}

@media screen and (max-width: 768px) {
    .sm-review-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .sm-review-form-steps {
        min-height: 500px !important;
        padding: 25px !important; /* Maintain good padding on mobile */
        width: 100% !important; /* Ensure full width on mobile */
    }
    
    .sm-review-step {
        min-height: 450px !important;
        padding: 15px 0 !important;
        width: 100% !important; /* Ensure full width on mobile */
    }
    

    
    /* Mobile-specific input field adjustments */
    .sm-survey-page-container .sm-review-input,
    .sm-survey-page-container .sm-review-textarea,
    .sm-survey-page-container .sm-review-select,
    .sm-g2-input {
        padding: 14px 16px !important; /* Better mobile padding */
        font-size: 16px !important; /* Prevent zoom on iOS */
        margin-bottom: 18px !important; /* Maintain spacing */
        border-radius: 8px !important; /* Slightly smaller radius on mobile */
        min-height: 44px !important; /* Ensure minimum touch target size */
        -webkit-tap-highlight-color: rgba(0, 115, 170, 0.2) !important;
    }
    
    /* Mobile textarea specific */
    .sm-survey-page-container .sm-review-textarea {
        min-height: 100px !important; /* Smaller minimum height on mobile */
        resize: vertical !important;
    }
    
    /* Mobile select specific */
    .sm-survey-page-container .sm-review-select {
        background-size: 14px !important; /* Smaller dropdown arrow on mobile */
        padding-right: 45px !important; /* Adjust padding for smaller arrow */
    }
    
    /* Mobile label adjustments */
    .sm-review-label {
        margin-bottom: 12px !important; /* Slightly reduced spacing on mobile */
        font-size: 16px !important; /* Maintain readable font size */
        padding-left: 28px !important; /* Adjust for mobile icon */
        line-height: 1.3 !important;
    }
    
    .sm-review-label:before {
        font-size: 18px !important; /* Appropriate icon size for mobile */
        top: 1px !important;
    }
}

@media screen and (max-width: 480px) {
    .sm-review-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .sm-review-form-steps {
        min-height: 400px !important;
        padding: 20px 5px !important; /* Maintain reasonable padding on small mobile */
        border: none !important;
        width: 100% !important; /* Ensure full width on small mobile */
    }
    
    .sm-review-step {
        min-height: 380px !important;
        padding: 10px 0 !important;
        width: 100% !important; /* Ensure full width on small mobile */
    }
    
    /* Enhanced small mobile user information responsiveness */
    .sm-user-info {
        padding: 8px 10px !important; /* Further reduced padding on small mobile */
        margin: 8px 0 !important; /* Further reduced margin on small mobile */
        border-radius: 4px !important; /* Smaller border radius for small screens */
    }
    
    .sm-user-avatar {
        margin-right: 8px !important; /* Further reduced margin on small mobile */
    }
    
    .sm-user-avatar img {
        width: 24px !important; /* Even smaller avatar on small mobile */
        height: 24px !important;
        border-width: 1px !important; /* Thinner border on small screens */
    }
    
    .sm-user-name {
        font-size: 12px !important; /* Smaller font on small mobile */
        line-height: 1.2 !important;
        font-weight: 600 !important; /* Slightly bolder to maintain readability */
    }
    
    .sm-user-email {
        font-size: 10px !important; /* Smaller email font on small mobile */
        line-height: 1.2 !important;
        opacity: 0.8 !important; /* Slightly faded for hierarchy */
    }
    
    /* Brand header for small mobile */
    .sm-brand-header {
        padding: 15px 10px 12px 10px !important; /* Further reduced padding */
        flex-direction: row !important;
        align-items: center !important;
    }
    
    .sm-site-icon {
        width: 36px !important; /* Smaller site icon on small mobile */
        height: 36px !important;
        margin-right: 8px !important;
        border-radius: 8px !important; /* Smaller border radius */
    }
    
    .sm-brand-name {
        font-size: 18px !important; /* Smaller brand name on small mobile */
        line-height: 1.1 !important;
        font-weight: 700 !important; /* Maintain readability */
    }
    
    .sm-review-subheading {
        font-size: 13px !important; /* Smaller subheading on small mobile */
        margin: 1px 0 0 !important;
        line-height: 1.2 !important;
    }
    
    /* Login header for small mobile */
    .sm-login-header {
        padding: 10px 12px !important; /* Further reduced padding */
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .sm-login-header-left {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }
    
    .sm-login-header-right {
        margin-left: 10px !important; /* Further reduced margin */
        flex-shrink: 0 !important;
    }
    
    /* Form group adjustments for small mobile */
    .sm-form-group {
        padding: 10px !important; /* Further reduced padding */
        margin-bottom: 16px !important;
        border-radius: 12px !important;
    }
    
    .sm-review-progress-step {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    /* Small mobile-specific adjustments */
    .sm-review-input {
        padding: 14px 12px !important; /* Adjusted padding for very small screens */
        font-size: 15px !important; /* Slightly smaller font for very small screens */
        margin-bottom: 16px !important; /* Maintain spacing */
    }
    
    .sm-review-label {
        margin-bottom: 12px !important; /* Slightly reduced spacing on very small screens */
        font-size: 14px !important; /* Slightly smaller font for very small screens */
        padding-left: 28px !important; /* Adjust for smaller icon */
    }
    
    .sm-review-label:before {
        font-size: 16px !important; /* Smaller icon on small screens */
    }
    
    /* Validation messages on small screens */
    .sm-rating-error,
    .sm-review-error-message,
    [class*="please-select"] {
        padding: 14px 16px !important; /* Slightly reduced padding */
        font-size: 14px !important; /* Slightly smaller font */
        margin-top: 12px !important; /* Adjusted spacing */
        margin-bottom: 16px !important; /* Adjusted spacing */
    }
}



.sm-review-logo {
    height: 65px;
    width: 65px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(59, 47, 207, 0.18);
    transition: all 0.4s ease;
    border: 1px solid #e5e1f2;
    padding: 5px;
    background: #ffffff;
    animation: pulseBranding 3s infinite alternate ease-in-out;
}

@keyframes pulseBranding {
    0% {
        box-shadow: 0 8px 20px rgba(59, 47, 207, 0.18);
    }
    100% {
        box-shadow: 0 12px 30px rgba(59, 47, 207, 0.3);
    }
}

/* Login Required Section */
.sm-login-required {
    background-color: #f8f8fc;
    border-radius: 15px;
    padding: 0; /* Reset padding - handled by sm-login-header */
    margin-bottom: 0; /* Removed margin to allow full height */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0, 115, 170, 0.2);
    position: relative; /* Changed to relative positioning */
    display: flex;
    flex-direction: column;
    height: auto !important; /* Auto height to fit content */
    min-height: auto !important; /* Auto min-height */
    max-height: none !important; /* No max height restriction */
    width: 100% !important; /* Ensure full width */
    flex: 1 !important;
    overflow: visible !important; /* Allow content to flow naturally */
}

/* Modal Header - Styles moved to modal-close-fix.css to avoid duplication */

/* LOGIN HEADER STYLES */
.sm-login-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px 25px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: var(--sm-neutral-100) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    overflow: visible !important;
    border-radius: 12px 12px 0 0 !important;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.sm-login-header-left {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

.sm-login-header-right {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin-left: 40px !important; /* Increased margin to move close button further right from user info */
}

/* Login Close Button - Styles moved to modal-close-fix.css to avoid duplication */

/* Close button in logged-in header - scoped properly */
.sm-survey-page-container .sm-review-header-right .sm-login-close-btn {
    position: relative;
    margin-left: 30px; /* Spacing */
    flex-shrink: 0;
    order: 2; /* Appear after user info */
}

/* Modal header close button visibility - scoped */
.sm-survey-page-container .modal-header .sm-login-close-btn {
    display: flex;
    visibility: visible;
    opacity: 1;
    position: relative;
    z-index: 5;
}

/* Login header styling */
.sm-login-content {
    padding: 12px 30px 0 30px;
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    overflow: hidden !important; /* Prevent scrolling */
    min-height: auto !important; /* Allow natural height */
    max-height: none !important; /* Remove height restriction */
}

/* =================================
   LOGIN HEADER ELEMENTS (Merged from modal-close-fix.css)
   ================================= */

/* Site icon and brand info visibility with scoping */
.sm-survey-page-container .sm-login-header-left .sm-site-icon,
.sm-survey-page-container .sm-site-icon,
.sm-site-icon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    padding: 2px;
    margin-right: 15px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    position: relative;
}

/* Site icon image styling */
.sm-survey-page-container .sm-login-header-left .sm-site-icon-img,
.sm-survey-page-container .sm-site-icon-img,
.sm-site-icon-img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 6px;
    background: white;
    padding: 1px;
    position: relative;
    z-index: 2;
}

/* Fallback icon when image fails to load or is missing */
.sm-site-icon:before {
    content: "🌐";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    z-index: 1;
    opacity: 1;
}

/* Hide fallback when image loads successfully */
.sm-site-icon:has(.sm-site-icon-img[src]:not([src=""])):before {
    opacity: 0;
}

/* Show fallback when image fails */
.sm-site-icon .sm-site-icon-img[style*="display: none"] ~ .sm-icon-fallback,
.sm-site-icon .sm-icon-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    z-index: 3;
}

.sm-survey-page-container .sm-login-header-left .sm-brand-info-section,
.sm-survey-page-container .sm-brand-info-section {
    display: block;
    visibility: visible;
    opacity: 1;
}

.sm-survey-page-container .sm-login-header .sm-brand-name,
.sm-survey-page-container .sm-brand-name {
    display: block;
    visibility: visible;
    opacity: 1;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.sm-survey-page-container .sm-login-header .sm-review-subheading,
.sm-survey-page-container .sm-review-subheading {
    display: block;
    visibility: visible;
    opacity: 1;
    font-size: 16px;
    color: #666;
    margin: 4px 0 0;
    font-weight: normal;
}

.sm-login-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
}

.sm-login-content p {
    margin-bottom: 20px;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.sm-login-form {
    padding: 0 30px 30px 30px;
    max-width: 500px;
    margin: 0 auto;
    flex: 1; /* Take remaining space in login content */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align to top instead of center for better scrolling */
    overflow-y: auto; /* Enable scrolling if needed */
    overflow-x: hidden; /* Hide horizontal scrollbar */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #0073aa #f0f0f0; /* For Firefox */
    position: relative; /* Ensure scrollbar is positioned relative to this container */
    right: 0; /* Position scrollbar on the right */
}

/* Webkit scrollbar styling for Chrome, Safari, Edge */
.sm-login-form::-webkit-scrollbar {
    width: 8px;
}

.sm-login-form::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.sm-login-form::-webkit-scrollbar-thumb {
    background-color: #0073aa;
    border-radius: 4px;
}

.sm-login-form form {
    padding: 20px;
}

/* Common Login Modal Inline Styles */

/* Login modal close button */
.sm-login-close-btn-inline {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.sm-cancel-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 22px;
    line-height: 1;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 0;
}

.sm-login-header .sm-cancel-home:hover {
    background: #f6f7f7;
    border-color: #c3c4c7;
    transform: scale(1.06);
}

/* Login content */
.sm-login-content-inline {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Login heading */
.sm-login-heading-inline {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

/* Login paragraph */
.sm-login-paragraph-inline {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 20px;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

/* Site icon image */
.sm-site-icon-img-inline {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

/* Brand name */
.sm-brand-name-inline {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
    display: block;
}

/* Review subheading */
.sm-review-subheading-inline {
    font-size: 16px;
    color: #666;
    margin: 4px 0 0;
    font-weight: normal;
    display: block;
}

.sm-login-form form {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    min-height: 400px; /* Minimum height for the form */
}

.sm-login-form p {
    margin-bottom: 15px;
}

.sm-login-form input[type="text"],
.sm-login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.sm-login-form input[type="text"]:focus,
.sm-login-form input[type="password"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
    outline: none;
}

.sm-login-form input[type="submit"] {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 600;
}

.sm-login-form input[type="submit"]:hover {
    background: #005f8b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 95, 139, 0.2);
}

/* Register link styling */
.sm-register-link {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0; /* Remove bottom margin */
    font-size: 16px;
    color: #333;
    flex-shrink: 0; /* Prevent shrinking */
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Register link styling - consolidated */
.sm-register-link a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    background-color: #0073aa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sm-register-link a:hover {
    color: #ffffff;
    background-color: #005177;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Review Header */
.sm-review-top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 20px 20px 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
    contain: layout style;
}

.sm-review-header-left {
    flex: 0 0 auto;
    margin-right: 20px;
}

.sm-review-header-center {
    flex: 1 1 auto;
    text-align: left;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    line-height: 1.4;
    padding-right: 15px;
    max-width: calc(100% - 60px);
}

.sm-review-header-right {
    flex: 0 0 auto;
    text-align: right;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 15px;
}

.sm-brand-header {
    display: flex;
    align-items: center;
    padding: 25px 30px 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    background: var(--sm-neutral-100);
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden !important;
    contain: layout style !important;
    border-radius: 12px 12px 0 0;
}

.sm-brand-info-wrapper {
    display: flex;
    align-items: center;
}

.sm-site-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.2);
    padding: 2px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    position: relative;
}

/* Fallback content when no icon is loaded */
.sm-site-icon:empty:before {
    content: "🌐";
    font-size: 24px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Ensure icon visibility and proper loading */
.sm-site-icon img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.sm-site-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    background: transparent;
    /* Add loading states */
    transition: opacity 0.3s ease;
}

/* Loading state for icon */
.sm-site-icon-img:not([src]),
.sm-site-icon-img[src=""],
.sm-site-icon-img[src*="data:image/svg+xml;base64,PHN2ZyB"] {
    opacity: 0.5;
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    border-radius: 6px;
}

/* Fallback for failed icon loads */
.sm-site-icon-img[alt]:after {
    content: "🌐";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show fallback on error */
.sm-site-icon-img[onerror]:after {
    opacity: 1;
}

.sm-brand-info-section {
    display: flex;
    flex-direction: column;
}

.sm-brand-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.sm-review-subheading {
    font-size: 16px;
    color: #666;
    margin: 4px 0 0;
    font-weight: normal;
}

.sm-reviewing-heading {
    margin: 5px 0 0 0;
    font-size: 16px;
    color: #666;
    font-weight: normal;
}

.sm-software-highlight {
    color: #0073aa;
    font-weight: 600;
}

/* Software Display Section */
.sm-software-display {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 0 10px 30px 10px;
    width: calc(100% - 20px);
    box-sizing: border-box;
    gap: 15px;
    max-width: calc(100% - 20px);
    position: relative;
}

/* Form Heading Section Inside Form */
.sm-form-heading-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.sm-software-display-inside {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.sm-form-main-heading {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    text-align: left;
}

.sm-software-name-highlight {
    color: #0073aa;
    font-weight: 800;
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 115, 170, 0.1);
}

.sm-software-logo {
    min-width: 80px;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.sm-software-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.sm-software-logo:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.sm-software-info {
    flex: 1;
    min-width: 0;
}

.sm-software-name {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-software-name:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 3px;
}

.review-form-title {
    margin: 15px 0 0 0;
    font-size: 20px;
    color: #666;
    font-weight: 600;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* User Info Section - Enhanced Mobile Responsiveness */
.sm-user-info {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.sm-user-avatar {
    position: relative;
    margin-right: 12px;
    flex-shrink: 0;
}

.sm-user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sm-user-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sm-user-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a202c;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sm-user-email {
    font-size: 12px;
    color: #718096;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Progress Bar */
.sm-review-progress-bar {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px 0;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
}

.sm-review-progress-step {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sm-neutral-600);
    background: transparent;
    position: relative;
    transition: all 0.3s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-review-progress-step.active {
    background: var(--sm-primary);
    color: var(--sm-neutral-100);
    transform: translateY(-2px);
    box-shadow: var(--sm-shadow-md);
}

.sm-review-progress-step.completed {
    background: var(--sm-success);
    color: var(--sm-neutral-100);
}


.sm-review-steps {
    position: relative;
    width: 100% !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
}

.sm-review-step {
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
    margin: 0;
    box-sizing: border-box;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    display: none !important;
}

.sm-review-step.active {
    display: block !important;
    opacity: 1;
    overflow: visible !important;
}

/* Form Elements */
select.sm-review-select {
    max-width: 100% !important;
    width: 100% !important;
}

input, select, textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Enhanced Form Group Styling */
.sm-form-group {
    width: 100%;
    margin-bottom: 20px;
    padding: 15px;
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f8fafe);
    border-radius: 16px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    contain: layout style;
}

.sm-form-group:hover {
    box-shadow: 0 4px 16px rgba(0, 115, 170, 0.08);
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.sm-form-group:focus-within {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1), 0 8px 24px rgba(0, 115, 170, 0.15);
    transform: translateY(-3px);
}

/* Modern Question Label Styling */
.sm-review-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1a202c;
    font-size: 18px;
    line-height: 1.4;
    position: relative;
    padding-left: 32px;
    transition: all 0.3s ease;
}

.sm-review-label:hover {
    color: #0073aa;
    transform: translateX(4px);
}

/* Add modern question icon */
.sm-review-label:before {
    content: "📝";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.sm-form-group:hover .sm-review-label:before {
    opacity: 1;
    transform: scale(1.1);
}

/* Question numbering badge removed */

/* Required field styling */
.sm-review-required {
    color: #e74c3c;
    margin-left: 6px;
    font-weight: 800;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(231, 76, 60, 0.2);
}

/* Optional field styling */
.sm-optional-label {
    color: #718096;
    margin-left: 6px;
    font-weight: 400;
    font-size: 14px;
    font-style: italic;
    opacity: 0.8;
}

/* Star Rating */
.sm-survey-page-container .sm-star-group {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    flex-wrap: nowrap;
    min-height: 36px;
}

/* Primary Star Rating Container */
.sm-primary-star-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 5px 0;
}

/* Primary Rating Value Display */
.sm-primary-star-rating .sm-rating-value {
    display: inline-block;
    margin-left: 15px;
    font-size: 17px;
    font-weight: 700;
    color: #666;
    background: #f8f9fa;
    padding: 10px 18px;
    border-radius: 25px;
    border: 2px solid #e9ecef;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
}

.sm-primary-star-rating .sm-rating-value.active {
    opacity: 1 !important;
    visibility: visible !important;
    color: #fff !important;
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    border-color: #ff9800 !important;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.sm-star-label {
    display: inline-block !important;
    cursor: pointer !important;
    margin: 0 2px !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    font-size: 28px !important;
    line-height: 1 !important;
    color: var(--sm-star-default, #e0e0e0) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    user-select: none;
    z-index: 1;
}

.sm-star-label:hover,
.sm-star-label.hover {
    color: var(--sm-star-active, #ffca28) !important;
    transform: scale(1.15) !important;
    text-shadow: 0 2px 8px rgba(255, 202, 40, 0.4) !important;
}

.sm-star-label.selected,
.sm-star-label input[type="radio"]:checked + .sm-star {
    color: var(--sm-star-active, #ff9800) !important;
    text-shadow: 0 0 15px rgba(255, 152, 0, 0.5) !important;
    transform: scale(1.05) !important;
}

/* More specific selector for primary star rating */
.sm-primary-star-rating .sm-star-label.selected {
    opacity: 1 !important;
}

/* Additional star selection overrides */
.sm-primary-star-rating .sm-star-label.selected .sm-star,
.sm-primary-star-rating .sm-star-label.selected span {
    color: var(--sm-star-active, #ffca28) !important;
}

/* Ensure stars are colored properly in all states */
.sm-star-label .sm-star {
    color: inherit !important;
    font-size: inherit !important;
    display: inline-block !important;
}

.sm-star-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sm-survey-page-container .sm-rating-value-label {
    display: inline-block;
    margin-left: 15px;
    font-size: 16px;
    color: #666;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    vertical-align: middle;
    white-space: nowrap;
    visibility: visible;
    position: relative;
    z-index: 2;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 25px;
    border: 2px solid #e9ecef;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.sm-rating-value-label.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    transform: scale(1.05);
    font-weight: 700;
}

/* Secondary Rating Items */
.sm-secondary-rating-item {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    background: #f9fafb;
    border: 1.5px solid #e3e8ee;
    border-radius: 12px;
    padding: 12px 20px;
    margin: 0 0 8px 0;
    min-height: 50px;
    box-shadow: 0 2px 8px rgba(60,72,88,0.06);
    position: relative;
}

.sm-secondary-rating-item.sm-rating-selected {
    position: relative !important;
    border-color: #4CAF50 !important;
    background-color: #f4fff5 !important;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.1);
    animation: ratingSuccess 0.3s ease;
}

.sm-secondary-rating-item.sm-rating-selected .sm-rating-value-label {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    pointer-events: none !important;
    position: relative !important;
    z-index: 3 !important;
}

.sm-secondary-rating-item.sm-rating-selected:before {
    background: #4CAF50;
}

.sm-secondary-rating-item.sm-rating-selected label:first-child {
    color: #2E7D32;
}

.sm-secondary-rating-label {
    min-width: 140px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 0;
    margin-right: 0;
    flex-shrink: 0;
    background: none;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Star Rating Colors */
.sm-rating-value-label[data-rating="5"] { color: #2E7D32 !important; }
.sm-rating-value-label[data-rating="4"] { color: #388E3C !important; }
.sm-rating-value-label[data-rating="3"] { color: #F59E0B !important; }
.sm-rating-value-label[data-rating="2"] { color: #F97316 !important; }
.sm-rating-value-label[data-rating="1"] { color: #D32F2F !important; }

/* Colored badge variants for secondary rating labels */
.sm-rating-value-label.sm-badge-1 {
    background-color: #fee2e2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}
.sm-rating-value-label.sm-badge-2 {
    background-color: #ffedd5 !important;
    border-color: #fed7aa !important;
    color: #9a3412 !important;
}
.sm-rating-value-label.sm-badge-3 {
    background-color: #fef3c7 !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}
.sm-rating-value-label.sm-badge-4 {
    background-color: #dcfce7 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}
.sm-rating-value-label.sm-badge-5 {
    background-color: #d1fae5 !important;
    border-color: #a7f3d0 !important;
    color: #065f46 !important;
}

/* Star descriptions */
.sm-star-descriptions {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--sm-text-light, #718096);
    padding: 0.5rem;
}

.sm-star-desc {
    text-align: center;
    width: 20%;
    padding: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.sm-star-desc.active {
    font-weight: bold;
    color: #0073aa;
    background: #f0f7fc;
    padding: 8px 5px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    transition: all 0.3s ease;
    z-index: 2;
}

.sm-star-desc:before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #f0f0f0;
    opacity: 0.7;
}

.sm-star-desc.active:before {
    border-bottom-color: #0073aa;
    opacity: 1;
}

/* Make sure the selection is visible in review steps */
.sm-review-step:not(.active) .sm-star-label input[type="radio"]:checked + .sm-star {
    color: #ffca28;
}

/* Update when review is saved/submitted */
.sm-rating-saved .sm-star-label input[type="radio"]:checked + .sm-star {
    color: #ff9800;
    text-shadow: 0 0 15px rgba(255, 152, 0, 0.5);
}


/* Enhanced Input Field Styling - Consolidated with Mobile Responsiveness */
.sm-survey-page-container .sm-review-input,
.sm-survey-page-container .sm-review-textarea,
.sm-survey-page-container .sm-review-select,
.sm-g2-input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 20px !important;
    border: 2px solid #e1e8ed !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    background: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
    color: #2c3e50 !important;
    line-height: 1.5 !important;
    /* Mobile-first approach for better touch interaction */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    touch-action: manipulation !important;
}

.sm-survey-page-container .sm-review-input:focus,
.sm-survey-page-container .sm-review-textarea:focus,
.sm-survey-page-container .sm-review-select:focus,
.sm-g2-input:focus {
    border-color: #0073aa !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.12), 0 4px 12px rgba(0, 115, 170, 0.15) !important;
    outline: none !important;
    transform: translateY(-1px) !important;
}

.sm-survey-page-container .sm-review-input:hover:not(:focus),
.sm-survey-page-container .sm-review-textarea:hover:not(:focus),
.sm-survey-page-container .sm-review-select:hover:not(:focus),
.sm-g2-input:hover:not(:focus) {
    border-color: #cbd5e0 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
    background: #fafbfc !important;
}

/* Textarea specific styling */
.sm-survey-page-container .sm-review-textarea {
    min-height: 120px !important;
    resize: vertical !important;
    font-family: inherit !important;
    line-height: 1.6 !important;
}

/* Select dropdown styling */
.sm-survey-page-container .sm-review-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
    padding-right: 50px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
}

/* Placeholder styling */
.sm-survey-page-container .sm-review-input::placeholder,
.sm-survey-page-container .sm-review-textarea::placeholder,
.sm-g2-input::placeholder {
    color: #a0aec0 !important;
    font-style: italic !important;
    opacity: 1 !important;
}

/* Input field icons or labels */
.sm-form-group.has-icon .sm-review-input {
    padding-left: 50px !important;
}

.sm-form-group.has-icon:before {
    content: "📝";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
}

/* Enhanced Radio Button and Checkbox Styling */

/* Radio Button Groups */
.sm-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.sm-radio-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sm-radio-option:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.sm-radio-option.selected,
.sm-radio-option:has(input:checked) {
    border-color: #0073aa;
    background: linear-gradient(135deg, #f0f9ff, #ffffff);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.12), 0 6px 16px rgba(0, 115, 170, 0.15);
    transform: translateY(-2px);
}

/* Custom Radio Button */
.sm-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sm-radio-option .sm-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: #ffffff;
}

.sm-radio-option .sm-radio-custom:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    background: #0073aa;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.sm-radio-option:has(input:checked) .sm-radio-custom {
    border-color: #0073aa;
    background: #ffffff;
}

.sm-radio-option:has(input:checked) .sm-radio-custom:after {
    transform: translate(-50%, -50%) scale(1);
}

.sm-radio-option .sm-radio-label {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0;
    cursor: pointer;
    flex: 1;
}

.sm-radio-option:has(input:checked) .sm-radio-label {
    color: #0073aa;
    font-weight: 600;
}

/* Checkbox Groups */
.sm-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.sm-checkbox-option {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sm-checkbox-option:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.sm-checkbox-option.selected,
.sm-checkbox-option:has(input:checked) {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.12), 0 6px 16px rgba(76, 175, 80, 0.15);
    transform: translateY(-2px);
}

/* Custom Checkbox */
.sm-checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sm-checkbox-option .sm-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 0;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: #ffffff;
}

.sm-checkbox-option .sm-checkbox-custom:after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.sm-checkbox-option:has(input:checked) .sm-checkbox-custom {
    border-color: #4CAF50;
    background: #4CAF50;
}

.sm-checkbox-option:has(input:checked) .sm-checkbox-custom:after {
    transform: translate(-50%, -50%) scale(1);
}

.sm-checkbox-option .sm-checkbox-label {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0;
    cursor: pointer;
    flex: 1;
}

.sm-checkbox-option:has(input:checked) .sm-checkbox-label {
    color: #2E7D32;
    font-weight: 600;
}

/* Inline Radio/Checkbox Groups */
.sm-radio-group.inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}

.sm-radio-group.inline .sm-radio-option {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 10px 16px;
}

.sm-checkbox-group.inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}

.sm-checkbox-group.inline .sm-checkbox-option {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 10px 16px;
}

/* Help Text Styling */
.sm-help-text {
    margin-top: 8px;
    font-size: 14px;
    color: #718096;
    font-style: italic;
    line-height: 1.4;
}

.sm-help-text:before {
    content: "💡 ";
    opacity: 0.7;
}

/* Ensure consistency between form classes */
/* Use same styles as sm-review-* classes for consistency */

/* .sm-g2-input styles - Using the same styles as .sm-review-input for consistency */
.sm-g2-input {
    /* Inherits styles from .sm-survey-page-container .sm-review-input defined around line 1550 */
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 20px !important;
    border: 2px solid #e1e8ed !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    background: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
    color: #2c3e50 !important;
    line-height: 1.5 !important;
}

.sm-g2-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1a202c;
    font-size: 18px;
    line-height: 1.4;
    position: relative;
    padding-left: 32px;
    transition: all 0.3s ease;
}

.sm-g2-label:before {
    content: "📝";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.sm-g2-required {
    color: #e74c3c;
    margin-left: 6px;
    font-weight: 800;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(231, 76, 60, 0.2);
}

/* Question counter/numbering */
.sm-form-group[data-question-number]:before {
    content: attr(data-question-number);
    position: absolute;
    left: -40px;
    top: 12px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}


/* Style radio button containers - Full width inline layout */
/* Style radio button containers - SCOPED TO SURVEY/REVIEW ONLY */
.sm-survey-page-container label:has(input[type="radio"]),
.sm-review-modal label:has(input[type="radio"]) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 8px !important;
    background: #ffffff !important;
    border: 2px solid #e1e8ed !important;
    border-radius: 12px !important;
    margin: 4px 6px 4px 0 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    font-weight: 500 !important;
    color: #2c3e50 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    flex: 1 !important;
    min-width: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.sm-survey-page-container label:has(input[type="radio"]):hover,
.sm-review-modal label:has(input[type="radio"]):hover {
    border-color: #cbd5e0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px) !important;
    background: #fafbfc !important;
}

.sm-survey-page-container label:has(input[type="radio"]:checked),
.sm-review-modal label:has(input[type="radio"]:checked) {
    border-color: #0073aa !important;
    background: linear-gradient(135deg, #f0f9ff, #ffffff) !important;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.12), 0 6px 16px rgba(0, 115, 170, 0.15) !important;
    transform: translateY(-2px) !important;
    color: #0073aa !important;
    font-weight: 600 !important;
}

/* Style for inline radio groups */
.sm-form-group:has(input[type="radio"]) {
    display: block !important;
}

/* Radio button animations */
@keyframes radioSelect {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}


/* Style checkbox containers - EXCLUDE LEAD GENERATION MODAL */
.sm-survey-page-container label:has(input[type="checkbox"]),
.sm-review-modal label:has(input[type="checkbox"]) {
    display: inline-flex !important;
    align-items: center !important;
    padding: 10px 16px !important;
    background: #ffffff !important;
    border: 2px solid #e1e8ed !important;
    border-radius: 12px !important;
    margin: 8px 12px 8px 0 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    font-weight: 500 !important;
    color: #2c3e50 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    min-width: fit-content !important;
}

.sm-survey-page-container label:has(input[type="checkbox"]):hover,
.sm-review-modal label:has(input[type="checkbox"]):hover {
    border-color: #cbd5e0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px) !important;
    background: #fafbfc !important;
}

.sm-survey-page-container label:has(input[type="checkbox"]:checked),
.sm-review-modal label:has(input[type="checkbox"]:checked) {
    border-color: #4CAF50 !important;
    background: linear-gradient(135deg, #f0fdf4, #ffffff) !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.12), 0 6px 16px rgba(76, 175, 80, 0.15) !important;
    transform: translateY(-2px) !important;
    color: #2E7D32 !important;
    font-weight: 600 !important;
}

/* Checkbox animations */
@keyframes checkboxSelect {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}


.sm-form-group.sm-invalid {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-color: #d32f2f !important;
    background: linear-gradient(135deg, #fff8f8, #ffffff) !important;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2), 0 4px 12px rgba(211, 47, 47, 0.1) !important;
    animation: invalidFieldPulse 0.5s ease;
}

@keyframes invalidFieldPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Ensure error messages stay within form group */
.sm-form-group .sm-g2-error-message {
    position: relative !important;
    width: calc(100% - 8px) !important;
    max-width: 100% !important;
    margin-left: 4px;
    margin-right: 4px;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Error states */
.sm-secondary-rating-item.sm-invalid {
    border: 1px solid #ff5555 !important;
    background-color: #fff8f8 !important;
    box-shadow: 0 5px 15px rgba(255, 85, 85, 0.1);
}

.sm-secondary-rating-item.sm-invalid:before {
    background: #ff5555;
}

.sm-secondary-rating-item .sm-g2-error-message {
    color: #ff5555;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #fff0f0;
    border-radius: 6px;
    font-weight: 500;
}

/* Hide error messages when rating is selected */
.sm-secondary-rating-item.sm-rating-selected .sm-g2-error-message {
    display: none !important;
}

/* Success Message */
.sm-review-success {
    background-color: #e8f5e9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #c8e6c9;
}

.sm-review-success h3 {
    color: #2e7d32;
    margin-top: 0;
    font-size: 24px;
}

.sm-review-success p {
    color: #666;
    line-height: 1.6;
}

.sm-review-success-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 16px;
    color: #2e7d32;
}

/* Integration Selector */
.sm-integration-selector {
    margin-top: 15px;
    width: 100%;
    display: block !important;
    visibility: visible !important;
}

.sm-search-container {
    position: relative;
    margin-bottom: 15px;
}

.software-search {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.software-search:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Selected integrations display - properly scoped */
.sm-survey-page-container .selected-integrations {
    display: block;
    visibility: visible;
    margin: 10px 0;
    padding: 5px 0;
    min-height: 30px;
}

.sm-survey-page-container .selected-integrations.has-selections {
    border-top: 1px dashed #ddd;
    padding-top: 15px;
}

/* Selected item styling - properly scoped */
.sm-survey-page-container .selected-item {
    display: inline-flex;
    align-items: center;
    background: #f0f7fc;
    border: 1px solid #0073aa;
    border-radius: 30px;
    padding: 5px 12px;
    margin: 0 10px 10px 0;
    font-size: 14px;
    transition: all 0.2s ease;
}

.selected-item .item-link {
    color: #0073aa !important;
    text-decoration: none !important;
    margin-right: 5px !important;
}

.selected-item .remove-item {
    background: none !important;
    border: none !important;
    color: #666 !important;
    cursor: pointer !important;
    font-size: 18px !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin-left: 5px !important;
}

/* Integration help text */
.sm-integration-help {
    margin-top: 15px !important;
    display: block !important;
    visibility: visible !important;
}

.sm-integration-note {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    margin-top: 5px;
    border-left: 3px solid #0073aa;
    padding: 5px 10px;
    background-color: rgba(0, 115, 170, 0.05);
    border-radius: 0 4px 4px 0;
}

/* Form Animation */

.sm-review-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ratingSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes star-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes flash-success {
    0% { background-color: #f4fff5; box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5); }
    50% { background-color: #e8f5e9; box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { background-color: #f4fff5; box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* Star Rating Animations */
.sm-flash-success {
    animation: flash-success 0.7s ease;
}

.sm-star-label.just-selected {
    animation: star-pulse 0.3s ease-in-out;
}

/* Read-only field styling */
.sm-g2-input[readonly] {
    background-color: #f5f5f5 !important;
    color: #666 !important;
    border-color: #ddd !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

.sm-g2-input[readonly]:hover,
.sm-g2-input[readonly]:focus {
    border-color: #ddd !important;
    box-shadow: none !important;
    transform: none !important;
    background-color: #f5f5f5 !important;
}

.sm-email-hint {
    margin-top: 5px !important;
    font-size: 13px !important;
    color: #666 !important;
    font-style: italic;
}

/* Rating selection notes */
.sm-ratings-required-note {
    display: block;
    text-align: right;
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

.sm-ratings-required-note:before {
    content: "⭐";
    margin-right: 5px;
}

/* Ensure only one required message is shown */
.sm-ratings-required-note + .sm-ratings-required-note {
    display: none !important;
}

/* =================================
   MODAL LAYOUT OVERRIDE STYLES (Merged from modal-close-fix.css)
   ================================= */

/* Modal styles consolidated - moved to modal-close-fix.css to avoid duplication */

}

    
    
    
    
    

@keyframes mobileSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
    }
}

@media (max-width: 600px) {
    .sm-star-label {
        font-size: 24px;
    }
    
    .sm-rating-descriptions {
        margin-top: 40px;
    }
    
    .sm-rating-label {
        font-size: 11px;
    }
    
    /* Extra small mobile devices - enhanced touch targets */
    .sm-horizontal-radio {
        min-height: 48px !important;
        padding: 12px 15px !important;
        margin: 8px 0 !important;
        border: 2px solid #ddd !important;
        border-radius: 8px !important;
        background: #fff !important;
        cursor: pointer !important;
        font-size: 16px !important;
        line-height: 1.3 !important;
    }
    
    .sm-horizontal-radio:active,
    .sm-horizontal-radio:hover {
        background: #f8f9fa !important;
        border-color: #2271b1 !important;
    }
    
    .sm-horizontal-radio.selected {
        background: #e7f3ff !important;
        border-color: #2271b1 !important;
        color: #2271b1 !important;
    }
    
    /* Mobile integration section enhancements */
    .integration-details-group {
        padding: 15px !important;
        margin: 15px 0 !important;
        background: #f9f9f9 !important;
        border-radius: 8px !important;
        border: 1px solid #e0e0e0 !important;
    }
    
    .integration-details-group.show {
        animation: mobileExpand 0.4s ease-out !important;
    }
    
    /* Mobile software search improvements */
    .software-search {
        min-height: 48px !important;
        font-size: 16px !important;
        padding: 14px 16px !important;
        border-radius: 8px !important;
        border: 2px solid #ddd !important;
        background: #fff !important;
        -webkit-appearance: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .software-search:focus {
        border-color: #2271b1 !important;
        box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1) !important;
    }
    
    /* Mobile search results with better touch handling */
    .search-results {
        border-radius: 0 0 12px 12px !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
        max-height: 250px !important;
    }
    
    .search-result-item {
        min-height: 54px !important;
        padding: 15px 18px !important;
        font-size: 15px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .search-result-item:active {
        background: #e7f3ff !important;
        transform: scale(0.98) !important;
        transition: all 0.1s ease !important;
    }
    
    /* Mobile selected items with better touch targets */
    .selected-item {
        min-height: 42px !important;
        padding: 10px 15px !important;
        margin: 0 10px 10px 0 !important;
        border-radius: 25px !important;
        font-size: 15px !important;
    }
    
    .selected-item .remove-item {
        min-width: 32px !important;
        min-height: 32px !important;
        font-size: 18px !important;
        margin-left: 10px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.8) !important;
        border: 1px solid #ddd !important;
    }
    
    .selected-item .remove-item:active {
        background: #ff4444 !important;
        color: white !important;
        transform: scale(0.9) !important;
    }
    
    /* Mobile integration help with better visibility */
    .sm-integration-help {
        margin-top: 20px !important;
        padding: 15px !important;
        background: rgba(34, 113, 177, 0.05) !important;
        border: 1px solid rgba(34, 113, 177, 0.2) !important;
        border-radius: 8px !important;
        border-left: 4px solid #2271b1 !important;
    }
    
    .sm-integration-help p {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin: 0 0 10px 0 !important;
        color: #333 !important;
    }
    
    .sm-integration-note {
        font-size: 14px !important;
        color: #666 !important;
        margin: 10px 0 0 0 !important;
        font-style: italic !important;
    }
}

@keyframes mobileExpand {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 2000px;
    }
}

@media (max-width: 360px) {
    .sm-software-display {
        padding: 12px;
    }

    .sm-software-logo {
        width: 70px;
        height: 70px;
        min-width: 70px;
        padding: 5px;
        margin-right: 12px;
    }

    .sm-software-name {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .review-form-title {
        font-size: 15px;
        margin-top: 10px;
    }
}

/* Specific inline styles for integration form instance */
#integration-details-group-[id].show,
#integration-details-group-[id][data-visible="true"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Pros and cons flexbox layout */
.sm-pros-cons-flexbox {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.sm-pros-column, .sm-cons-column {
    flex: 1;
    min-width: 280px;
}

/* Checkbox Grid Layout for Pros/Cons */
.sm-checkbox-grid {
    margin: 15px 0;
}

.sm-checkbox-grid h6 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    padding: 8px 12px;
    background: #f8fafc;
    border-left: 3px solid #0073aa;
    border-radius: 4px;
}

/* Individual Checkbox Items */
.sm-checkbox-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    padding: 2px 0;
}

.sm-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 12px 0 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #4CAF50;
}

.sm-checkbox-item label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #374151 !important;
    min-height: 20px !important;
}

.sm-checkbox-item label:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.sm-checkbox-item:has(input:checked) label {
    background: #f0fdf4 !important;
    border-color: #4CAF50 !important;
    color: #166534 !important;
    font-weight: 500 !important;
    transform: none !important;
    box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.2) !important;
}

/* Selection Count Styling */
.sm-selection-count {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 500;
    flex-shrink: 0;
    min-width: fit-content;
}

.sm-checkbox-item:has(input:checked) .sm-selection-count {
    background: #dcfce7;
    color: #166534;
}

/* Click feedback animation for labels */
.sm-checkbox-item label.sm-label-clicked {
    transform: scale(0.98) !important;
    background: #e5f3ff !important;
    border-color: #0073aa !important;
}

/* Enhanced checked state for checkbox items */
.sm-checkbox-item.sm-checked label {
    background: #f0fdf4 !important;
    border-color: #4CAF50 !important;
    color: #166534 !important;
    font-weight: 500 !important;
    box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.2) !important;
}

.sm-checkbox-item.sm-checked .sm-selection-count {
    background: #dcfce7;
    color: #166534;
}

/* Smooth transitions for all interactions */
.sm-checkbox-item label,
.sm-checkbox-item input[type="checkbox"],
.sm-selection-count {
    transition: all 0.2s ease;
}

/* Enhanced hover state */
.sm-checkbox-item:hover label {
    background: #f8fafc !important;
    border-color: #cbd5e0 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Active state for better feedback */
.sm-checkbox-item label:active {
    transform: scale(0.98);
    background: #f1f5f9 !important;
}

/* Ensure the entire label area is clickable */
.sm-checkbox-item label {
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Override any conflicting global checkbox label styles */
.sm-checkbox-item label,
.sm-checkbox-grid label {
    /* Override any global :has() selectors for checkboxes */
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #374151 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    min-height: 20px !important;
}

.sm-checkbox-item label:hover,
.sm-checkbox-grid label:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.sm-checkbox-item:has(input:checked) label,
.sm-checkbox-grid:has(input:checked) label {
    background: #f0fdf4 !important;
    border-color: #4CAF50 !important;
    color: #166534 !important;
    font-weight: 500 !important;
    transform: none !important;
    box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.2) !important;
}

.sm-pros-cons-error-message {
    color: #FA346E;
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: 10px;
    display: none;
}

/* Resizable Textarea Styling for Pros/Cons */
.sm-g2-textarea,
.sm-resizable-textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 18px !important;
    border: 2px solid #e1e8ed !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    background: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
    color: #2c3e50 !important;
    line-height: 1.5 !important;
    font-family: inherit !important;
    resize: vertical !important;
    min-height: 80px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
}

.sm-g2-textarea:focus,
.sm-resizable-textarea:focus {
    border-color: #4CAF50 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.12), 0 4px 12px rgba(76, 175, 80, 0.15) !important;
    outline: none !important;
    transform: translateY(-1px) !important;
}

.sm-g2-textarea:hover:not(:focus),
.sm-resizable-textarea:hover:not(:focus) {
    border-color: #cbd5e0 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
    background: #fafbfc !important;
}

.sm-g2-textarea::placeholder,
.sm-resizable-textarea::placeholder {
    color: #a0aec0 !important;
    font-style: italic !important;
    opacity: 1 !important;
}

/* Pros/Cons Item Container Styling */
.sm-pro-item,
.sm-con-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.sm-pro-item:hover,
.sm-con-item:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.08);
    border-color: #4CAF50;
    transform: translateY(-1px);
}

.sm-pro-item .sm-resizable-textarea,
.sm-con-item .sm-resizable-textarea {
    flex: 1;
    margin: 0;
}

/* Remove Button Styling for Pros/Cons */
.sm-pro-item .sm-remove-item,
.sm-con-item .sm-remove-item {
    position: relative;
    top: 8px;
    width: 28px;
    height: 28px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 10;
}

.sm-pro-item .sm-remove-item:hover,
.sm-con-item .sm-remove-item:hover {
    background: #d32f2f;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

.sm-pro-item .sm-remove-item:active,
.sm-con-item .sm-remove-item:active {
    transform: scale(0.95);
}

.sm-pro-item .sm-remove-item.hide,
.sm-con-item .sm-remove-item.hide {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sm-pros-cons-flexbox {
        flex-direction: column;
    }
    
    .sm-pros-column, .sm-cons-column {
        width: 100%;
    }
    
    /* Mobile textarea improvements */
    .sm-g2-textarea,
    .sm-resizable-textarea {
        padding: 12px 16px !important;
        font-size: 16px !important;
        min-height: 70px !important;
        max-height: 150px !important;
        border-radius: 8px !important;
    }
    
    .sm-pro-item,
    .sm-con-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }
    
    .sm-pro-item .sm-remove-item,
    .sm-con-item .sm-remove-item {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    /* Mobile checkbox improvements */
    .sm-checkbox-item {
        margin: 6px 0;
    }
    
    .sm-checkbox-item label {
        font-size: 13px !important;
        padding: 10px !important;
        min-height: 24px !important;
    }
    
    .sm-checkbox-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-right: 10px;
    }
    
    .sm-selection-count {
        font-size: 11px;
        padding: 1px 6px;
    }
    
    .sm-checkbox-grid h6 {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* ================================
   EXTRACTED CSS FROM JAVASCRIPT
   =============================== */

/* Loading Overlay Styles */
.sm-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.sm-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: sm-spin 1s linear infinite;
    margin-bottom: 10px;
}

.sm-loading-text {
    font-size: 16px;
    color: #333;
}

@keyframes sm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Disabled States - Consolidated */
.sm-g2-next-btn.sm-disabled,
.sm-g2-next-btn.sm-button-disabled,
.sm-g2-next-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background-color: #cccccc !important;
    border-color: #cccccc !important;
    pointer-events: none !important;
}

.sm-g2-next-btn.sm-disabled:hover,
.sm-g2-next-btn.sm-button-disabled:hover,
.sm-g2-next-btn:disabled:hover {
    background-color: #cccccc !important;
    transform: none !important;
    box-shadow: none !important;
}


.sm-section-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    border-bottom: 2px solid #3498db;
    padding-bottom: 6px !important;
}

.sm-usage-grid, .sm-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.sm-usage-item, .sm-support-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    transition: all 0.2s ease;
}

.sm-usage-item:hover, .sm-support-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.1);
}

.sm-usage-full, .sm-support-full {
    grid-column: 1 / -1;
}

.sm-usage-label, .sm-support-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.sm-usage-value, .sm-support-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sm-usage-text, .sm-support-text {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
}

.sm-usage-rating, .sm-support-rating {
    flex-shrink: 0;
}

.sm-usage-rating .sm-star-rating, .sm-support-rating .sm-star-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
}

.sm-usage-rating .sm-rating-number, .sm-support-rating .sm-rating-number {
    font-size: 11px;
    color: #6c757d;
    margin-left: 4px;
    font-weight: 500;
}

/* Responsive design for usage experience */
@media (max-width: 768px) {
    .sm-usage-grid, .sm-support-grid {
        grid-template-columns: 1fr;
    }
    
    .sm-usage-value, .sm-support-value {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .sm-usage-rating, .sm-support-rating {
        align-self: flex-end;
    }
}

/* Star styling improvements */
.sm-star-rating {
    color: #ffc107;
}

.sm-star-rating span {
    display: inline-block;
}

/* =================================
   EXTRACTED CSS FROM PHP
   =============================== */

/* Form Scroll Styles */
.sm-review-form-content {
    max-height: none !important;
    min-height: 100vh !important;
    overflow-y: scroll !important;
    padding-right: 20px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #0073aa #f1f1f1 !important;
    display: block !important;
    position: relative !important;
    border-right: 2px solid #0073aa !important;
    border: 1px solid #ddd !important;
    height: 100vh !important;
}

.sm-review-form-content::-webkit-scrollbar {
    width: 20px !important;
    display: block !important;
}

.sm-review-form-content::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 10px !important;
    display: block !important;
}

.sm-review-form-content::-webkit-scrollbar-thumb {
    background: #0073aa !important;
    border-radius: 10px !important;
    border: 3px solid #f1f1f1 !important;
    display: block !important;
    min-height: 50px !important;
}

.sm-review-form-content::-webkit-scrollbar-thumb:hover {
    background: #005177 !important;
}

/* Error message styles for specific elements */
.sm-future-use-error-message {
    display: none;
    color: #ff0000;
    margin-top: 5px;
}

/* Rating summary styles */
#sm-rating-summary {
    display: none;
}

/* Software Review Form Inline Styles */

/* Success message styles */
.sm-review-success {
    max-width: 600px;
    margin: 40px auto 0 auto;
    text-align: center;
}

.sm-review-success .success-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 16px;
    color: #2e7d32;
}

.sm-review-success .success-text {
    color: #666;
}

/* Integration details group */
.integration-details-group {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    height: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.integration-details-group.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    animation: slideInIntegration 0.3s ease-out;
}

/* Animation for integration section */
@keyframes slideInIntegration {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

/* Force visibility when data-visible is true */
.integration-details-group[data-visible="true"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Additional mobile-specific overrides */
@media (max-width: 768px) {
    .integration-details-group.show,
    .integration-details-group[data-visible="true"] {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 15px !important;
        margin: 10px 0 !important;
        background: rgba(240, 248, 255, 0.5) !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
    }
    
    .integration-details-group .sm-integration-selector {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        min-height: 50px !important;
    }
    
    .integration-details-group .software-search {
        display: block !important;
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
        border: 2px solid #ddd !important;
        border-radius: 8px !important;
    }
}

/* Pros/cons error message */
.sm-pros-cons-error-message {
    display: none;
}


/* Search results */
.search-results {
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    max-height: 360px; /* Increased height for better visibility */
    overflow-y: auto;
    width: 100%;
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
}

.search-results.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force hide when explicitly hidden - but don't use !important on display */
.search-results[style*="display: none"] {
    display: none;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

.search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-results li {
    display: flex; /* Make logo and text align nicely */
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.search-results li img.software-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.search-results li .software-name {
    font-weight: 600;
    color: #1a202c;
    margin-right: auto;
}

.search-results li .software-category {
    margin-left: 8px;
    font-size: 12px;
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
}

.search-results li .hidden-label {
    margin-left: 8px;
    font-size: 12px;
    color: #9e9e9e;
}

.search-results li:hover {
    background-color: #f0f0f0;
}

/* Selected integrations container */
.selected-integrations {
    display: block !important;
    visibility: visible !important;
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    min-height: 50px;
}

.selected-integrations.has-selections {
    display: block !important;
    visibility: visible !important;
    border-color: #4CAF50;
    background-color: #f1f8e9;
}

.selected-integrations:empty:before {
    content: "Selected software will appear here";
    color: #888;
    font-style: italic;
    display: block;
    text-align: center;
    padding: 15px 0;
}

.selected-item {
    display: inline-flex;
    align-items: center;
    background: #e7f3ff;
    border: 1px solid #1976d2;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 5px 5px 5px 0;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

.selected-item:hover {
    background: #bbdefb;
    box-shadow: 0 3px 6px rgba(25, 118, 210, 0.3);
    transform: translateY(-1px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.selected-item .item-name {
    margin-right: 5px;
}

.selected-item .item-link {
    text-decoration: none;
    color: #1976d2;
    font-weight: 500;
}

.selected-item .item-link:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.selected-item .item-name {
    margin-right: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.selected-item .remove-item {
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.selected-item .remove-item:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.selected-item .remove-item:active {
    transform: scale(0.95);
}

/* Back Button Styling */
.sm-step-back {
    background: #f1f1f1 !important;
    border: 1px solid #ddd !important;
    color: #555 !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    margin-right: 10px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    visibility: visible !important;
}

.sm-step-back:hover {
    background: #e0e0e0 !important;
    border-color: #ccc !important;
    color: #333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.sm-step-back:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Navigation buttons container */
.sm-review-step-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 30px !important;
    padding: 20px 0 !important;
    border-top: 1px solid #eee !important;
}

/* Hide back button on first step */
.sm-review-step[data-step="1"] .sm-step-back {
    display: none !important;
}

/* Next/Submit button styling */
.sm-g2-next-btn,
.sm-submit-review {
    background: #2271b1 !important;
    color: #fff !important;
    border: 1px solid #2271b1 !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.sm-g2-next-btn:hover,
.sm-submit-review:hover {
    background: #135e96 !important;
    border-color: #135e96 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.sm-g2-next-btn:active,
.sm-submit-review:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}


