/* Mobile styles (default) */
.alm-simple-calculator {
    background: transparent;
    padding: 0 16px;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

.alm-calculator-field {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
}

.alm-calculator-field .input-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 0;
    padding-left: 0;
}

.alm-calculator-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.25;
}

.alm-amount-display,
.alm-period-display {
    background: #fff!important;
    color: #5F7192;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: bold;
    width: 130px;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
}

.alm-input-field {
    background: #fff!important;
    color: #5F7192!important;
    padding: 8px 16px!important;
    border-radius: 30px!important;
    font-weight: bold!important;
    width: 130px!important;
    font-size: 18px!important;
    text-align: center!important;
    border: none!important;
    outline: none;
    box-shadow: none;
    outline: none;
}

.alm-simple-calculator .alm-slider-container {
    margin-top: 18px;
}

.alm-simple-calculator .alm-custom-slider {
    height: 9px;
    background: rgba(255, 255, 255, 0.45);
}

.alm-simple-calculator .alm-slider-progress {
    background: #fff;
}

.alm-simple-calculator .alm-slider-handle {
    width: 42px;
    height: 42px;
    background: #fff;
    box-shadow: none;
}

.alm-simple-calculator .alm-slider-handle img {
    display: none;
}

.alm-simple-calculator .alm-slider-handle::before,
.alm-simple-calculator .alm-slider-handle::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.alm-simple-calculator .alm-slider-handle::before {
    border-right: 6px solid #5F7192;
    margin-right: 3px;
}

.alm-simple-calculator .alm-slider-handle::after {
    border-left: 6px solid #5F7192;
    margin-left: 3px;
}

.alm-simple-calculator .alm-slider-values {
    color: #fff;
    font-size: 15px;
}

.alm-check-button {
    background: var(--global-palette1)!important;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.alm-simple-calculator .alm-check-button,
.alm-simple-calculator .alm-info-link-simple-calculator {
    display: block;
}

.alm-check-button:hover {
    background: var(--global-palette2)!important;
}

.hide-mobile {
    display: none;
}

.hide-desktop, 
.hide-tablet {
    display: block;
}

.alm-info-link-simple-calculator {
    width: 100%;
    text-align: center;
    color: #fff;
}

@media (max-width: 768px) {
    .alm-simple-calculator .alm-slider-handle {
        width: 35px;
        height: 35px;
    }
}

/* Tablet styles */
@media (min-width: 769px) {
    .hide-tablet {
        display: none;
    }
    
    .hide-desktop {
        display: block;
    }
}

/* Desktop styles */
@media (min-width: 1025px) {
    .alm-simple-calculator {
        padding: 0;
    }

    .alm-calculator-field .input-row {
        margin-top: 0;
        padding-left: 0;
    }

    .alm-calculator-field label {
        display: block;
        font-size: 18px;
    }

    .alm-amount-display,
    .alm-period-display,
    .alm-input-field {
        padding: 12px 24px!important;
        min-width: 130px!important;
        width: 160px!important;
        font-size: 18px!important;
    }

    .hide-desktop {
        display: none !important;
    }

    .hide-tablet {
        display: block;
    }

    .hide-mobile {
        display: block;
    }

    .alm-check-button {
        width: auto;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        justify-self: start;
        align-self: center;
    }

    .alm-info-link-simple-calculator {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: auto;
        margin-top: 0;
        margin-left: 0;
        justify-self: start;
        align-self: center;
    }

    .alm-simple-calculator {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 18px;
        width: min(100%, 760px);
        max-width: 760px;
        justify-content: start;
    }
}

.alm-info-link {
    display: block; 
    font-size: 13px;
    text-decoration: underline;
    color: #fff;
    margin-top: 5px;
}
