/* Styles for Smartphone TCO Comparator */
.calcufacil-smartphone_tco_comparator.calcufacil-container.enhanced-smartphonetco-calc {
    max-width: 1200px; /* Can be wide due to side-by-side phone inputs */
    margin: 25px auto;
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 25px;
    font-family: 'Arial', sans-serif;
}

.calcufacil-smartphone_tco_comparator .calcufacil-left.calculator-form {
    flex: 1 1 60%; /* More space for form with multiple phone inputs */
    min-width: 500px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.06);
}

.calcufacil-smartphone_tco_comparator .calcufacil-right.results.enhanced-smartphonetco-results {
    flex: 1 1 40%;
    min-width: 380px;
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid #e1e7ec;
    box-shadow: 0 2px 7px rgba(0,0,0,0.06);
}

.calcufacil-smartphone_tco_comparator .calculator-form h4 { /* Section title in form */
    font-size: 1.3em; color: #3b597f; margin-top:0; margin-bottom: 10px; font-weight: 600; display:flex; align-items:center; gap:8px;
}
.calcufacil-smartphone_tco_comparator .calculator-form .description {
    font-size: 14px; color: #5a728e; margin-bottom: 18px; line-height: 1.5;
}

.calcufacil-smartphone_tco_comparator .phones-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust minmax for number of phones */
    gap: 20px;
}
.calcufacil-smartphone_tco_comparator .phone-input-column fieldset {
    border: 1px solid #cdd7e3; padding: 15px; border-radius: 6px; margin:0; height: 100%;
}
.calcufacil-smartphone_tco_comparator .phone-input-column legend {
    font-weight: 600; color: #456a8e; padding: 0 8px; font-size: 1.1em;
}
.calcufacil-smartphone_tco_comparator .phone-input-column h5 { /* For ratings sub-header */
    font-size: 0.95em; color: #456a8e; margin-top: 15px; margin-bottom: 8px;
}

.calcufacil-smartphone_tco_comparator .form-grid.three-col-grid.narrow-gap {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px 10px;
}
.calcufacil-smartphone_tco_comparator .input-group { margin-bottom: 10px; display: flex; flex-direction: column; }
.calcufacil-smartphone_tco_comparator .input-group label {
    font-weight: 500; color: #4e6a85; margin-bottom: 4px; font-size: 13px;
}
.calcufacil-smartphone_tco_comparator .input-group input[type="text"],
.calcufacil-smartphone_tco_comparator .input-group input[type="number"] {
    width: 100%; padding: 8px; border: 1px solid #c3ced9; border-radius: 4px;
    font-size: 13.5px; box-sizing: border-box;
}
.calcufacil-smartphone_tco_comparator .global-currency-symbol { margin-top: 15px;}

