/**
 * Lead Generation Calculator Styles
 * Version: 1.3
 * - Reduced badge size by half
 * - Increased button size by 2x
 * - Single column benefits on mobile
 * - Hidden marketing investment and ROI results
 * - Matches updated front-end HTML structure
 * - NUCLEAR PRINT FIX for WordPress themes
 */

.calc-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border: 1px solid #e5e7eb;
}

.calc-header {
    text-align: center;
    padding: 40px 40px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e5e7eb;
}

.calc-header h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #1e293b;
    line-height: 1.3;
    font-weight: 700;
    margin-top: 0;
}

.calc-header p {
    font-size: 1.05em;
    color: #64748b;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.calc-body {
    padding: 40px;
}

/* Industry Examples */
.industry-examples {
    background: #f0fdf4;
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 28px;
    font-size: 0.9em;
    border-left: 3px solid #10b981;
    color: #064e3b;
    line-height: 1.5;
}

.industry-examples p {
    margin: 0;
}

/* Lead Capture Form Styles */
.lead-gate {
    display: block;
}

.lead-gate.hidden {
    display: none;
}

.lead-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.benefits-list {
    background: #fef9f3;
    padding: 32px;
    border-radius: 8px;
    margin-bottom: 32px;
    border: 1px solid #fde68a;
}

.benefits-list h3 {
    font-size: 1.2em;
    color: #78350f;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-grid li {
    padding-left: 28px;
    color: #475569;
    line-height: 1.5;
    position: relative;
    font-size: 0.95em;
}

.benefits-grid li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2em;
}

