/* FB Website Quote - Frontend Styles */

/* Floating Quote Button */
.fbwq-quote-button {
    position: fixed;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: #007cba;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 20px;
    font-weight: normal;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Split transitions for better control */
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-family: inherit;
    outline: none;
    overflow: hidden;
    /* Responsive min-width will be set in media queries */
    box-sizing: border-box;
    min-width: 48px;
    min-height: 48px;
    width: auto;
}

/* Text and icon styles */
.fbwq-button-text {
    display: inline-block;
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 1;
    transform: translateX(0);
}

.fbwq-button-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-size: 16px; /* Default desktop size */
    line-height: 1;
}

/* Scrolled state - transforms button into circle with icon */
.fbwq-quote-button.scrolled {
    border-radius: 50%;
    /* Padding will be handled by responsive media queries */
}

/* Hide text and show icon when scrolled */
.fbwq-quote-button.scrolled .fbwq-button-text {
    opacity: 0;
    transform: translateX(-20px);
    transition-delay: 0s;
}

.fbwq-quote-button.scrolled .fbwq-button-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0.25s;
}

/* Reverse delays when not scrolled for smooth reopening */
.fbwq-quote-button:not(.scrolled) .fbwq-button-text {
    transition-delay: 0.25s;
}

.fbwq-quote-button:not(.scrolled) .fbwq-button-icon {
    transition-delay: 0s;
}

.fbwq-quote-button:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: inherit;
}

/* Hover state for non-scrolled button */
.fbwq-quote-button:not(.scrolled):hover {
    transform: translateY(-2px);
}

/* Hover state for scrolled button */
.fbwq-quote-button.scrolled:hover {
    transform: scale(1.1);
}

.fbwq-quote-button:focus {
    outline: 2px solid #005a87;
    outline-offset: 2px;
}

.fbwq-quote-button:active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.fbwq-quote-button:not(.scrolled):active {
    transform: translateY(0);
}

.fbwq-quote-button.scrolled:active {
    transform: scale(1);
}

/* Device visibility classes with Scroll Animation Support */
@media (min-width: 992px) {
    .fbwq-quote-button:not(.fbwq-show-desktop) {
        display: none !important;
    }
    
    .fbwq-quote-button {
        font-size: 20px;
        padding: 12px 20px;
        width: auto;
        min-width: 48px;
        min-height: 48px;
    }
    
    .fbwq-quote-button.scrolled {
        padding: 12px !important;
        width: 48px !important;
        height: 48px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .fbwq-quote-button:not(.fbwq-show-tablet) {
        display: none !important;
    }
    
    .fbwq-quote-button {
        font-size: 18px;
        padding: 10px 18px;
        width: auto;
        min-width: 42px;
        min-height: 42px;
    }
    
    .fbwq-quote-button.scrolled {
        /* Perfect circle: equal padding on all sides */
        padding: 11px !important;
        width: 42px !important;
        height: 42px !important;
    }
    
    /* Tablet icon size */
    .fbwq-quote-button .fbwq-button-icon {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .fbwq-quote-button:not(.fbwq-show-mobile) {
        display: none !important;
    }
    
    .fbwq-quote-button.fbwq-show-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        padding: 8px 14px;
        width: auto;
        min-width: 40px;
        min-height: 40px;
    }
    
    .fbwq-quote-button.fbwq-show-mobile.scrolled {
        /* Perfect circle: equal padding on all sides */
        padding: 10px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Mobile icon size */
    .fbwq-quote-button.fbwq-show-mobile .fbwq-button-icon {
        font-size: 12px;
    }
}

/* Modal Styles */
.fbwq-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 15px 10px; /* Reduced from 20px */
    box-sizing: border-box;
}

.fbwq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fbwqFadeIn 0.3s ease;
}

.fbwq-modal-content {
    position: relative;
    max-width: 550px;
    width: 100%;
    max-height: calc(100vh - 40px);
    margin: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: fbwqSlideIn 0.3s ease;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

@keyframes fbwqFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fbwqSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fbwq-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px; /* Reduced from 12px */
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.fbwq-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* Close button with improved specificity */
.fbwq-modal .fbwq-modal-content .fbwq-modal-header .fbwq-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    padding: 2px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
    text-align: center;
    font-family: Arial, sans-serif;
    outline: none;
    z-index: 1;
}

.fbwq-modal .fbwq-modal-content .fbwq-modal-header .fbwq-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
    transform: scale(1.1);
}

