.calculators {
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calculator-header {
    padding: 20px;
    background-color: #e0e8f1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.calculator-header .header-item {
    width: 100%;
}

.calculator-header input {
    width: calc(50% - 5px);
    padding: 10px;
    font-size: 1rem;
}

.section {
    padding: 20px;
    border-top: 1px solid #d1d1d1;
}

.section-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.input-grid {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.input-grid div {
    flex: 1 1 calc(25% - 10px);
    min-width: 100px;
}

.input-grid input,
.input-grid select {
    width: 100%;
    padding: 8px;
    font-size: 1rem;
}

.highlight {
    background-color: #004c8c;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    border-radius: 5px;
}

.disclaimer {
    padding: 10px;
    font-size: 0.9rem;
    color: #555;
}

button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

/* Responsive visibility adjustments */
@media (max-width: 500px) {
    .calculator-header input[type="text"] {
        width: 100%;
    }

    .input-grid div:nth-child(n+3) { /* Show only the first two divs */
        display: none;
    }
}

@media (min-width: 501px) and (max-width: 700px) {
    .input-grid div:nth-child(n+4) { /* Show the first three divs */
        display: none;
    }
}

@media (min-width: 701px) {
    .input-grid div { /* Show all four divs */
        display: block;
    }
}