/* Form Step Indicator - REDUCED SIZE BY HALF */
.step-indicator {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 3px 7px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.step-title {
    font-size: 1.3em;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Form Styles */
.lead-form {
    background: #fafafa;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95em;
    color: #475569;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1em;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #1f2937;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.85em;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Radio Group */
.radio-group {
    margin-bottom: 20px;
}

.radio-group > label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 0.95em;
    color: #475569;
}

.radio-options {
    display: flex;
    gap: 20px;
}

.radio-option {
    flex: 1;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option label {
    display: block;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0;
}

.radio-option input[type="radio"]:checked + label {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.radio-option label:hover {
    border-color: #3b82f6;
}

/* Buttons */
.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-back {
    padding: 14px 28px;
    background: white;
    color: #475569;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Get Started Button - INCREASED SIZE BY 2X */
.submit-btn,
.btn-next {
    flex: 1;
    padding: 28px 64px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.15em;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.submit-btn:hover,
.btn-next:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.submit-btn:disabled,
.btn-next:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.privacy-note {
    font-size: 0.85em;
    color: #64748b;
    margin-top: 16px;
    line-height: 1.5;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 16px;
    display: none;
}

.success-message.show {
    display: block;
}

/* Calculator Styles */
.calculator-content {
    display: none;
}

.calculator-content.active {
    display: block;
}

.calc-intro {
    background: #f0f9ff;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 32px;
    line-height: 1.6;
    border-left: 3px solid #3b82f6;
    color: #334155;
}

.calc-intro p {
    margin: 0;
}

.calc-section {
    background: #fafafa;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.calc-section h3 {
    font-size: 1.15em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    color: #1e293b;
    font-weight: 600;
}

.step-number {
    background: #3b82f6;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: 600;
    font-size: 0.9em;
    flex-shrink: 0;
}

.input-group {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 0.95em;
    color: #475569;
}

.input-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 1em;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #1f2937;
    box-sizing: border-box;
    transition: all 0.2s ease;
    font-weight: 500;
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.slider-container {
    margin-top: 12px;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.slider-value {
    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
    margin-top: 12px;
    color: #3b82f6;
}

.results-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 32px;
    border-radius: 8px;
    margin-top: 32px;
    border: 1px solid #bae6fd;
}

.results-box h3 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 24px;
    color: #0c4a6e;
    font-weight: 700;
}

.result-item {
    background: white;
    padding: 18px 20px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0f2fe;
    transition: all 0.2s ease;
}

.result-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-color: #bae6fd;
}

.result-item:last-child {
    margin-bottom: 0;
}

/* HIDE MARKETING INVESTMENT AND ROI */
.result-item:nth-child(5),
.result-item:nth-child(6) {
    display: none !important;
}

.result-label {
    font-size: 0.95em;
    font-weight: 500;
    color: #475569;
}

.result-value {
    font-size: 1.6em;
    font-weight: 700;
    color: #1e293b;
}

.result-value.highlight {
    color: #3b82f6;
}

.info-tooltip {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #e5e7eb;
    color: #64748b;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    margin-left: 6px;
    cursor: help;
    font-size: 0.75em;
    font-weight: 600;
}

.cta-section {
    text-align: center;
    margin-top: 32px;
    padding: 32px;
    background: #fef3c7;
    border-radius: 8px;
    border: 1px solid #fde68a;
}

.cta-section h3 {
    color: #78350f;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1.3em;
}

.cta-section p {
    color: #92400e;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: #3b82f6;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    margin-top: 8px;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.cta-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.benchmark-note {
    background: #fef9f3;
    padding: 14px 16px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 0.9em;
    border-left: 3px solid #fb923c;
    color: #78350f;
    line-height: 1.5;
}

.phone-link {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.phone-link:hover {
    border-bottom-color: #3b82f6;
}

/* Helper text for revenue goal */
.helper-text {
    font-size: 0.85em;
    font-style: italic;
    color: #64748b;
    margin: 8px 0 12px 0;
    line-height: 1.4;
}

/* Adjust slider note */
.adjust-note {
    font-size: 0.85em;
    font-style: italic;
    color: #64748b;
    font-weight: 400;
    margin-left: 6px;
}

/* Share Results Section */
.share-results {
    background: white;
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
    border: 2px dashed #fbbf24;
}

.share-results h4 {
    font-size: 1.1em;
    color: #78350f;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #475569;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn svg {
    flex-shrink: 0;
}

.share-email:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.share-linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: white;
}

.share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.share-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.share-pdf:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.cta-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #fbbf24, transparent);
    margin: 24px 0;
}

/* Print Modal Styles */
.print-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.print-modal.active {
    display: flex;
}

.print-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.print-modal-content {
    position: relative;
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.print-preview {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    background: white;
    color: #000;
}

/* Print Preview Content */
.print-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 3px solid #000;
    margin-bottom: 30px;
}

.print-header h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.print-subtitle {
    font-size: 1.1em;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.print-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.print-section:last-of-type {
    border-bottom: none;
}

.print-section h2 {
    font-size: 1.3em;
    font-weight: 700;
    color: #000;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.print-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dotted #ccc;
}

.print-row:last-child {
    border-bottom: none;
}

.print-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.print-value {
    font-weight: 400;
    color: #000;
    text-align: right;
}

/* Results Section */
.print-results-section {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #000;
}

.print-result-box {
    margin-top: 16px;
}

.print-result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 2px solid #ddd;
}

.print-result-item:last-child {
    border-bottom: none;
}

.print-result-label {
    font-weight: 600;
    color: #000;
    font-size: 1.05em;
}

.print-result-value {
    font-weight: 700;
    color: #000;
    font-size: 1.3em;
}

/* Footer */
.print-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 3px solid #000;
    text-align: center;
}

.print-footer h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
}

.print-services {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.6;
}

.print-contact {
    font-size: 0.95em;
    color: #000;
}

.print-contact p {
    margin: 4px 0;
}

/* Modal Actions */
.print-modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.print-action-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.print-btn-secondary {
    background: white;
    color: #475569;
    border: 2px solid #e5e7eb;
}

.print-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.print-btn-primary {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.print-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Print Styles - NUCLEAR OVERRIDE */
@media print {
    /* Step 1: Hide EVERYTHING on the page */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    body * {
        display: none !important;
    }
    
    /* Step 2: ONLY show the print modal and its content */
    .print-modal,
    .print-modal-content,
    .print-preview,
    .print-preview * {
        display: block !important;
        visibility: visible !important;
    }
    
    /* Step 3: Position print preview as the ONLY content */
    .print-modal {
        position: static !important;
        display: block !important;
        background: white !important;
    }
    
    .print-modal-overlay,
    .print-modal-actions {
        display: none !important;
    }
    
    .print-modal-content {
        position: static !important;
        max-width: 100% !important;
        max-height: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    .print-preview {
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15mm !important;
        margin: 0 !important;
        background: white !important;
        overflow: visible !important;
    }
    
    /* Step 4: Make print content elements display correctly */
    .print-header,
    .print-section,
    .print-footer,
    .print-row,
    .print-result-box,
    .print-result-item,
    .print-services,
    .print-contact {
        display: block !important;
    }
    
    .print-label,
    .print-value,
    .print-result-label,
    .print-result-value {
        display: inline !important;
    }
    
    /* Step 5: Typography for print */
    .print-header h1 {
        font-size: 24pt !important;
        margin: 0 0 5px 0 !important;
        color: #000 !important;
    }
    
    .print-subtitle {
        font-size: 12pt !important;
        margin: 0 0 20px 0 !important;
        color: #333 !important;
    }
    
    .print-section h2 {
        font-size: 14pt !important;
        margin: 15px 0 10px 0 !important;
        color: #000 !important;
    }
    
    .print-label,
    .print-value {
        font-size: 10pt !important;
        color: #000 !important;
    }
    
    .print-result-label {
        font-size: 11pt !important;
        color: #000 !important;
    }
    
    .print-result-value {
        font-size: 16pt !important;
        font-weight: bold !important;
        color: #000 !important;
    }
    
    /* Step 6: Page break control */
    .print-section {
        page-break-inside: avoid !important;
        margin-bottom: 15px !important;
    }
    
    .print-result-item {
        page-break-inside: avoid !important;
        margin-bottom: 8px !important;
    }
    
    .print-footer {
        page-break-before: auto !important;
        margin-top: 20px !important;
    }
    
    /* Step 7: Clean up borders and backgrounds */
    .print-preview * {
        box-shadow: none !important;
        border-radius: 0 !important;
        text-shadow: none !important;
    }
    
    .print-results-section {
        background: #f5f5f5 !important;
        border: 2px solid #000 !important;
        padding: 15px !important;
    }
    
    /* Step 8: Page settings */
    @page {
        margin: 15mm;
        size: letter portrait;
    }
    
    /* Step 9: Remove any WordPress/theme elements that might sneak through */
    header, footer, nav, aside,
    .site-header, .site-footer,
    .header, .footer,
    .navigation, .sidebar,
    #wpadminbar, .admin-bar,
    .site-branding, .site-navigation,
    .entry-header, .entry-footer,
    .post-navigation, .comment-navigation,
    .widget, .widget-area {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .calc-container {
        margin: 20px 10px;
    }
    
    .calc-header {
        padding: 30px 20px 20px;
    }
    
    .calc-header h2 {
        font-size: 1.5em;
    }
    
    .calc-body {
        padding: 24px 20px;
    }
    
    .result-value {
        font-size: 1.3em;
    }
    
    .result-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 16px;
    }
    
    .results-box {
        padding: 24px 20px;
    }
    
    .lead-form {
        padding: 24px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* MOBILE: ONE COLUMN FOR BENEFITS */
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn-back {
        order: 2;
    }
    
    .btn-next,
    .submit-btn {
        order: 1;
        /* Mobile button sizing - still larger than before */
        padding: 20px 40px;
        font-size: 1.05em;
    }
    
    .benefits-list {
        padding: 24px 20px;
    }
    
    .cta-section {
        padding: 24px 20px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    .share-btn {
        font-size: 0.85em;
        padding: 10px 12px;
    }
    
    .print-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .print-preview {
        padding: 24px;
    }
    
    .print-header h1 {
        font-size: 1.8em;
    }
    
    .print-result-value {
        font-size: 1.1em;
    }
}