.csc-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

.csc-top-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.csc-text-column {
    flex: 1;
    min-width: 300px;
}

.csc-form-column {
    flex: 1;
    min-width: 300px;
}

.csc-text-column h2 {
    color: #191919;
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
}

.csc-text-column p {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.csc-calculator-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

.csc-form-group {
    margin-bottom: 20px;
}

.csc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #191919;
    font-size: 14px;
    display: flex;
    align-items: center;
}

/* Tooltip Styling */
.csc-tooltip-icon {
    margin-left: 8px;
    color: #0044eb;
    cursor: pointer;
    position: relative;
    font-size: 14px;
}

.csc-tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 100;
    bottom: 125%; /* Position above */
    left: 50%;
    margin-left: -125px; /* Center */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.csc-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.csc-tooltip-icon:hover .csc-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.csc-input, .csc-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

.csc-input:focus, .csc-select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    outline: none;
    background-color: #fff;
}

.csc-action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.csc-button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.csc-button:active {
    transform: translateY(1px);
}

.primary-btn {
    background-color: #74aa9c;
    color: white;
}

.primary-btn:hover {
    background-color: #5e8f82;
    box-shadow: 0 4px 12px rgba(116, 170, 156, 0.2);
}

.secondary-btn {
    background-color: #f0f0f1;
    color: #333;
    border: 1px solid #ccc;
}

.secondary-btn:hover {
    background-color: #e5e5e5;
}

/* Results Section */
.csc-results {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.csc-results-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.csc-result-card {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.csc-result-card h3 {
    margin: 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    color: #191919;
    text-align: center;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.csc-result-card.conservative h3 {
    border-top: 4px solid #0073aa;
}

.csc-result-card.high-end h3 {
    border-top: 4px solid #27ae60;
}

.csc-result-row {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.csc-result-row:last-child {
    border-bottom: none;
}

.csc-result-row .label {
    font-size: 14px;
    color: #666;
    flex: 1;
    padding-right: 15px;
}

.csc-result-row .value {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

.csc-result-row.highlight {
    background-color: #fcfcfc;
}

.csc-result-row.highlight .label {
    color: #0073aa;
    font-weight: 600;
}

.csc-result-row.total {
    background-color: #f0f7fb;
    padding: 20px;
}

.csc-result-card.high-end .csc-result-row.total {
    background-color: #eafaf1;
}

.csc-result-row.total .label {
    color: #191919;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
}

.csc-result-row.total .value {
    color: #0073aa;
    font-size: 22px;
    font-weight: 800;
}

.csc-result-card.high-end .csc-result-row.total .value {
    color: #27ae60;
}

.csc-results-message {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.csc-results-message p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.csc-post-result-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    background-color: #d35400; /* Orange for CTA */
    text-decoration: none;
    text-align: center;
    max-width: 300px;
    display: inline-block;
}

.cta-btn:hover {
    background-color: #ba4a00;
}

.download-btn {
    background-color: #74aa9c;
    max-width: 300px;
}

.download-btn:hover {
    background-color: #5e8f82;
}

/* Print Summary Box - Hidden by default */
.csc-print-summary {
    display: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    background-color: #f9f9f9;
}

.csc-print-summary h3 {
    margin-top: 0;
    color: #191919;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.csc-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.csc-summary-item {
    display: flex;
    flex-direction: column;
}

.csc-summary-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

.csc-summary-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .csc-results-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .csc-top-section {
        flex-direction: column;
    }
    
    .csc-text-column h2 {
        font-size: 26px;
    }
    
    .csc-tooltip-text {
        left: auto;
        right: 0;
        margin-left: 0;
        width: 220px;
    }
    
    .csc-tooltip-text::after {
        left: auto;
        right: 10px;
    }

    .csc-post-result-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn, .download-btn {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .csc-calculator-card {
        padding: 20px;
    }

    .csc-result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .csc-result-row .value {
        align-self: flex-end;
    }
}

/* Print styles for the PDF download feature */
@media print {
    body {
        background: white;
    }
    
    /* Hide the form and buttons when printing */
    .csc-top-section, .csc-action-buttons, .csc-post-result-actions {
        display: none !important;
    }
    
    /* Ensure results are visible */
    #csc-results {
        display: block !important;
        border: none;
        background: white;
    }
    
    .csc-results-wrapper {
        display: block !important;
    }
    
    /* Header for print */
    .csc-print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 30px;
        border-bottom: 2px solid #0073aa;
        padding-bottom: 20px;
    }
    
    /* Show the summary in print */
    .csc-print-summary {
        display: block !important;
    }
    
    .csc-results-message {
        display: none; /* Hide the sales message in print */
    }
    
    /* Adjust card layout for print */
    .csc-result-card {
        margin-bottom: 30px;
        page-break-inside: avoid;
        border: 1px solid #ccc;
    }
}

.csc-print-header {
    display: none;
}