.calcufacil-smartphone_tco_comparator button[type="submit"] {
    background: #456a8e; color: #fff; padding: 11px 22px; border: none; border-radius: 5px;
    cursor: pointer; font-size: 16px; width: 100%; margin-top: 20px; font-weight: bold;
}
.calcufacil-smartphone_tco_comparator button[type="submit"]:hover { background: #3b597f; }

/* Results Area Styling */
.calcufacil-smartphone_tco_comparator .results.enhanced-smartphonetco-results h4 { /* Main results title */
    font-size: 1.3em; color: #3b597f; text-align: center; margin-top:0; margin-bottom: 15px;
    display:flex; align-items:center; justify-content:center; gap:8px;
}
.calcufacil-smartphone_tco_comparator .smartphones-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.calcufacil-smartphone_tco_comparator .smartphone-result-card {
    padding: 15px; border-radius: 6px; background-color: #edf3f7; border: 1px solid #d1dde6;
}
.calcufacil-smartphone_tco_comparator .smartphone-result-card.best-tco {
    border-left: 4px solid #4CAF50; /* Highlight best TCO */
    background-color: #e8f5e9;
}
.calcufacil-smartphone_tco_comparator .smartphone-result-card h5 { /* Phone name */
    margin-top: 0; font-size: 1.2em; color: #365270; margin-bottom: 10px; text-align:center;
}
.calcufacil-smartphone_tco_comparator .smartphone-result-card ul {
    list-style: none; padding-left: 0; margin-bottom: 10px; font-size: 0.9em;
}
.calcufacil-smartphone_tco_comparator .smartphone-result-card li { margin-bottom: 5px; color: #4e6a85; }
.calcufacil-smartphone_tco_comparator .smartphone-result-card .value { font-weight: 600; float:right; }
.calcufacil-smartphone_tco_comparator .smartphone-result-card .important-value { font-weight: bold; color: #1e425f; font-size:1.1em; }

.calcufacil-smartphone_tco_comparator .tco-details-list { margin-top:8px; padding-top:8px; border-top:1px dotted #c3ced9;}
.calcufacil-smartphone_tco_comparator .tco-details-list li { font-size:0.85em; }
.calcufacil-smartphone_tco_comparator .ratings-list { display:grid; grid-template-columns:1fr 1fr; gap:3px 10px; font-size:0.85em; margin-top:5px;}
.calcufacil-smartphone_tco_comparator .ratings-list li { border-bottom:1px dotted #d1dde6; padding-bottom:3px; }
.calcufacil-smartphone_tco_comparator .smartphone-result-card h6 { font-size:0.9em; color:#456a8e; margin-top:12px; margin-bottom:5px;}


.calcufacil-smartphone_tco_comparator .chart-container-smartphonetco {
    width: 100%; height: 250px; /* Adjust based on number of phones */
    position: relative; margin: 15px auto 20px auto;
    padding: 10px; background-color: #fdfdfe; border-radius: 4px; border: 1px solid #e1e7ec; box-sizing: border-box;
}
.calcufacil-smartphone_tco_comparator .results.enhanced-smartphonetco-results > h5 { /* Chart specific title */
    font-size: 1.1em; color: #3b597f; margin-top: 20px; margin-bottom: 8px;
    text-align:center; padding-bottom: 5px; border-bottom: 1px solid #d1dde6;
}


.calcufacil-smartphone_tco_comparator .disclaimer-box.smartphonetco-disclaimer {
    margin-top: 20px; padding: 12px; background-color: #f0f4f8;
    border: 1px solid #d0d9e2; border-left: 3px solid #5a728e; border-radius: 4px; font-size: 0.85em;
}
.calcufacil-smartphone_tco_comparator .disclaimer-box h4 { margin-top: 0; margin-bottom: 8px; color: #435a70; }
.calcufacil-smartphone_tco_comparator .disclaimer-box ul { list-style: disc; margin-left: 18px; padding-left: 0; color: #4e6a85; line-height: 1.5; }


.calcufacil-smartphone_tco_comparator .errors.main-error {
    color: #721c24; background-color: #f8d7da; border-color: #f5c6cb;
    padding: .75rem 1.25rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: .25rem;
}
.calcufacil-smartphone_tco_comparator .initial-message {
    text-align: center; padding: 20px; background-color: #f0f4f8;
    border: 1px dashed #d0d9e2; border-radius: 5px; margin-top: 15px; color: #5a728e;
}

@media (max-width: 1100px) {
    .calcufacil-smartphone_tco_comparator.calcufacil-container.enhanced-smartphonetco-calc {
        flex-direction: column;
    }
    .calcufacil-smartphone_tco_comparator .calcufacil-left.calculator-form,
    .calcufacil-smartphone_tco_comparator .calcufacil-right.results.enhanced-smartphonetco-results {
        flex-basis: 100%; min-width: 100%; margin-bottom: 20px;
    }
    .calcufacil-smartphone_tco_comparator .calcufacil-right.results.enhanced-smartphonetco-results { margin-bottom: 0; }
}
@media (max-width: 768px) {
    .calcufacil-smartphone_tco_comparator .phones-input-grid,
    .calcufacil-smartphone_tco_comparator .smartphones-results-grid {
        grid-template-columns: 1fr; /* Stack phone inputs and results */
    }
    .calcufacil-smartphone_tco_comparator .form-grid.three-col-grid.narrow-gap {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}