.fbwq-modal-body {
    padding: 12px 18px; /* Reduced from 15px */
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Quote Form Styles */
.fbwq-quote-form {
    display: flex;
    flex-direction: column;
    gap: 6px; /* Reduced from 8px */
}

/* Intro Text */
.fbwq-intro-text {
    background: #f8f9fa;
    border-left: 4px solid var(--fbwq-button-color, #007cba);
    padding: 12px; /* Reduced from 15px */
    margin-bottom: 12px; /* Reduced from 15px */
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    border-radius: 0 4px 4px 0;
    font-weight: bold;
}

.fbwq-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Reduced from 5px */
}

.fbwq-form-group label {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.fbwq-form-group input[type="number"],
.fbwq-form-group input[type="text"],
.fbwq-form-group input[type="email"],
.fbwq-form-group input[type="tel"] {
    padding: 7px 12px; /* Reduced from 8px */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: #fff;
}

.fbwq-form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.fbwq-form-group input.fbwq-error {
    border-color: #dc3545;
}

.fbwq-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 3px;
}

.fbwq-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px; /* Reduced from 8px */
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.fbwq-radio-option:hover {
    border-color: #007cba;
    background: #f8fafe;
}

.fbwq-radio-option.selected {
    border-color: #007cba;
    background: #e3f2fd;
}

.fbwq-radio-option input[type="radio"] {
    margin: 0;
    transform: scale(1.2);
    accent-color: #007cba;
}

.fbwq-radio-option label {
    cursor: pointer;
    font-weight: normal;
    margin: 0;
    flex: 1;
}

.fbwq-form-actions {
    display: flex;
    gap: 10px; /* Reduced from 12px */
    margin-top: 10px; /* Reduced from 12px */
}

.fbwq-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    flex: 1;
    font-family: inherit;
    line-height: 1.2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.fbwq-btn-primary {
    /* Background and color will be set dynamically via JavaScript */
    background: var(--fbwq-button-color, #007cba);
    color: var(--fbwq-text-color, #ffffff);
}

.fbwq-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--fbwq-text-color, #ffffff);
}

.fbwq-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fbwq-btn-secondary {
    background: #6c757d;
    color: #ffffff;
}

.fbwq-btn-secondary:hover {
    background: #545b62;
}

/* Multi-Step Form Styles */
.fbwq-multistep-form {
    position: relative;
    gap: 6px;
}

/* Progress Indicator */
.fbwq-progress {
    margin-bottom: 10px; /* Reduced from 12px */
    padding: 0 15px;
}

.fbwq-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px; /* Reduced from 10px */
}

.fbwq-progress-fill {
    height: 100%;
    background: var(--fbwq-button-color, #007cba);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.fbwq-step-indicator {
    text-align: center;
}

.fbwq-step-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Form Container and Slider */
.fbwq-form-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.fbwq-form-slider {
    display: flex;
    width: 400%; /* 4 steps × 100% */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fbwq-form-step {
    width: 25%; /* 100% / 4 steps (intro + 3 form steps) */
    padding: 0 15px;
    box-sizing: border-box;
    flex-shrink: 0;
    min-height: auto;
}

/* Introduction step styling */
.fbwq-intro-step {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 250px; /* Reduced from 300px */
}

.fbwq-intro-content {
    max-width: 500px;
    padding: 15px; /* Reduced from 20px */
}

.fbwq-intro-content h3 {
    color: #2c3e50 !important;
    font-size: 24px !important;
    margin: 0 0 15px 0;
    font-weight: 700 !important; /* Changed from 600 to 700 for bolder text */
}

.fbwq-intro-content p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-weight: normal; /* Ensure paragraphs have normal weight */
}

.fbwq-intro-content a {
    color: #007cba !important;
    text-decoration: none;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.fbwq-intro-content a:hover {
    text-decoration: underline !important;
    color: #005a8b !important;
}

/* Add external link indicator - now shows window icon */
.fbwq-intro-content a:after {
    content: " ⧉";
    font-size: 0.9em;
    vertical-align: middle;
    opacity: 0.6;
    margin-left: 2px;
}

/* Additional specificity for nested formatting */
.fbwq-modal .fbwq-intro-content strong,
.fbwq-modal .fbwq-intro-content b,
.fbwq-modal .fbwq-intro-content h3 strong,
.fbwq-modal .fbwq-intro-content p strong {
    font-weight: 700 !important;
    font-weight: bold !important;
}

.fbwq-modal .fbwq-intro-content em,
.fbwq-modal .fbwq-intro-content i,
.fbwq-modal .fbwq-intro-content p em {
    font-style: italic !important;
}

.fbwq-modal .fbwq-intro-content u,
.fbwq-modal .fbwq-intro-content p u {
    text-decoration: underline !important;
}

.fbwq-intro-content strong,
.fbwq-intro-content b {
    font-weight: 700 !important; /* Changed to 700 with !important for true bold */
    font-weight: bold !important;
}

.fbwq-intro-content em,
.fbwq-intro-content i {
    font-style: italic !important;
}

.fbwq-intro-content u {
    text-decoration: underline !important;
}

.fbwq-step-title {
    margin: 0 0 10px 0; /* Reduced from 12px */
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    padding-bottom: 6px; /* Reduced from 8px */
    border-bottom: 1px solid #e0e0e0;
}

/* Form Navigation */
.fbwq-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

.fbwq-form-navigation .fbwq-btn {
    min-width: 100px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.fbwq-btn-secondary {
    background-color: #f5f5f5;
    color: #666;
    border: none;
}

.fbwq-btn-secondary:hover {
    background-color: #e8e8e8;
    color: #333;
}

.fbwq-btn-primary {
    background-color: #007cba;
    color: #ffffff;
    border: none;
}

.fbwq-btn-primary:hover {
    background-color: #005a8a;
}

/* Service Options Styling - Multi-step Form Specific */
.fbwq-multistep-form .fbwq-radio-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
}

.fbwq-multistep-form .fbwq-radio-option {
    background: #f8f9fa !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.fbwq-multistep-form .fbwq-radio-option:hover {
    border-color: #007cba !important;
    background: #f0f8ff !important;
}

.fbwq-multistep-form .fbwq-radio-option input[type="radio"] {
    margin: 0 !important;
    margin-right: 10px !important;
    transform: scale(1.2);
    accent-color: #007cba;
}

.fbwq-multistep-form .fbwq-radio-option label {
    cursor: pointer;
    font-weight: normal !important;
    margin: 0 !important;
    flex: 1;
    color: inherit !important;
}

.fbwq-multistep-form .fbwq-radio-option.selected,
.fbwq-multistep-form .fbwq-radio-option:has(input[type="radio"]:checked) {
    background: #e3f2fd !important;
    border-color: #007cba !important;
    color: #005a8a !important;
}

.fbwq-multistep-form .fbwq-radio-option.selected label,
.fbwq-multistep-form .fbwq-radio-option:has(input[type="radio"]:checked) label {
    font-weight: 500 !important;
    color: #005a8a !important;
}

/* Mobile Styles for Multi-Step Form */
@media (max-width: 768px) {
    .fbwq-form-step {
        padding: 0 15px;
    }
    
    .fbwq-step-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .fbwq-progress {
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .fbwq-form-navigation {
        padding: 15px;
        margin-top: 20px;
    }
    
    .fbwq-form-navigation .fbwq-btn {
        min-width: 80px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .fbwq-multistep-form .fbwq-radio-option {
        padding: 10px 12px !important;
    }
}

/* Touch/Swipe Support for Mobile */
@media (max-width: 768px) {
    .fbwq-form-container {
        touch-action: pan-y;
    }
    
    .fbwq-form-slider {
        transition-duration: 0.3s;
    }
}

/* Quote Results Styles */
.fbwq-quote-results {
    text-align: center;
    padding: 12px 0; /* Reduced from 15px */
}

.fbwq-quote-range {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8fafe 100%);
    border: 2px solid #007cba;
    border-radius: 8px;
    padding: 15px; /* Reduced from 20px */
    margin: 12px 0; /* Reduced from 15px */
}

.fbwq-quote-range h3 {
    margin: 0 0 8px 0; /* Reduced from 10px */
    color: #007cba;
    font-size: 20px;
    font-weight: 600;
}

.fbwq-price-range {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 6px 0; /* Reduced from 8px */
}

.fbwq-price-separator {
    font-size: 16px;
    color: #666;
    margin: 0 10px;
}

.fbwq-breakdown {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
}

.fbwq-breakdown h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.fbwq-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.fbwq-breakdown-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 15px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 2px solid #007cba;
}

/* .fbwq-special-features-message CSS removed - no longer used in current multi-step form */

.fbwq-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
    font-size: 13px;
    color: #856404;
    text-align: left;
}

/* Loading States */
.fbwq-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #666;
}

.fbwq-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: fbwqSpin 1s linear infinite;
}

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

