html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: transparent; /* Makes the iframe background invisible */
}

body {
    display: flex;
    align-items: center; /* Vertically center the container */
    justify-content: center; /* Horizontally center the container */
}

.slider-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    /* The container will not exceed the body height */
    max-height: 95%; 
    /* If content overflows, a scrollbar appears INSIDE the container */
    overflow-y: auto; 
    border: 1px solid #ccc;
}

/* All other styles remain the same, focusing on internal layout */
.input-group, .output-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #21409A;
    font-weight: bold;
}

.output-group label {
    display: flex;
    align-items: center;
    justify-content: center;
}

input[type="checkbox"] {
    margin-right: 10px;
}

input[type="number"] {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #21409A;
    box-sizing: border-box;
}

input[type="range"] {
    width: 100%;
}

h1, h2 {
    text-align: center;
    color: #21409A;
    margin-top: 0;
}

h1 {
    font-size: 1.4rem;
}

#monthly-payment {
    font-size: 1.5rem;
    font-weight: bold;
    color: #21409A;
    text-align: center;
    border: none;
    width: auto;
}

.lock-icon {
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 8px;
}

.locked {
    opacity: 0.5;
}
