/* --- Upwork Tool Styles --- */
.calc-wrapper {
    font-family: 'Segoe UI', sans-serif;
    max-width: 900px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.calc-header {
    background: #1a5bb8; /* Theme Blue */
    color: #ffffff;
    padding: 20px;
    text-align: center;
}
.calc-header h2 { margin: 0; font-size: 1.5rem; }

.calc-body { display: flex; flex-wrap: wrap; }

.calc-inputs {
    flex: 1;
    padding: 30px;
    min-width: 300px;
    border-right: 1px solid #e0e0e0;
}

.calc-results {
    flex: 1;
    padding: 30px;
    background: #f8f9fa;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: #333; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; box-sizing: border-box; }

.result-row { display: flex; justify-content: space-between; margin-bottom: 10px; color: #555; }
.result-row.total { font-weight: 700; color: #333; }

.profit-box {
    background: #1a5bb8;
    color: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s;
}
.profit-box h3 { margin: 0; font-size: 2.5rem; font-weight: 700; }

.roi-grid { display: flex; justify-content: center; }
.roi-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ddd;
    width: 100%;
}
.roi-value { display: block; font-weight: 700; font-size: 1.2rem; color: #333; }

@media (max-width: 768px) {
    .calc-body { flex-direction: column; }
    .calc-inputs { border-right: none; border-bottom: 1px solid #e0e0e0; }
}
/* --- Universal Fix for Cut Text --- */
.form-control, select, input[type="number"], input[type="text"] {
    height: auto !important;       /* Fixed height khatam */
    min-height: 45px !important;   /* Kam se kam itna bada ho */
    line-height: 1.5 !important;   /* Text ke beech mein gap */
    padding: 10px 12px !important; /* Andar ka gap */
    box-sizing: border-box !important; /* Padding ko size mein shamil kare */
    overflow: visible !important;  /* Text chupe nahi */
}