/* Error States */
.fbwq-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    color: #721c24;
    text-align: center;
}

.fbwq-form-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fbwq-modal {
        padding: 15px 8px;
    }
    
    .fbwq-modal-content {
        width: 100%;
        max-width: 500px;
        border-radius: 12px;
    }
    
    .fbwq-modal-header {
        padding: 12px 15px;
    }
    
    .fbwq-modal-body {
        padding: 12px 15px;
    }
    
    .fbwq-modal-header h2 {
        font-size: 17px;
    }
    
    /* Removed conflicting button styles - handled in device-specific media queries above */
    
    .fbwq-form-actions {
        flex-direction: column;
    }
    
    .fbwq-price-range {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .fbwq-modal {
        padding: 10px 5px;
    }
    
    .fbwq-modal-content {
        width: 100%;
        max-width: 100%;
    }
    
    .fbwq-modal-header {
        padding: 10px 12px;
    }
    
    .fbwq-modal-body {
        padding: 10px 12px;
    }
    
    /* Button styles removed - handled by device-specific rules */
    
    .fbwq-price-range {
        font-size: 18px;
        line-height: 1.2;
    }
    
    .fbwq-price-separator {
        font-size: 14px;
        display: block;
        margin: 5px 0;
    }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .fbwq-quote-button {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }
    
    .fbwq-quote-button:hover {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .fbwq-quote-button {
        border: 2px solid currentColor;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .fbwq-quote-button,
    .fbwq-modal-overlay,
    .fbwq-modal-content,
    .fbwq-radio-option,
    .fbwq-btn {
        transition: none !important;
        animation: none !important;
    }
    
    .fbwq-button-text,
    .fbwq-button-icon {
        transition: none;
    }
    
    .fbwq-quote-button:hover,
    .fbwq-quote-button:focus {
        transform: none;
    }
}

/* Focus improvements for keyboard navigation */
.fbwq-radio-option:focus-within {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.fbwq-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .fbwq-quote-button,
    .fbwq-modal {
        display: none !important;
    }
}

/* Email section styles */
.fbwq-email-section {
    margin-top: 15px; /* Reduced from 20px */
    padding: 12px; /* Reduced from 15px */
    background-color: #f0f8ff;
    border-radius: 6px;
    text-align: center;
}

.fbwq-email-discount-text {
    font-size: 14px;
    color: #0066cc;
    margin-bottom: 10px; /* Reduced from 12px */
    font-weight: 500;
}

.fbwq-email-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .fbwq-email-form {
        flex-direction: column;
    }
}

.fbwq-email-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.fbwq-email-input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.fbwq-email-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
}

