/* Multi Quote Builder - Enhanced Frontend Styles */

/* Skip link for accessibility */
.mqb-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1a1a1a;
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
}

.mqb-skip-link:focus {
    top: 0;
    position: relative;
}

.mqb-quote-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    height: 100%;
    overflow: visible;
    line-height: 1.6;
}

/* ============================================
   STEP TRANSITIONS
   ============================================ */
.mqb-quote-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    transform: translateY(10px);
}

.mqb-quote-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Smooth fade-in animation */
@keyframes fadeInSlide {
    from { 
        opacity: 0; 
        transform: translateY(10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .mqb-quote-step {
        transition: none;
        animation: none;
    }
}

/* ============================================
   TYPOGRAPHY & VISUAL HIERARCHY
   ============================================ */
.mqb-quote-form h2 {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 0;
    text-align: center;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.mqb-form-description {
    color: #4b5563; /* Improved contrast: 4a5568 -> 4b5563 for better WCAG AA compliance */
    font-size: 18px;
    text-align: center;
    margin-bottom: 48px;
    margin-top: 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mqb-quote-step h3 {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 0;
    text-align: center;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.mqb-step-subtitle {
    color: #4b5563; /* Improved contrast for WCAG AA compliance */
    font-size: 17px;
    text-align: center;
    margin-bottom: 48px;
    margin-top: 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ENHANCED PROGRESS BAR
   ============================================ */
.mqb-progress-container {
    background: #f5f5f5;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}

.mqb-progress-bar {
    position: relative;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin: 40px 0;
}

.mqb-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #14b8a6 0%, #06b6d4 100%);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 20%;
    position: relative;
}

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

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

.mqb-progress-steps {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
}

.mqb-step-indicator {
    width: 30px;
    height: 30px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mqb-step-indicator.active {
    background: #14b8a6;
    color: white;
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.mqb-step-indicator.completed {
    background: #4caf50;
    color: white;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

/* ============================================
   ENHANCED OPTION CARDS
   ============================================ */
.mqb-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Better grid distribution for different screen sizes */
@media (min-width: 600px) and (max-width: 900px) {
    .mqb-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 901px) {
    .mqb-options-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

/* ============================================
   MOBILE RESPONSIVENESS - Mobile First Approach
   ============================================ */

/* Base mobile styles (default) */
@media (max-width: 599px) {
    .mqb-quote-form {
        padding: 16px 12px;
    }
    
    .mqb-quote-form h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .mqb-form-description {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .mqb-quote-step h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .mqb-step-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }
    
    .mqb-progress-bar {
        margin: 32px 0;
    }
    
    .mqb-options-grid {
        gap: 16px;
        margin-bottom: 32px;
    }
    
    .mqb-option-card {
        padding: 24px 20px;
        min-height: 160px;
    }
    
    .mqb-option-icon {
        font-size: 48px;
        margin-bottom: 16px;
    }
    
    .mqb-option-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .mqb-option-description {
        font-size: 14px;
    }
    
    .mqb-form-field {
        margin-bottom: 24px;
    }
    
    .mqb-input,
    .mqb-contact-input {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .mqb-next-button,
    .mqb-submit-button {
        padding: 16px 32px;
        font-size: 16px;
        min-height: 48px; /* Ensure touch target is at least 44px */
    }
    
    .mqb-back-button {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
        margin-bottom: 16px;
    }
    
    .mqb-contact-form {
        padding: 16px 0;
    }
}

/* Tablet styles */
@media (min-width: 600px) and (max-width: 1024px) {
    .mqb-quote-form {
        padding: 24px 20px;
    }
    
    .mqb-option-card {
        min-height: 180px;
    }
}

/* Ensure all interactive elements meet touch target requirements */
.mqb-option-card,
.mqb-next-button,
.mqb-submit-button,
.mqb-back-button,
.mqb-btn,
.mqb-retry-button,
.mqb-dismiss-error {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation; /* Prevent double-tap zoom */
    -webkit-tap-highlight-color: rgba(20, 184, 166, 0.2);
}

/* Enhanced mobile touch targets - ensure all buttons are easily tappable */
@media (max-width: 768px) {
    .mqb-option-card {
        min-height: 140px; /* Larger touch area for cards */
        padding: 20px 16px;
    }
    
    .mqb-next-button,
    .mqb-submit-button,
    .mqb-btn {
        min-height: 50px; /* Larger buttons on mobile */
        padding: 16px 24px;
        font-size: 17px;
    }
    
    .mqb-back-button {
        min-height: 48px;
        padding: 14px 20px;
    }
    
    /* Ensure form inputs are large enough for easy tapping */
    .mqb-input,
    .mqb-contact-input {
        min-height: 48px;
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Larger checkboxes and radio buttons if used */
    input[type="checkbox"],
    input[type="radio"] {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
    }
}

/* Improve touch feedback */
@media (hover: none) and (pointer: coarse) {
.mqb-option-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.mqb-option-card:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2), 0 8px 24px rgba(20, 184, 166, 0.25);
}

.mqb-option-card:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}
    
    .mqb-next-button:active,
    .mqb-submit-button:active {
        transform: scale(0.98);
    }
}

.mqb-option-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mqb-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(20, 184, 166, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mqb-option-card:hover {
    border-color: #14b8a6;
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(20, 184, 166, 0.25);
    background: #fafafa;
}

.mqb-option-card:hover::before {
    opacity: 1;
}

.mqb-option-card:active {
    transform: translateY(-3px);
    transition: transform 0.1s ease;
}

.mqb-option-card.selected {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    border-color: #0d9488;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(20, 184, 166, 0.4);
    animation: selectedPulse 0.5s ease-out;
}

@keyframes selectedPulse {
    0% { transform: translateY(-4px) scale(1); }
    50% { transform: translateY(-4px) scale(1.02); }
    100% { transform: translateY(-4px) scale(1); }
}

/* Enhanced price display in option cards */
.mqb-option-card[data-price]:not([data-price="0"]):not([data-price=""])::after {
    content: attr(data-price);
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mqb-option-card:hover[data-price]:not([data-price="0"]):not([data-price=""])::after,
.mqb-option-card.selected[data-price]:not([data-price="0"]):not([data-price=""])::after {
    opacity: 1;
}

.mqb-option-card.selected[data-price]:not([data-price="0"]):not([data-price=""])::after {
    background: rgba(255, 255, 255, 0.3);
    content: '+£' + attr(data-price);
}

.mqb-option-card.selected::before {
    opacity: 0;
}

.mqb-option-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    animation: checkmark 0.3s ease-out;
}

@keyframes checkmark {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.mqb-option-card.selecting {
    animation: pulse 0.4s ease;
}

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

.mqb-option-icon {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.mqb-option-card:hover .mqb-option-icon {
    transform: scale(1.1);
}

.mqb-option-card.selected .mqb-option-icon {
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.mqb-option-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: inherit;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.mqb-option-description {
    font-size: 15px;
    color: inherit;
    opacity: 0.9; /* Improved from 0.85 for better contrast */
    line-height: 1.5;
    margin: 0;
}

.mqb-option-card.selected .mqb-option-description {
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95); /* Ensure good contrast on selected card */
}

/* ============================================
   ENHANCED CONTACT FORM
   ============================================ */
.mqb-contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
}

.mqb-form-field {
    margin-bottom: 28px;
    position: relative;
}

.mqb-form-field:last-child {
    margin-bottom: 0;
}

.mqb-form-field label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #374151;
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.5;
}

.mqb-required {
    color: #14b8a6;
    font-weight: bold;
    margin-left: 4px;
}

.mqb-input,
.mqb-contact-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    font-family: inherit;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-weight: 400;
    line-height: 1.5;
    color: #1f2937;
}

.mqb-input::placeholder,
.mqb-contact-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.mqb-input:focus,
.mqb-contact-input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1), 0 2px 8px rgba(20, 184, 166, 0.15);
    background: #ffffff;
    transform: none;
}

.mqb-input:focus-visible,
.mqb-contact-input:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

.mqb-input.error,
.mqb-contact-input.error,
.mqb-input.mqb-field-has-error,
.mqb-contact-input.mqb-field-has-error {
    border-color: #d32f2f;
    background: #fff5f5;
    padding-right: 45px; /* Make room for icon */
}

.mqb-input.error:focus,
.mqb-contact-input.error:focus,
.mqb-input.mqb-field-has-error:focus,
.mqb-contact-input.mqb-field-has-error:focus {
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
    border-color: #d32f2f;
}

.mqb-input.mqb-field-has-success,
.mqb-contact-input.mqb-field-has-success {
    border-color: #00a32a;
    background: #f0fdf4;
    padding-right: 45px; /* Make room for icon */
}

.mqb-input.mqb-field-has-success:focus,
.mqb-contact-input.mqb-field-has-success:focus {
    box-shadow: 0 0 0 3px rgba(0, 163, 42, 0.1);
    border-color: #00a32a;
}

/* Field icons for validation feedback */
.mqb-form-field {
    position: relative;
}

.mqb-field-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
}

.mqb-field-icon-error {
    color: #d63638;
}

.mqb-field-icon-success {
    color: #00a32a;
}

/* Ensure inputs with icons have proper padding - using class-based approach for better browser support */
.mqb-form-field.has-icon .mqb-input,
.mqb-form-field.has-icon .mqb-contact-input {
    padding-right: 45px;
}

/* Step validation error summary */
.mqb-step-validation-error {
    background: #fef2f2;
    border: 2px solid #d63638;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #991b1b;
    animation: slideDown 0.3s ease;
}

.mqb-step-validation-error strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.mqb-step-validation-error ul {
    margin: 0;
    padding-left: 20px;
}

.mqb-step-validation-error li {
    margin-bottom: 4px;
}

/* Success message */
.mqb-success-message {
    color: #00a32a;
    font-size: 13px;
    display: block;
    margin-top: 6px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.mqb-error-message {
    color: #d32f2f;
    font-size: 13px;
    display: block;
    margin-top: 6px;
    animation: slideDown 0.3s ease;
}

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

.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

textarea.mqb-input {
    min-height: 120px;
    resize: vertical;
}

select.mqb-input {
    cursor: pointer;
}

/* ============================================
   ENHANCED BUTTONS
   ============================================ */
.mqb-next-button,
.mqb-submit-button,
.mqb-btn {
    background: #61ce70;
    color: #ffffff;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(97, 206, 112, 0.3);
    text-transform: none;
    letter-spacing: 0;
    font-family: inherit;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.mqb-next-button::before,
.mqb-submit-button::before,
.mqb-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mqb-next-button:hover::before,
.mqb-submit-button:hover::before,
.mqb-btn:hover::before {
    width: 300px;
    height: 300px;
}

.mqb-next-button:hover,
.mqb-submit-button:hover,
.mqb-btn:hover {
    background: #4caf50;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.mqb-next-button:active,
.mqb-submit-button:active,
.mqb-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(97, 206, 112, 0.3);
}

.mqb-next-button:disabled,
.mqb-submit-button:disabled,
.mqb-btn:disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mqb-back-button {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mqb-back-button:hover {
    background: #f9fafb;
    border-color: #14b8a6;
    color: #14b8a6;
    transform: translateX(-2px);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.15);
}

.mqb-back-button:active {
    transform: translateX(0);
}

.mqb-back-button:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.mqb-btn-primary {
    background: #14b8a6;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.mqb-btn-primary:hover {
    background: #0d9488;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.mqb-btn-secondary {
    background: #fff;
    color: #666;
    border: 2px solid #e0e0e0;
    box-shadow: none;
}

.mqb-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #14b8a6;
    color: #14b8a6;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.mqb-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

.mqb-loading-content {
    background: white;
    padding: 48px 64px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 320px;
    width: 90%;
}

.mqb-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #14b8a6;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Skeleton loading states */
.mqb-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.mqb-skeleton-text {
    height: 16px;
    margin-bottom: 12px;
}

.mqb-skeleton-text:last-child {
    margin-bottom: 0;
    width: 60%;
}

.mqb-skeleton-card {
    height: 200px;
    border-radius: 16px;
}

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

.mqb-loading-message {
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

/* Empty states */
.mqb-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.mqb-empty-state-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.mqb-empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.mqb-empty-state-message {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Progress save indicator */
.mqb-save-indicator {
    animation: slideUpFadeIn 0.3s ease;
}

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

/* Retry button styling */
.mqb-retry-button {
    min-width: 100px;
}

.mqb-dismiss-error {
    min-width: 80px;
}

/* ============================================
   RESTORE NOTICE
   ============================================ */
.mqb-restore-notice {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #14b8a6;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    text-align: center;
    animation: slideDown 0.5s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.mqb-restore-notice p {
    margin: 0 0 16px 0;
    color: #0d9488;
}

.mqb-restore-notice p:first-child {
    font-size: 18px;
    margin-bottom: 8px;
}

.mqb-restore-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.mqb-restore-buttons .mqb-btn {
    width: auto;
    padding: 12px 28px;
}

/* ============================================
   ERROR NOTICE
   ============================================ */
.mqb-error-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    color: #856404;
    animation: slideDown 0.4s ease;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.mqb-error-notice strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

/* ============================================
   SUCCESS PAGE - CLEAN UNIFIED LAYOUT
   
   UNIFIED DESIGN SYSTEM:
   - All sections: 0px margins, 0px padding (on wrapper)
   - All headers (h3): 18px top/bottom, 30px left/right padding
   - All content areas: 30px padding on all sides
   - All sections: 1px solid #e0e0e0 top/bottom borders
   - Consistent spacing and positioning throughout
   ============================================ */

/* Thank You Page Wrapper */
.mqb-thankyou-page {
    margin: 0;
    padding: 0;
    background: white;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Success Page Container */
.mqb-quote-step.mqb-success-step {
    display: none;
}

.mqb-quote-step.mqb-success-step.active {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background: white;
}

/* ============================================
   UNIFIED COMPONENT WRAPPER SYSTEM
   All layout components use consistent spacing
   ============================================ */
.mqb-layout-component {
    padding: 0 !important;
    margin: 0 !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Section ordering */
.mqb-success-step .success-message {
    order: 1;
}

.mqb-success-step .product-display {
    order: 2;
}

.mqb-success-step .quote-summary {
    order: 3;
}

.mqb-success-step .price-match-section {
    order: 4;
}

.mqb-success-step .mqb-cta-section {
    order: 5;
}

.mqb-success-step .next-steps-section {
    order: 6;
}

.mqb-success-step .contact-info-section {
    order: 7;
}

.mqb-success-step .contact-info-section.terms-conditions-section {
    order: 8;
}

/* ============================================
   SECTION BORDER MANAGEMENT
   ============================================ */

/* First section has no top border */
.mqb-success-step > *:first-child,
.mqb-thankyou-page > *:first-child {
    border-top: none !important;
}

/* Last section has no bottom border */
.mqb-success-step > *:last-child,
.mqb-thankyou-page > *:last-child {
    border-bottom: none !important;
}

/* Product display specific overrides - already handled in unified section system above */

/* ============================================
   UNIFIED SECTION SYSTEM
   All sections use consistent base styles
   ============================================ */
.success-message,
.quote-summary,
.recommended-product-card,
.product-display,
#product-display,
.price-match-section,
.next-steps-section,
.contact-info-section,
.terms-conditions-section,
.mqb-success-step .success-message,
.mqb-success-step .quote-summary,
.mqb-success-step .recommended-product-card,
.mqb-success-step .product-display,
.mqb-success-step #product-display,
.mqb-success-step .price-match-section,
.mqb-success-step .next-steps-section,
.mqb-success-step .contact-info-section,
.mqb-success-step .contact-info-section.terms-conditions-section,
.mqb-success-step .terms-conditions-section,
.mqb-thankyou-page .success-message,
.mqb-thankyou-page .quote-summary,
.mqb-thankyou-page .product-display,
.mqb-thankyou-page .price-match-section,
.mqb-thankyou-page .next-steps-section,
.mqb-thankyou-page .contact-info-section,
.mqb-thankyou-page .terms-conditions-section,
.mqb-layout-component.mqb-component-product,
.mqb-layout-component.mqb-component-contact_info,
.mqb-layout-component.mqb-component-price_match,
.mqb-layout-component.mqb-component-quote_summary,
.mqb-layout-component.mqb-component-next_steps,
.mqb-layout-component.mqb-component-terms_conditions,
.mqb-layout-component.mqb-component-success_message,
.mqb-layout-component.mqb-component-cta_button,
.mqb-layout-component.mqb-component-text_block {
    margin: 0 0 24px 0 !important;
    padding: 0px !important;
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden !important;
}

/* Success message - special handling (no border, transparent background) */
.success-message,
.mqb-success-step .success-message,
.mqb-thankyou-page .success-message,
.mqb-layout-component.mqb-component-success_message {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Ensure standalone components have consistent borders */
.quote-summary:not(.mqb-layout-component .quote-summary),
.recommended-product-card:not(.mqb-layout-component .recommended-product-card),
.product-display:not(.mqb-layout-component .product-display),
#product-display:not(.mqb-layout-component #product-display),
.price-match-section:not(.mqb-layout-component .price-match-section),
.next-steps-section:not(.mqb-layout-component .next-steps-section),
.contact-info-section:not(.mqb-layout-component .contact-info-section),
.terms-conditions-section:not(.mqb-layout-component .terms-conditions-section) {
    border: 1px solid #f0f0f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    background: #ffffff !important;
    overflow: hidden !important;
    margin: 0 0 24px 0 !important;
}

/* ============================================
   COMPONENT-SPECIFIC OVERRIDES
   Maintain consistent structure across all components
   ============================================ */
/* Next steps component wrapper - matches other components exactly */
.mqb-layout-component.mqb-component-next_steps,
.mqb-thankyou-page .mqb-layout-component.mqb-component-next_steps,
.mqb-success-step .mqb-layout-component.mqb-component-next_steps,
.mqb-template-portfolio .mqb-layout-component.mqb-component-next_steps {
    margin: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
    padding: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    background: white !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

/* CTA button component wrapper - follows unified section system */
.mqb-layout-component.mqb-component-cta_button,
.mqb-thankyou-page .mqb-layout-component.mqb-component-cta_button,
.mqb-success-step .mqb-layout-component.mqb-component-cta_button {
    display: block !important;
    overflow: hidden;
    position: relative;
    /* All spacing handled by unified section system above */
}

/* Remove all pseudo-elements for clean layout */
.quote-summary::before,
.quote-summary::after,
.recommended-product-card::before,
.recommended-product-card::after,
.product-display::before,
.product-display::after,
.price-match-section::before,
.price-match-section::after,
.next-steps-section::before,
.next-steps-section::after,
.contact-info-section::before,
.contact-info-section::after {
    display: none !important;
    content: none !important;
}

/* ============================================
   SUCCESS MESSAGE CONTENT
   Content area follows unified padding system
   ============================================ */
.success-message,
.mqb-success-step .success-message,
.mqb-thankyou-page .success-message {
    text-align: center;
    /* Padding: 30px on all sides - handled by unified content area system */
}

.success-message > * {
    position: relative;
    z-index: 1;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    animation: successIconBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successIconBounce {
    0% { 
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.success-message h2 {
    color: #1a1a1a;
    margin-bottom: 16px;
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInDown 0.6s ease 0.2s both;
}

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

.success-message .subtitle {
    color: #333;
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 500;
    animation: slideInDown 0.6s ease 0.4s both;
    line-height: 1.5;
}

.success-message-text {
    color: #333;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
    animation: slideInDown 0.6s ease 0.6s both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.success-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    opacity: 0;
    animation: confettiFall 3s ease-out infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(500px) rotate(360deg);
        opacity: 0;
    }
}

/* Quote summary - already handled in unified section system */
.quote-summary {
    text-align: left;
}

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

/* ============================================
   UNIFIED SECTION HEADERS
   All section headers use consistent styling
   ============================================ */
.quote-summary h3,
.recommended-product-card h3,
.product-display h3,
.price-match-section h3,
.next-steps-section h3,
.contact-info-section h3,
.terms-conditions-section h3,
.mqb-success-step .quote-summary h3,
.mqb-success-step .recommended-product-card h3,
.mqb-success-step .product-display h3,
.mqb-success-step .next-steps-section h3,
.mqb-success-step .contact-info-section h3,
.mqb-success-step .price-match-section h3,
.mqb-success-step .terms-conditions-section h3,
.mqb-thankyou-page .next-steps-section h3,
.mqb-thankyou-page .contact-info-section h3,
.mqb-thankyou-page .price-match-section h3,
.mqb-thankyou-page .terms-conditions-section h3,
.mqb-thankyou-page .quote-summary h3,
.mqb-thankyou-page .product-display h3,
.mqb-template-portfolio .next-steps-section h3,
.mqb-template-portfolio .contact-info-section h3,
.mqb-template-portfolio .price-match-section h3,
.mqb-template-portfolio .quote-summary h3,
.mqb-template-portfolio .product-display h3 {
    margin: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
    padding: 24px 40px 16px 40px !important;
    padding-top: 24px !important;
    padding-bottom: 16px !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    background: transparent !important;
    color: #1a1a1a !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
    border: none !important;
    border-bottom: 2px solid var(--mqb-primary-color, #6366f1) !important;
    border-radius: 0 !important;
    display: block !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    box-sizing: border-box;
}

/* Removed quote-summary-header - now using h3 directly */

/* ============================================
   UNIFIED CONTENT AREAS
   All content areas use consistent 30px padding
   ============================================ */
.quote-details,
.next-steps-content,
.contact-info-content,
.price-match-content,
.mqb-text-block,
.success-message,
.recommended-product-card .product-content,
.product-display .product-content,
.mqb-template-portfolio .product-content,
.mqb-template-dashboard .product-content,
.mqb-template-magazine .product-content,
.mqb-template-newsletter .product-content,
.mqb-template-corporate .product-content,
.mqb-layout-component .product-content,
.mqb-success-step .quote-details,
.mqb-success-step .next-steps-content,
.mqb-success-step .contact-info-content,
.mqb-success-step .price-match-content,
.mqb-success-step .product-content,
.mqb-success-step .mqb-text-block,
.mqb-success-step .success-message,
.mqb-thankyou-page .quote-details,
.mqb-thankyou-page .next-steps-content,
.mqb-thankyou-page .contact-info-content,
.mqb-thankyou-page .price-match-content,
.mqb-thankyou-page .mqb-text-block,
.mqb-thankyou-page .success-message,
.mqb-layout-component .mqb-text-block {
    padding: 32px 40px !important;
    padding-top: 32px !important;
    padding-bottom: 32px !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    margin: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
    background: white !important;
    color: #374151 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
}

/* Product content specific - center aligned */
.recommended-product-card .product-content,
.product-display .product-content,
.mqb-template-portfolio .product-content,
.mqb-template-dashboard .product-content,
.mqb-template-magazine .product-content,
.mqb-template-newsletter .product-content,
.mqb-template-corporate .product-content,
.mqb-layout-component .product-content,
.mqb-success-step .product-content {
    text-align: center;
    border: none !important;
    box-shadow: none !important;
}

#quote-details,
#mqb-summary-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* Professional table format for summary - Clean Modern Design */
.quote-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
}

.quote-summary-table tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.quote-summary-table tr:last-child {
    border-bottom: none;
}

.quote-summary-table tr:nth-child(even) {
    background: transparent;
}

.quote-summary-table tr:hover {
    background: #fafafa;
}

.quote-summary-table td {
    padding: 20px 24px;
    font-size: 16px;
    line-height: 1.6;
}

.quote-summary-table td:first-child {
    font-weight: 600;
    color: rgba(99, 102, 241, 0.8);
    width: 40%;
    border-right: 1px solid #f0f0f0;
    vertical-align: top;
    font-size: 15px;
}

.quote-summary-table td:last-child {
    color: #374151;
    vertical-align: top;
    font-size: 16px;
}

/* Legacy paragraph format support - kept for backward compatibility */
/* Note: Modern implementation uses table format (quote-summary-table) */
#quote-details p,
#mqb-summary-content p {
    margin: 0 0 20px 0;
    padding: 18px 20px 18px 25px;
    background: white;
    border-left: 5px solid var(--mqb-primary-color, #6366f1);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
    list-style: none;
    color: #333;
    position: relative; /* Required for ::before pseudo-element */
}

#quote-details p::before,
#mqb-summary-content p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(99, 102, 241, 0.08);
    transition: width 0.3s ease;
}

/* Remove hover effects for formal look */
#quote-details p:hover,
#mqb-summary-content p:hover {
    background: #f8f9fa;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left-color: var(--mqb-primary-color, #6366f1);
}

#quote-details p:hover::before,
#mqb-summary-content p:hover::before {
    width: 100%;
}

#quote-details strong,
#mqb-summary-content strong {
    color: #1a1a1a;
    font-size: 16px;
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

#quote-details p span,
#mqb-summary-content p span {
    color: #333;
    font-size: 16px;
    font-weight: 400;
}

/* Separator dots added via ::after pseudo-element */

/* ============================================
   CALL-TO-ACTION BUTTON - MATCHES PRICE MATCH BUTTON
   ============================================ */
/* ============================================
   UNIFIED CTA SECTION
   Consistent with other content areas
   ============================================ */
.mqb-cta-section,
.mqb-success-step .mqb-cta-section,
.mqb-thankyou-page .mqb-cta-section,
.mqb-layout-component.mqb-component-cta_button .mqb-cta-section {
    margin: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
    padding: 30px !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    text-align: center;
    width: 100% !important;
    max-width: 100% !important;
    background: white !important;
    box-sizing: border-box;
}

.mqb-cta-button,
.mqb-success-step .mqb-cta-button {
    display: inline-block;
    padding: 14px 32px !important;
    background: var(--mqb-primary-color, #6366f1);
    color: white !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    border: none;
    box-shadow: none;
    cursor: pointer;
    text-align: center;
    margin: 0;
    transition: background-color 0.2s;
}

.mqb-cta-button:hover,
.mqb-success-step .mqb-cta-button:hover {
    background: var(--mqb-accent-color, #14b8a6);
    color: white !important;
    transform: none;
    box-shadow: none;
}

.mqb-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mqb-cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.mqb-cta-button:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5);
    color: white !important;
    text-decoration: none;
    animation: none;
}

.mqb-cta-button:active {
    transform: translateY(0px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Responsive CTA Button */
@media (max-width: 768px) {
    .mqb-cta-button {
        padding: 16px 40px;
        font-size: 16px;
        width: auto;
        max-width: 90%;
    }
}

/* ============================================
   PRODUCT DISPLAY - STANDARDIZED
   ============================================ */
.product-display {
    margin: 0 0 40px 0;
}

/* Recommended Product Section - Standardized */
.recommended-product-card,
.product-display {
    margin: 40px 0;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background: white;
    animation: none !important;
}

.recommended-product-card h3,
.product-display h3 {
    background: var(--mqb-primary-color, #6366f1) !important;
    color: white !important;
    padding: 18px 30px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid rgba(0,0,0,0.2) !important;
    display: block !important;
}

.recommended-product-card .product-label {
    display: none !important; /* Hide old label style */
}

.recommended-product-card .product-content,
.product-display .product-content,
.mqb-template-portfolio .product-content,
.mqb-template-dashboard .product-content,
.mqb-template-magazine .product-content,
.mqb-template-newsletter .product-content,
.mqb-template-corporate .product-content,
.mqb-layout-component .product-content,
.mqb-success-step .product-content {
    padding: 30px;
    text-align: center;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(0, 0, 0, 1);
}

/* Override standardized h3 styles for product label */
.product-label h3 {
    margin: 0 0 20px 0 !important;
    padding: 8px 20px !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%) !important;
    color: #6366f1 !important;
    font-size: 14px !important;
    text-align: center !important;
    border-radius: 20px !important;
}

/* ============================================
   STANDARDIZED PRODUCT ELEMENTS
   ============================================ */
.product-image,
.mqb-success-step .product-image,
.recommended-product-card .product-image,
.product-display .product-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px auto !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: cover;
    transition: none;
}

.product-image:hover,
.mqb-success-step .product-image:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Lazy loading support */
.product-image[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image[loading="lazy"].loaded {
    opacity: 1;
}

.product-recommendation-text,
.mqb-success-step .product-recommendation-text {
    color: var(--mqb-primary-color, #6366f1);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0 !important;
    line-height: 1.4;
}

.product-name,
.mqb-success-step .product-name {
    color: #333;
    font-size: 24px;
    margin: 0 0 20px 0 !important;
    font-weight: 700;
    line-height: 1.3;
}

.product-price,
.mqb-success-step .product-price {
    margin: 32px auto 24px !important;
    padding: 32px 40px !important;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
    background-color: #f9fafb !important;
    background-image: none !important;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    position: relative;
    border: 2px solid #e5e7eb !important;
    text-align: center;
    min-width: 280px;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.product-price:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

/* Custom price color support */
.product-price[data-price-color] {
    border: none !important;
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Price amount - very large, bold, teal */
.product-price > *:first-child {
    font-size: 56px;
    color: #14b8a6;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 8px 0;
    display: block;
    letter-spacing: -0.02em;
}

/* Price breakdown display */
.product-price-breakdown {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
    text-align: left;
}

.product-price-breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.product-price-breakdown-item:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #374151;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

/* Custom price color for the amount */
.product-price[data-price-color] > *:first-child {
    color: var(--product-price-color, #14b8a6);
}

/* "+ VAT" text - smaller, bold, dark grey */
.product-price .price-vat {
    font-size: 18px;
    color: #333;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 0;
    display: block;
    line-height: 1.4;
}

/* Price disclaimer - much smaller, regular weight, dark grey */
.price-disclaimer {
    font-size: 13px;
    color: #333;
    font-weight: 400;
    margin-top: 16px;
    font-style: normal;
    line-height: 1.5;
    display: block;
}

.product-description,
.mqb-success-step .product-description {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0;
    border: none !important;
}

/* Clean, Appealing Product Features */
.product-features,
.mqb-success-step .product-features {
    list-style: none;
    padding: 0 !important;
    margin: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
    text-align: left;
    width: fit-content !important;
    max-width: 100% !important;
}

.product-features:last-child,
.mqb-success-step .product-features:last-child {
    margin-bottom: 0 !important;
}

.product-features li,
.mqb-success-step .product-features li {
    padding: 10px 20px 10px 50px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin: 0 0 12px 0 !important;
    background: #ffffff !important;
    border: none !important;
    border-left: 3px solid var(--mqb-primary-color, #6366f1) !important;
    border-radius: 0;
    font-size: 15px !important;
    color: #333 !important;
    line-height: 1.6 !important;
    position: relative !important;
    box-shadow: none !important;
}

.product-features li:last-child,
.mqb-success-step .product-features li:last-child {
    margin-bottom: 0 !important;
}

.product-features li::before {
    content: '\2713' !important;
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background: var(--mqb-primary-color, #6366f1) !important;
    color: white !important;
    border-radius: 50% !important;
    display: block !important;
    text-align: center !important;
    line-height: 24px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    font-family: Arial, sans-serif !important;
    z-index: 1 !important;
}

.product-features li:hover {
    background: #f8f9fa;
    border-left-color: var(--mqb-accent-color, #14b8a6);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transform: translateX(4px);
}

.product-features li:last-child {
    margin-bottom: 0;
}

/* ============================================
   PRICE MATCH & OTHER SECTIONS - STANDARDIZED
   ============================================ */
/* Remove animations for clean, static layout */
.price-match-section,
.next-steps-section,
.contact-info-section {
    animation: none !important;
    transition: none !important;
}

/* Last section should have no bottom margin */
.mqb-success-step > *:last-child {
    margin-bottom: 0 !important;
}

.price-match-section {
    text-align: center;
}

.price-match-section h3::before {
    content: '🏆';
    display: block;
    font-size: 40px;
    margin-bottom: 10px;
}

/* Price match content - already handled in unified content areas */

/* Standardized buttons */
.price-match-call-button,
.mqb-success-step .price-match-call-button,
.mqb-thankyou-page .price-match-call-button {
    display: inline-block;
    background: var(--mqb-primary-color, #6366f1);
    color: white !important;
    padding: 14px 32px !important;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    margin: 20px 0 20px 0 !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border: none;
    box-shadow: none;
    transition: background-color 0.2s;
}

.price-match-call-button:hover,
.mqb-success-step .price-match-call-button:hover {
    background: var(--mqb-accent-color, #14b8a6);
    color: white !important;
    transform: none;
    box-shadow: none;
}

.price-match-call-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.price-match-call-button:hover::before {
    width: 300px;
    height: 300px;
}

.price-match-call-button:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5);
    color: white;
    text-decoration: none;
    animation: none;
}

.price-match-call-button .phone-icon {
    font-size: 22px;
    margin-right: 10px;
    display: inline-block;
    animation: ring 1.5s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

/* Button pulse animation to make buttons stand out */
@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
        transform: scale(1.02);
    }
}

/* Subtle glow animation for extra attention */
@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3), 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3), 0 0 20px 5px rgba(99, 102, 241, 0.2);
    }
}

/* Next steps section - already handled in unified section system */
.next-steps-section {
    text-align: left;
    display: block;
}

/* Section headers already standardized above */

/* Next steps content standardized */
.next-steps-content {
    color: #333 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

.next-steps-content * {
    color: #333;
}

/* Reset heading colors within next-steps */
.next-steps-content h1,
.next-steps-content h2,
.next-steps-content h3,
.next-steps-content h4,
.next-steps-content h5,
.next-steps-content h6 {
    color: inherit;
}

/* Standardized list spacing */
.next-steps-content ol,
.contact-info-content ol,
.price-match-content ol,
.mqb-success-step .next-steps-content ol,
.mqb-success-step .contact-info-content ol,
.mqb-success-step .price-match-content ol {
    padding-left: 0 !important;
    margin: 0 0 20px 0 !important;
    counter-reset: step-counter;
    list-style: none;
}

.next-steps-content ol li,
.contact-info-content ol li,
.price-match-content ol li,
.mqb-success-step .next-steps-content ol li,
.mqb-success-step .contact-info-content ol li,
.mqb-success-step .price-match-content ol li {
    margin: 0 0 16px 0 !important;
    padding: 8px 0 8px 48px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 48px !important;
    padding-right: 0 !important;
    line-height: 1.7 !important;
    background: transparent !important;
    border: none !important;
    position: relative;
    counter-increment: step-counter;
    color: #374151 !important;
    font-size: 16px !important;
    margin-left: 0 !important;
}

.next-steps-content ol li:last-child,
.contact-info-content ol li:last-child,
.price-match-content ol li:last-child,
.mqb-success-step .next-steps-content ol li:last-child,
.mqb-success-step .contact-info-content ol li:last-child,
.mqb-success-step .price-match-content ol li:last-child {
    margin-bottom: 0 !important;
}

.next-steps-content ol li::before,
.contact-info-content ol li::before,
.price-match-content ol li::before,
.mqb-success-step .next-steps-content ol li::before,
.mqb-success-step .contact-info-content ol li::before,
.mqb-success-step .price-match-content ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 8px;
    width: 32px;
    height: 32px;
    background: var(--mqb-primary-color, #6366f1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}

.next-steps-content ol li:hover {
    background: transparent;
    border-color: var(--mqb-primary-color, #6366f1);
    transform: none;
    box-shadow: none;
}

.next-steps-content ul,
.contact-info-content ul,
.price-match-content ul,
.mqb-success-step .next-steps-content ul,
.mqb-success-step .contact-info-content ul,
.mqb-success-step .price-match-content ul {
    list-style: none;
    padding-left: 0 !important;
    margin: 0 0 20px 0 !important;
}

.next-steps-content ul li,
.contact-info-content ul li,
.price-match-content ul li,
.mqb-success-step .next-steps-content ul li,
.mqb-success-step .contact-info-content ul li,
.mqb-success-step .price-match-content ul li {
    padding: 12px 0 12px 24px !important;
    margin: 0 0 12px 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    position: relative;
    color: #374151 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}

.next-steps-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--mqb-primary-color, #6366f1);
    font-weight: 600;
    font-size: 16px;
    opacity: 0.8;
}

.next-steps-content ul li:hover {
    background: transparent;
    border-color: var(--mqb-primary-color, #6366f1);
    transform: none;
    box-shadow: none;
}

.contact-info-section {
    animation-delay: 1.6s;
}

.contact-info-content {
    color: #333;
}

.contact-info-content * {
    color: #333;
}

/* Reset heading colors within contact-info */
.contact-info-content h1,
.contact-info-content h2,
.contact-info-content h3,
.contact-info-content h4,
.contact-info-content h5,
.contact-info-content h6 {
    color: inherit;
}

/* Standardized paragraph spacing */
.contact-info-content p,
.next-steps-content p,
.price-match-content p,
.quote-details p,
.mqb-success-step .contact-info-content p,
.mqb-success-step .next-steps-content p,
.mqb-success-step .price-match-content p,
.mqb-success-step .quote-details p {
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #374151 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.contact-info-content p:last-child,
.next-steps-content p:last-child,
.price-match-content p:last-child,
.quote-details p:last-child,
.mqb-success-step .contact-info-content p:last-child,
.mqb-success-step .next-steps-content p:last-child,
.mqb-success-step .price-match-content p:last-child,
.mqb-success-step .quote-details p:last-child {
    margin-bottom: 0 !important;
}

.contact-info-content p strong {
    color: #333;
}

.contact-info-content p:hover {
    background: white;
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
    border-left-color: #4f46e5;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .mqb-quote-form {
        padding: 15px;
        max-width: 100%;
        margin: 0;
    }

    .mqb-options-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        max-width: 100%;
        width: 100%;
    }

    .mqb-option-card {
        padding: 24px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .mqb-quote-form h2,
    .mqb-quote-step h3 {
        font-size: 26px;
    }

    .mqb-form-description,
    .mqb-step-subtitle {
        font-size: 16px;
    }
    
    .mqb-contact-form {
        max-width: 100%;
        padding: 15px;
    }

    /* Success Page Mobile */
    .success-message {
        padding: 40px 25px;
        margin-bottom: 30px;
    }
    
    .product-display {
        margin-bottom: 30px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
        margin-bottom: 20px;
    }

    .success-message h2 {
        font-size: 32px;
    }

    .success-message .subtitle {
        font-size: 18px;
    }

    .success-message-text {
        font-size: 16px;
    }

    /* Success Page Container Mobile */
    .mqb-success-step {
        padding: 10px 0;
    }

    /* Sections Mobile */
    .quote-summary,
    .recommended-product-card,
    .price-match-section,
    .next-steps-section,
    .contact-info-section {
        padding: 0;
        margin: 0 0 30px 0;
        border-radius: 16px;
    }
    
    .mqb-success-step > *:last-child {
        margin-bottom: 0 !important;
    }

    .quote-summary h3,
    .recommended-product-card h3,
    .price-match-section h3,
    .next-steps-section h3,
    .contact-info-section h3 {
        font-size: 22px;
        padding: 20px 20px;
    }

    .quote-details {
        padding: 20px 15px !important;
    }

    /* Product Mobile */
    .recommended-product-card {
        padding: 30px 20px !important;
    }

    .product-recommendation-text {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .product-name {
        font-size: 24px;
        margin: 20px 0;
    }

    .product-image {
        margin: 20px 0;
        max-width: 100%;
    }

    .product-description {
        font-size: 15px;
        padding: 15px;
        margin: 20px 0;
    }

    .product-price {
        font-size: 32px;
        padding: 18px 24px;
        margin: 20px 0;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .product-features li {
        padding: 14px 16px 14px 48px;
        font-size: 15px;
    }

    .product-features li::before {
        left: 14px;
        width: 22px;
        height: 22px;
        font-size: 14px;
        line-height: 22px;
        display: block;
    }

    /* Next Steps Mobile */
    .next-steps-content ol li {
        padding: 8px 0 8px 44px !important;
    }
    
    .next-steps-content ol li::before {
        width: 28px !important;
        height: 28px !important;
        left: 0 !important;
        top: 8px !important;
        font-size: 13px !important;
    }

    .next-steps-content ul li {
        padding: 14px 16px 14px 52px;
    }

    .next-steps-content ul li::before {
        width: 26px;
        height: 26px;
        left: 14px;
    }

    /* Price Match Mobile */
    .price-match-section h3::before {
        font-size: 36px;
    }

    .price-match-call-button {
        padding: 16px 40px;
        font-size: 16px;
    }

    /* Utility Mobile */
    .mqb-restore-buttons {
        flex-direction: column;
    }

    .mqb-restore-buttons .mqb-btn {
        width: 100%;
    }

    .mqb-loading-content {
        padding: 30px 30px;
    }

    /* Prevent zoom on input focus (iOS) */
    .mqb-input,
    .mqb-contact-input {
        font-size: 16px !important;
    }

    /* Larger touch targets for mobile */
    .mqb-option-card {
        min-height: 140px;
    }

    .mqb-next-button,
    .mqb-submit-button,
    .mqb-btn {
        padding: 18px 40px;
        font-size: 18px;
    }

    .mqb-back-button {
        padding: 14px 28px;
        font-size: 16px;
    }

    /* Summary Items Mobile */
    #quote-details p,
    #mqb-summary-content p {
        padding: 14px 16px;
        margin: 10px 0;
        font-size: 15px;
    }

    #quote-details strong,
    #mqb-summary-content strong {
        display: block;
        margin-bottom: 6px;
        min-width: auto;
        font-size: 13px;
    }

    #quote-details p span,
    #mqb-summary-content p span {
        display: block;
        margin-left: 0;
        font-size: 15px;
    }

    #quote-details p strong::after,
    #mqb-summary-content p strong::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .mqb-quote-form {
        padding: 12px;
        max-width: 100%;
    }
    
    .mqb-step-indicator {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .mqb-option-icon {
        font-size: 40px;
    }

    .mqb-option-title {
        font-size: 18px;
    }

    .mqb-option-description {
        font-size: 14px;
    }
    
    .mqb-contact-form {
        padding: 10px;
    }
    
    .mqb-form-field {
        margin-bottom: 20px;
    }

    /* Success Page Extra Small Mobile */
    .mqb-success-step {
        padding: 5px 0;
    }
    
    .success-message {
        padding: 30px 20px;
        margin-bottom: 25px;
    }
    
    .quote-summary,
    .recommended-product-card,
    .price-match-section,
    .next-steps-section,
    .contact-info-section {
        margin-bottom: 25px;
    }

    /* Extra Small Mobile - Success Page */
    .success-message {
        padding: 30px 20px;
        margin: 15px 0;
    }

    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }

    .success-message h2 {
        font-size: 28px;
    }

    .success-message .subtitle {
        font-size: 16px;
    }

    .success-message-text {
        font-size: 15px;
    }

    .quote-summary h3,
    .recommended-product-card h3 {
        font-size: 20px;
        padding: 18px 15px;
    }

    .quote-details {
        padding: 15px 12px !important;
    }

    #quote-details p,
    #mqb-summary-content p {
        padding: 12px 14px;
        font-size: 14px;
    }

    .product-recommendation-text {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .product-name {
        font-size: 22px;
    }

    .product-price {
        font-size: 28px;
        padding: 16px 20px;
    }

    .recommended-product-card {
        padding: 25px 15px !important;
    }
    
    /* Next Steps Extra Small Mobile */
    .next-steps-content ol li {
        padding: 8px 0 8px 40px !important;
        font-size: 15px !important;
    }
    
    .next-steps-content ol li::before {
        width: 26px !important;
        height: 26px !important;
        font-size: 12px !important;
        top: 6px !important;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Enhanced focus styles for keyboard navigation */
.mqb-option-card:focus,
.mqb-option-card:focus-visible {
    outline: 3px solid #14b8a6;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2), 0 8px 24px rgba(20, 184, 166, 0.25);
}

.mqb-input:focus,
.mqb-contact-input:focus,
.mqb-input:focus-visible,
.mqb-contact-input:focus-visible {
    outline: 3px solid #14b8a6;
    outline-offset: 2px;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1), 0 2px 8px rgba(20, 184, 166, 0.15);
}

.mqb-next-button:focus,
.mqb-submit-button:focus,
.mqb-btn:focus,
.mqb-back-button:focus,
.mqb-next-button:focus-visible,
.mqb-submit-button:focus-visible,
.mqb-btn:focus-visible,
.mqb-back-button:focus-visible {
    outline: 3px solid #14b8a6;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

/* Screen reader only content */
.mqb-sr-only {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Skip link for accessibility */
.mqb-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1a1a1a;
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
}

.mqb-skip-link:focus {
    top: 0;
    position: relative;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mqb-option-card {
        border-width: 3px;
    }

    .mqb-option-card.selected {
        border-width: 4px;
    }

    .mqb-input,
    .mqb-contact-input {
        border-width: 3px;
    }
}

/* ============================================
   FORMAL PROFESSIONAL STYLING FOR THANK YOU PAGE
   ============================================ */

/* Clean Document Container */
.mqb-success-step {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    box-shadow: none;
    border: none;
}

/* Remove casual animations for formal look */
.mqb-success-step .success-message,
/* Remove all animations for clean, simple look */
.mqb-success-step .quote-summary,
.mqb-success-step .product-display,
.mqb-success-step .recommended-product-card,
.mqb-success-step .next-steps-section,
.mqb-success-step .contact-info-section,
.mqb-success-step .price-match-section {
    animation: none !important;
    transition: none !important;
}

.mqb-success-step *:hover {
    transform: none !important;
}

/* Formal Success Message */
.mqb-success-step .success-message {
    text-align: center;
    padding: 0px;
    border-bottom: 2px solid #2c3e50;
    margin-bottom: 40px;
}

.mqb-success-step .success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: none !important;
}

.mqb-success-step .success-message h2 {
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 36px;
    font-weight: 700;
    font-family: 'Georgia', 'Times New Roman', serif;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1a1a1a !important;
    background-clip: unset !important;
    animation: none !important;
}

.mqb-success-step .success-message .subtitle {
    color: #4a5568;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 400;
    font-style: italic;
    animation: none !important;
}

.mqb-success-step .success-message-text {
    color: #4a5568;
    font-size: 16px;
    margin-bottom: 0;
    line-height: 1.7;
    animation: none !important;
}

/* Formal Quote Summary */
/* All sections in success step use same styling */
.mqb-success-step .quote-summary,
.mqb-success-step .recommended-product-card,
.mqb-success-step .product-display,
.mqb-success-step .next-steps-section,
.mqb-success-step .contact-info-section,
.mqb-success-step .price-match-section,
.mqb-success-step .terms-conditions-section {
    margin: 0 !important;
    padding: 0 !important;
    border: none;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    background: white;
}

/* Clean success step sections */
.mqb-success-step .contact-info-section,
.mqb-success-step .contact-info-section.terms-conditions-section {
    margin: 0 !important;
    padding: 0 !important;
    background: white;
}

.mqb-success-step .quote-summary:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transform: none;
}

/* All section headers already standardized above - removed duplicate */

/* Removed quote-summary-header - now using h3 directly */

/* All section headers already standardized above - no need for duplicate rules */

.mqb-success-step .quote-details {
    padding: 30px !important;
    margin: 0 !important;
    background: white !important;
    border: none !important;
}

/* Professional table layout for summary */
.mqb-success-step .quote-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
}

.mqb-success-step .quote-summary-table tr {
    border-bottom: 1px solid #e8e8e8;
}

.mqb-success-step .quote-summary-table tr:last-child {
    border-bottom: none;
}

.mqb-success-step .quote-summary-table tr:nth-child(even) {
    background: #fafafa;
}

.mqb-success-step .quote-summary-table td {
    padding: 16px 24px;
    font-size: 15px;
    line-height: 1.6;
}

.mqb-success-step .quote-summary-table td:first-child {
    font-weight: 600;
    color: var(--mqb-primary-color, #6366f1);
    width: 40%;
    border-right: 1px solid rgba(0,0,0,0.05);
    vertical-align: top;
}

.mqb-success-step .quote-summary-table td:last-child {
    color: #4a5568;
    vertical-align: top;
}

/* Legacy paragraph format support */
.mqb-success-step #quote-details p,
.mqb-success-step #mqb-summary-content p {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.mqb-success-step #quote-details p:hover,
.mqb-success-step #mqb-summary-content p:hover {
    background: #f8f9fa;
    transform: none;
    box-shadow: none;
    border-left-color: var(--mqb-primary-color, #6366f1);
}

.mqb-success-step #quote-details p::before,
.mqb-success-step #mqb-summary-content p::before {
    display: none;
}

.mqb-success-step #quote-details strong,
.mqb-success-step #mqb-summary-content strong {
    color: var(--mqb-primary-color, #6366f1);
    font-weight: 600;
    font-size: 15px;
}

.mqb-success-step #quote-details p span,
.mqb-success-step #mqb-summary-content p span {
    color: #4a5568;
    font-size: 15px;
    font-weight: 400;
}

/* Formal Product Display */
.mqb-success-step .product-display {
    margin: 0 !important;
    padding: 0 !important;
    border: none;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    background: white;
}

.mqb-success-step .recommended-product-card {
    text-align: center;
    animation: none !important;
}

.mqb-success-step .recommended-product-card .product-label {
    color: #2c3e50;
    font-size: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    padding: 6px 15px;
    background: #f5f5f5 !important;
    border: 1px solid #d0d0d0;
    border-radius: 0;
    font-family: Arial, sans-serif;
}

.mqb-success-step .product-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.mqb-success-step .product-image:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mqb-success-step .product-recommendation-text {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    font-style: italic;
}

.mqb-success-step .product-name {
    color: #1a1a1a;
    font-size: 28px;
    margin: 20px 0;
    font-weight: 700;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.mqb-success-step .product-price {
    margin: 30px 0;
    padding: 30px 40px;
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
    background-image: none !important;
    border-radius: 4px;
    border: none !important;
    box-shadow: none !important;
}

.mqb-success-step .product-price > *:first-child {
    font-size: 48px;
    color: #2c3e50;
    font-weight: 700;
}

.mqb-success-step .product-price .price-vat {
    font-size: 16px;
    color: #4a5568;
    font-weight: 500;
    margin-top: 8px;
}

.mqb-success-step .product-description {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.7;
    margin: 25px 0;
    padding: 20px;
    background: #fafafa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.mqb-success-step .product-features {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left;
    width: 100% !important;
    max-width: 100% !important;
}

.mqb-success-step .product-features li {
    padding: 16px 20px 16px 50px;
    margin: 0 0 12px 0;
    background: #ffffff;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--mqb-primary-color, #6366f1);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
}

.mqb-success-step .product-features li::before {
    content: '\2713' !important;
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background: var(--mqb-primary-color, #6366f1) !important;
    color: white !important;
    border-radius: 50% !important;
    display: block !important;
    text-align: center !important;
    line-height: 24px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    font-family: Arial, sans-serif !important;
    z-index: 1 !important;
}

.mqb-success-step .product-features li:hover {
    background: #f8f9fa;
    border-left-color: var(--mqb-accent-color, #14b8a6);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transform: translateX(4px);
}

.mqb-success-step .product-features li:last-child {
    margin-bottom: 0;
}

/* Formal Section Headers */
/* Success step headers already standardized above - removed duplicate */

.mqb-success-step .next-steps-section,
.mqb-success-step .contact-info-section,
.mqb-success-step .price-match-section {
    margin: 0 !important;
    padding: 0 !important;
    border: none;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    box-shadow: none;
    background: white;
}

/* Override margin for contact-info-section */
.mqb-success-step .contact-info-section {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}
}

/* Success step content areas already standardized above */

/* Success step lists already standardized above */

/* Clean CTA Section */
.mqb-success-step .mqb-cta-section {
    margin: 0 !important;
    padding: 20px 0 !important;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mqb-success-step .mqb-cta-button {
    display: inline-block;
    padding: 14px 36px;
    background: #2c3e50;
    color: white !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #1a252f;
    animation: none !important;
    font-family: Arial, sans-serif;
}

.mqb-success-step .mqb-cta-button::before {
    display: none;
}

.mqb-success-step .mqb-cta-button:hover {
    background: #34495e;
    transform: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    color: white !important;
}

/* Terms & Conditions */
.mqb-success-step .terms-conditions-section {
    margin: 0 !important;
    padding: 0 !important;
    border: none;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
    background: white;
}

.mqb-success-step .terms-conditions-section h3 {
    background: #2c3e50;
    color: white;
    padding: 20px 30px;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.mqb-success-step .terms-conditions-section .contact-info-content {
    padding: 30px !important;
    background: white !important;
    color: #333 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

.mqb-success-step .terms-conditions-section p {
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    color: #333 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

.mqb-success-step .terms-conditions-section p:last-child {
    margin-bottom: 0 !important;
}

/* Price Match Section */
.mqb-success-step .price-match-call-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid #1a252f;
    transition: background-color 0.2s;
}

.mqb-success-step .price-match-call-button:hover {
    background: #34495e;
    color: white;
}

/* Formal text blocks and buttons */
.mqb-success-step .mqb-text-block {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
    margin: 30px 0;
}

.mqb-success-step .mqb-button {
    display: inline-block;
    padding: 12px 28px;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid #1a252f;
    transition: background-color 0.2s;
    font-family: Arial, sans-serif;
}

.mqb-success-step .mqb-button:hover {
    background: #34495e;
    color: white;
}
