/* ============================================
   THANK YOU PAGE TEMPLATES
   5 Different Layout Styles - All New Designs
   ============================================ */

/* Template 1: Magazine - Blog-style, Editorial Layout */
.mqb-template-magazine .quote-summary,
.mqb-template-magazine .recommended-product-card,
.mqb-template-magazine .product-display,
.mqb-template-magazine .next-steps-section,
.mqb-template-magazine .contact-info-section,
.mqb-template-magazine .price-match-section,
.mqb-template-magazine .terms-conditions-section,
.mqb-template-magazine .mqb-layout-component .quote-summary,
.mqb-template-magazine .mqb-layout-component .recommended-product-card,
.mqb-template-magazine .mqb-layout-component .product-display,
.mqb-template-magazine .mqb-layout-component .next-steps-section,
.mqb-template-magazine .mqb-layout-component .contact-info-section,
.mqb-template-magazine .mqb-layout-component .price-match-section,
.mqb-template-magazine .mqb-layout-component .terms-conditions-section {
    background: #ffffff;
    border: none;
    border-radius: 0;
    margin: 50px 0;
    box-shadow: none;
    overflow: visible;
    border-left: 4px solid var(--mqb-primary-color, #6366f1);
    padding-left: 30px;
    position: relative;
}

.mqb-template-magazine .quote-summary::before,
.mqb-template-magazine .recommended-product-card::before,
.mqb-template-magazine .product-display::before,
.mqb-template-magazine .next-steps-section::before,
.mqb-template-magazine .contact-info-section::before,
.mqb-template-magazine .price-match-section::before,
.mqb-template-magazine .terms-conditions-section::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 4px;
    height: 60px;
    background: var(--mqb-primary-color, #6366f1);
}

.mqb-template-magazine .quote-summary h3,
.mqb-template-magazine .recommended-product-card h3,
.mqb-template-magazine .product-display h3,
.mqb-template-magazine .next-steps-section h3,
.mqb-template-magazine .contact-info-section h3,
.mqb-template-magazine .price-match-section h3,
.mqb-template-magazine .terms-conditions-section h3,
.mqb-template-magazine .mqb-layout-component .quote-summary h3,
.mqb-template-magazine .mqb-layout-component .recommended-product-card h3,
.mqb-template-magazine .mqb-layout-component .product-display h3,
.mqb-template-magazine .mqb-layout-component .next-steps-section h3,
.mqb-template-magazine .mqb-layout-component .contact-info-section h3,
.mqb-template-magazine .mqb-layout-component .price-match-section h3,
.mqb-template-magazine .mqb-layout-component .terms-conditions-section h3 {
    background: transparent;
    color: #1a1a1a;
    padding: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 25px 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-transform: none;
    letter-spacing: -0.5px;
    border-bottom: 3px solid var(--mqb-primary-color, #6366f1);
    text-align: left;
    line-height: 1.2;
}

.mqb-template-magazine .quote-details,
.mqb-template-magazine .next-steps-content,
.mqb-template-magazine .contact-info-content,
.mqb-template-magazine .price-match-content,
.mqb-template-magazine .product-content,
.mqb-template-magazine .mqb-layout-component .quote-details,
.mqb-template-magazine .mqb-layout-component .next-steps-content,
.mqb-template-magazine .mqb-layout-component .contact-info-content,
.mqb-template-magazine .mqb-layout-component .price-match-content,
.mqb-template-magazine .mqb-layout-component .product-content {
    padding: 0;
    background: transparent;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.mqb-template-magazine .price-match-content,
.mqb-template-magazine .mqb-layout-component .price-match-content {
    margin-bottom: 20px;
}

/* Template 2: Dashboard - Clean, Data-Focused Design */
.mqb-template-dashboard .quote-summary,
.mqb-template-dashboard .recommended-product-card,
.mqb-template-dashboard .product-display,
.mqb-template-dashboard .next-steps-section,
.mqb-template-dashboard .contact-info-section,
.mqb-template-dashboard .price-match-section,
.mqb-template-dashboard .terms-conditions-section,
.mqb-template-dashboard .mqb-layout-component .quote-summary,
.mqb-template-dashboard .mqb-layout-component .recommended-product-card,
.mqb-template-dashboard .mqb-layout-component .product-display,
.mqb-template-dashboard .mqb-layout-component .next-steps-section,
.mqb-template-dashboard .mqb-layout-component .contact-info-section,
.mqb-template-dashboard .mqb-layout-component .price-match-section,
.mqb-template-dashboard .mqb-layout-component .terms-conditions-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.mqb-template-dashboard .quote-summary h3,
.mqb-template-dashboard .recommended-product-card h3,
.mqb-template-dashboard .product-display h3,
.mqb-template-dashboard .next-steps-section h3,
.mqb-template-dashboard .contact-info-section h3,
.mqb-template-dashboard .price-match-section h3,
.mqb-template-dashboard .terms-conditions-section h3,
.mqb-template-dashboard .mqb-layout-component .quote-summary h3,
.mqb-template-dashboard .mqb-layout-component .recommended-product-card h3,
.mqb-template-dashboard .mqb-layout-component .product-display h3,
.mqb-template-dashboard .mqb-layout-component .next-steps-section h3,
.mqb-template-dashboard .mqb-layout-component .contact-info-section h3,
.mqb-template-dashboard .mqb-layout-component .price-match-section h3,
.mqb-template-dashboard .mqb-layout-component .terms-conditions-section h3 {
    background: #f9fafb;
    color: #111827;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 13px;
}

.mqb-template-dashboard .quote-details,
.mqb-template-dashboard .next-steps-content,
.mqb-template-dashboard .contact-info-content,
.mqb-template-dashboard .price-match-content,
.mqb-template-dashboard .product-content,
.mqb-template-dashboard .mqb-layout-component .quote-details,
.mqb-template-dashboard .mqb-layout-component .next-steps-content,
.mqb-template-dashboard .mqb-layout-component .contact-info-content,
.mqb-template-dashboard .mqb-layout-component .price-match-content,
.mqb-template-dashboard .mqb-layout-component .product-content {
    padding: 24px;
    background: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.mqb-template-dashboard .price-match-content,
.mqb-template-dashboard .mqb-layout-component .price-match-content {
    margin-bottom: 20px;
}

.mqb-template-dashboard .price-match-section .price-match-call-button,
.mqb-template-dashboard .mqb-layout-component .price-match-section .price-match-call-button {
    margin-left: 24px;
    margin-bottom: 24px;
}

/* Template 3: Newsletter - Email-Inspired, Friendly */
.mqb-template-newsletter .quote-summary,
.mqb-template-newsletter .recommended-product-card,
.mqb-template-newsletter .product-display,
.mqb-template-newsletter .next-steps-section,
.mqb-template-newsletter .contact-info-section,
.mqb-template-newsletter .price-match-section,
.mqb-template-newsletter .terms-conditions-section,
.mqb-template-newsletter .mqb-layout-component .quote-summary,
.mqb-template-newsletter .mqb-layout-component .recommended-product-card,
.mqb-template-newsletter .mqb-layout-component .product-display,
.mqb-template-newsletter .mqb-layout-component .next-steps-section,
.mqb-template-newsletter .mqb-layout-component .contact-info-section,
.mqb-template-newsletter .mqb-layout-component .price-match-section,
.mqb-template-newsletter .mqb-layout-component .terms-conditions-section {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    margin: 32px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    overflow: hidden;
}

.mqb-template-newsletter .quote-summary h3,
.mqb-template-newsletter .recommended-product-card h3,
.mqb-template-newsletter .product-display h3,
.mqb-template-newsletter .next-steps-section h3,
.mqb-template-newsletter .contact-info-section h3,
.mqb-template-newsletter .price-match-section h3,
.mqb-template-newsletter .terms-conditions-section h3,
.mqb-template-newsletter .mqb-layout-component .quote-summary h3,
.mqb-template-newsletter .mqb-layout-component .recommended-product-card h3,
.mqb-template-newsletter .mqb-layout-component .product-display h3,
.mqb-template-newsletter .mqb-layout-component .next-steps-section h3,
.mqb-template-newsletter .mqb-layout-component .contact-info-section h3,
.mqb-template-newsletter .mqb-layout-component .price-match-section h3,
.mqb-template-newsletter .mqb-layout-component .terms-conditions-section h3 {
    background: var(--mqb-primary-color, #6366f1);
    color: white;
    padding: 20px 28px;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    text-align: left;
}

.mqb-template-newsletter .quote-details,
.mqb-template-newsletter .next-steps-content,
.mqb-template-newsletter .contact-info-content,
.mqb-template-newsletter .price-match-content,
.mqb-template-newsletter .product-content,
.mqb-template-newsletter .mqb-layout-component .quote-details,
.mqb-template-newsletter .mqb-layout-component .next-steps-content,
.mqb-template-newsletter .mqb-layout-component .contact-info-content,
.mqb-template-newsletter .mqb-layout-component .price-match-content,
.mqb-template-newsletter .mqb-layout-component .product-content {
    padding: 32px 28px;
    background: #ffffff;
    font-size: 16px;
    line-height: 1.7;
    color: #1f2937;
}

.mqb-template-newsletter .price-match-content,
.mqb-template-newsletter .mqb-layout-component .price-match-content {
    margin-bottom: 24px;
}

.mqb-template-newsletter .price-match-section .price-match-call-button,
.mqb-template-newsletter .mqb-layout-component .price-match-section .price-match-call-button {
    margin-left: 28px;
    margin-bottom: 32px;
}

/* Template 4: Portfolio - Visual, Image-Focused */
.mqb-template-portfolio .quote-summary,
.mqb-template-portfolio .recommended-product-card,
.mqb-template-portfolio .product-display,
.mqb-template-portfolio .next-steps-section,
.mqb-template-portfolio .contact-info-section,
.mqb-template-portfolio .price-match-section,
.mqb-template-portfolio .terms-conditions-section,
.mqb-template-portfolio .mqb-layout-component .quote-summary,
.mqb-template-portfolio .mqb-layout-component .recommended-product-card,
.mqb-template-portfolio .mqb-layout-component .product-display,
.mqb-template-portfolio .mqb-layout-component .next-steps-section,
.mqb-template-portfolio .mqb-layout-component .contact-info-section,
.mqb-template-portfolio .mqb-layout-component .price-match-section,
.mqb-template-portfolio .mqb-layout-component .terms-conditions-section {
    background: #ffffff;
    border: none;
    border-radius: 0;
    margin: 60px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    position: relative;
}

.mqb-template-portfolio .quote-summary::after,
.mqb-template-portfolio .recommended-product-card::after,
.mqb-template-portfolio .product-display::after,
.mqb-template-portfolio .next-steps-section::after,
.mqb-template-portfolio .contact-info-section::after,
.mqb-template-portfolio .price-match-section::after,
.mqb-template-portfolio .terms-conditions-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--mqb-primary-color, #6366f1) 0%, var(--mqb-accent-color, #14b8a6) 100%);
}

.mqb-template-portfolio .quote-summary h3,
.mqb-template-portfolio .recommended-product-card h3,
.mqb-template-portfolio .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 .terms-conditions-section h3,
.mqb-template-portfolio .mqb-layout-component .quote-summary h3,
.mqb-template-portfolio .mqb-layout-component .recommended-product-card h3,
.mqb-template-portfolio .mqb-layout-component .product-display h3,
.mqb-template-portfolio .mqb-layout-component .next-steps-section h3,
.mqb-template-portfolio .mqb-layout-component .contact-info-section h3,
.mqb-template-portfolio .mqb-layout-component .price-match-section h3,
.mqb-template-portfolio .mqb-layout-component .terms-conditions-section h3 {
    background: transparent;
    color: #1a1a1a;
    padding: 30px 40px 20px 40px;
    font-size: 32px;
    font-weight: 300;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: none;
    letter-spacing: -1px;
    border-bottom: none;
    text-align: left;
}

.mqb-template-portfolio .quote-details,
.mqb-template-portfolio .next-steps-content,
.mqb-template-portfolio .contact-info-content,
.mqb-template-portfolio .price-match-content,
.mqb-template-portfolio .product-content,
.mqb-template-portfolio .mqb-layout-component .quote-details,
.mqb-template-portfolio .mqb-layout-component .next-steps-content,
.mqb-template-portfolio .mqb-layout-component .contact-info-content,
.mqb-template-portfolio .mqb-layout-component .price-match-content,
.mqb-template-portfolio .mqb-layout-component .product-content {
    padding: 0 40px 40px 40px;
    background: #ffffff;
    font-size: 17px;
    line-height: 1.75;
    color: #4a5568;
}

.mqb-template-portfolio .price-match-content,
.mqb-template-portfolio .mqb-layout-component .price-match-content {
    margin-bottom: 30px;
}

.mqb-template-portfolio .price-match-section .price-match-call-button,
.mqb-template-portfolio .mqb-layout-component .price-match-section .price-match-call-button {
    margin-left: 40px;
    margin-bottom: 40px;
}

/* Template 5: Corporate - Professional Report Style */
.mqb-template-corporate .quote-summary,
.mqb-template-corporate .recommended-product-card,
.mqb-template-corporate .product-display,
.mqb-template-corporate .next-steps-section,
.mqb-template-corporate .contact-info-section,
.mqb-template-corporate .price-match-section,
.mqb-template-corporate .terms-conditions-section,
.mqb-template-corporate .mqb-layout-component .quote-summary,
.mqb-template-corporate .mqb-layout-component .recommended-product-card,
.mqb-template-corporate .mqb-layout-component .product-display,
.mqb-template-corporate .mqb-layout-component .next-steps-section,
.mqb-template-corporate .mqb-layout-component .contact-info-section,
.mqb-template-corporate .mqb-layout-component .price-match-section,
.mqb-template-corporate .mqb-layout-component .terms-conditions-section {
    background: #ffffff;
    border: 2px solid #1e40af;
    border-radius: 0;
    margin: 35px 0;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.15);
    overflow: hidden;
    position: relative;
}

.mqb-template-corporate .quote-summary::before,
.mqb-template-corporate .recommended-product-card::before,
.mqb-template-corporate .product-display::before,
.mqb-template-corporate .next-steps-section::before,
.mqb-template-corporate .contact-info-section::before,
.mqb-template-corporate .price-match-section::before,
.mqb-template-corporate .terms-conditions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: var(--mqb-primary-color, #6366f1);
}

.mqb-template-corporate .quote-summary h3,
.mqb-template-corporate .recommended-product-card h3,
.mqb-template-corporate .product-display h3,
.mqb-template-corporate .next-steps-section h3,
.mqb-template-corporate .contact-info-section h3,
.mqb-template-corporate .price-match-section h3,
.mqb-template-corporate .terms-conditions-section h3,
.mqb-template-corporate .mqb-layout-component .quote-summary h3,
.mqb-template-corporate .mqb-layout-component .recommended-product-card h3,
.mqb-template-corporate .mqb-layout-component .product-display h3,
.mqb-template-corporate .mqb-layout-component .next-steps-section h3,
.mqb-template-corporate .mqb-layout-component .contact-info-section h3,
.mqb-template-corporate .mqb-layout-component .price-match-section h3,
.mqb-template-corporate .mqb-layout-component .terms-conditions-section h3 {
    background: #1e40af;
    color: white;
    padding: 20px 35px;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    font-family: 'Arial', 'Helvetica', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 3px solid rgba(255,255,255,0.2);
    text-align: left;
    font-size: 15px;
}

.mqb-template-corporate .quote-details,
.mqb-template-corporate .next-steps-content,
.mqb-template-corporate .contact-info-content,
.mqb-template-corporate .price-match-content,
.mqb-template-corporate .product-content,
.mqb-template-corporate .mqb-layout-component .quote-details,
.mqb-template-corporate .mqb-layout-component .next-steps-content,
.mqb-template-corporate .mqb-layout-component .contact-info-content,
.mqb-template-corporate .mqb-layout-component .price-match-content,
.mqb-template-corporate .mqb-layout-component .product-content {
    padding: 30px 35px;
    background: #ffffff;
    font-size: 14px;
    line-height: 1.7;
    color: #1e293b;
    border-left: 8px solid transparent;
}

.mqb-template-corporate .price-match-content,
.mqb-template-corporate .mqb-layout-component .price-match-content {
    margin-bottom: 24px;
}

.mqb-template-corporate .price-match-section .price-match-call-button,
.mqb-template-corporate .mqb-layout-component .price-match-section .price-match-call-button {
    margin-left: 35px;
    margin-bottom: 30px;
}

/* Template-specific adjustments */
.mqb-template-magazine .quote-summary-table {
    border: none;
}

.mqb-template-magazine .quote-summary-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.mqb-template-magazine .quote-summary-table td {
    padding: 12px 0;
    font-size: 16px;
}

.mqb-template-dashboard .quote-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.mqb-template-dashboard .quote-summary-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.mqb-template-dashboard .quote-summary-table td {
    padding: 12px 16px;
    font-size: 14px;
}

.mqb-template-dashboard .quote-summary-table tr:nth-child(even) {
    background: #f9fafb;
}

.mqb-template-newsletter .product-features li {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 8px;
    border-left: 3px solid var(--mqb-primary-color, #6366f1);
}

.mqb-template-portfolio .product-features {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.mqb-template-portfolio .product-features li {
    padding: 16px 20px 16px 50px !important;
    border-bottom: 1px solid #f0f0f0;
    font-size: 17px;
    position: relative;
}

.mqb-template-portfolio .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-template-portfolio .product-features li:last-child {
    border-bottom: none;
}

.mqb-template-corporate .quote-summary-table {
    border: 1px solid #cbd5e1;
    border-collapse: collapse;
}

.mqb-template-corporate .quote-summary-table tr {
    border-bottom: 1px solid #cbd5e1;
}

.mqb-template-corporate .quote-summary-table td {
    padding: 14px 20px;
    font-size: 14px;
    border-right: 1px solid #e2e8f0;
}

.mqb-template-corporate .quote-summary-table tr:nth-child(even) {
    background: #f8fafc;
}

/* Style the thank you page wrapper to match quote-summary section */
.mqb-template-newsletter .mqb-thankyou-page {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    margin: 32px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    overflow: hidden;
    padding: 0;
}

/* Remove border from Recommended Product section for all templates */
.mqb-template-magazine .recommended-product-card,
.mqb-template-magazine .mqb-layout-component .recommended-product-card,
.mqb-template-dashboard .recommended-product-card,
.mqb-template-dashboard .mqb-layout-component .recommended-product-card,
.mqb-template-newsletter .recommended-product-card,
.mqb-template-newsletter .mqb-layout-component .recommended-product-card,
.mqb-template-portfolio .recommended-product-card,
.mqb-template-portfolio .mqb-layout-component .recommended-product-card,
.mqb-template-corporate .recommended-product-card,
.mqb-template-corporate .mqb-layout-component .recommended-product-card {
    border: none !important;
}

/* Remove border and shadow from Product Display section for all templates */
.mqb-template-magazine .product-display,
.mqb-template-magazine #product-display,
.mqb-template-magazine .mqb-layout-component .product-display,
.mqb-template-dashboard .product-display,
.mqb-template-dashboard #product-display,
.mqb-template-dashboard .mqb-layout-component .product-display,
.mqb-template-newsletter .product-display,
.mqb-template-newsletter #product-display,
.mqb-template-newsletter .mqb-layout-component .product-display,
.mqb-template-portfolio .product-display,
.mqb-template-portfolio #product-display,
.mqb-template-portfolio .mqb-layout-component .product-display,
.mqb-template-corporate .product-display,
.mqb-template-corporate #product-display,
.mqb-template-corporate .mqb-layout-component .product-display {
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
}