.fbwq-email-success {
    text-align: center;
    padding: 20px;
}

.fbwq-email-success h3 {
    color: #28a745;
    margin-bottom: 15px;
}

.fbwq-discount-applied {
    color: #0066cc;
    font-weight: 500;
    margin: 15px 0;
}

.fbwq-discounted-price {
    background-color: #e8f5e9;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    margin: 15px 0;
}

/* Ultra-high specificity rules to ensure formatting is preserved */
/* These rules use multiple selectors and !important to override any theme styles */
body .fbwq-modal .fbwq-modal-content .fbwq-intro-content strong,
body .fbwq-modal .fbwq-modal-content .fbwq-intro-content b,
body #fbwq-quote-modal .fbwq-intro-content strong,
body #fbwq-quote-modal .fbwq-intro-content b {
    font-weight: 700 !important;
    font-weight: bold !important;
    display: inline !important;
}

body .fbwq-modal .fbwq-modal-content .fbwq-intro-content h3,
body #fbwq-quote-modal .fbwq-intro-content h3 {
    font-weight: 700 !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
}

body .fbwq-modal .fbwq-modal-content .fbwq-intro-content em,
body .fbwq-modal .fbwq-modal-content .fbwq-intro-content i,
body #fbwq-quote-modal .fbwq-intro-content em,
body #fbwq-quote-modal .fbwq-intro-content i {
    font-style: italic !important;
    display: inline !important;
}

body .fbwq-modal .fbwq-modal-content .fbwq-intro-content u,
body #fbwq-quote-modal .fbwq-intro-content u {
    text-decoration: underline !important;
    display: inline !important;
}

/* Ensure formatting works inside paragraphs and headings */
body .fbwq-intro-content p strong,
body .fbwq-intro-content p b,
body .fbwq-intro-content h3 strong,
body .fbwq-intro-content h3 b {
    font-weight: 700 !important;
    font-weight: bold !important;
}