/* Calculator Page Styles */

.calculator-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.calc-card {
    background: rgba(31, 31, 31, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.calc-card:hover {
    border-color: rgba(0, 123, 255, 0.3);
}

.calc-card h2, .calc-card h3 {
    text-align: left;
    margin-top: 0;
    font-weight: 700;
}

.calc-card h2 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.calc-card h3 {
    font-size: 1.6rem;
    color: #f3f4f6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.form-group label .label-value {
    float: right;
    color: #007bff;
    font-weight: 700;
}

.calc-input {
    width: 100%;
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.calc-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Custom Sliders */
.slider-container {
    position: relative;
    margin-top: 0.5rem;
}

.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin: 1rem 0;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    transition: transform 0.1s, background-color 0.2s;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #0056b3;
}

.calc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    transition: transform 0.1s, background-color 0.2s;
    border: none;
}

.calc-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #0056b3;
}

/* Collapsible Advanced Section */
.advanced-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: #9ca3af;
    margin-top: 1rem;
    transition: background 0.3s, color 0.3s;
}

.advanced-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f3f4f6;
}

.advanced-toggle i {
    transition: transform 0.3s;
}

.advanced-toggle.active i {
    transform: rotate(180deg);
}

.advanced-fields {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    margin-top: 0;
}

.advanced-fields.show {
    max-height: 800px;
    opacity: 1;
    margin-top: 1.5rem;
}

/* Outputs Cards styling */
.output-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.output-item:last-child {
    border-bottom: none;
}

.output-label {
    font-size: 1.05rem;
    color: #9ca3af;
}

.output-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #38bdf8; /* light blue */
}

.output-value.highlight-green {
    color: #34d399; /* emerald green */
    font-size: 1.8rem;
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.output-hero-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.output-hero-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #93c5fd;
    margin-bottom: 0.5rem;
}

.output-hero-value {
    font-size: 2.6rem;
    font-weight: 800;
    color: #34d399;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.package-suggestion-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.package-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.25rem;
}

.package-cost {
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 0.75rem;
}

.package-roi-banner {
    font-size: 1rem;
    font-weight: 600;
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

/* CTA Lead Magnet Form styling */
.cta-lead-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.cta-lead-card {
    background: linear-gradient(135deg, #001f3f 0%, #111 100%);
    border: 1px solid rgba(0, 123, 255, 0.25);
    border-radius: 20px;
    padding: 3.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-lead-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-lead-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-lead-card p {
    font-size: 1.2rem;
    color: #9ca3af;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

.lead-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    justify-content: center;
}

.lead-inline-form .calc-input {
    flex: 1;
    min-width: 220px;
}

.lead-inline-form button {
    flex: 0 0 auto;
    padding: 0.8rem 2rem;
    font-size: 1.05rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .cta-lead-card {
        padding: 2.5rem 1.5rem;
    }
    .lead-inline-form {
        flex-direction: column;
    }
    .lead-inline-form .calc-input {
        width: 100%;
    }
    .lead-inline-form button {
        width: 100%;
    }
}

.message-box {
    margin-top: 1.5rem;
    font-weight: 600;
}

/* Report Generator and PDF styling */
.pdf-preview-outer {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
}

.pdf-preview-inner {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    font-family: 'Inter', sans-serif;
    color: #f3f4f6;
    max-width: 800px;
    margin: 0 auto;
}

#pdf-theme-color {
    border-radius: 4px;
    outline: none;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Print Overrides for native browser printing */
@media print {
    body * {
        visibility: hidden;
    }
    #report-pdf-template, #report-pdf-template * {
        visibility: visible;
    }
    #report-pdf-template {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #111827 !important;
        color: #f3f4f6 !important;
        padding: 0 !important;
        border: none !important;
    }
}
