/*
  File: public/assets/front/css/calculator.css
*/

.custom-calculator-area {
    padding: 60px 0;
    background-color: #f8f9fa; /* A light grey background for the section */
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Creates the two-column layout */
    gap: 40px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    align-items: center;
}

/* --- Left Side: Input Sliders --- */
.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-group .labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.input-group label {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.input-group .value-display {
    font-size: 20px;
    font-weight: 600;
    color: #e53958; /* Highlight color */
    background-color: #f1f1f1;
    padding: 5px 12px;
    border-radius: 6px;
}

/* Slider Styling */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #ddd;
    outline: none;
    border-radius: 4px;
    opacity: 0.9;
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: #e53958;
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #e53958;
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}


/* --- Right Side: Results Box --- */
.calculator-results {
    background-color: #e53958; /* The red background from your screenshot */
    color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

/* --- NEW STYLES START HERE --- */
.otplata-box {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.otplata-box p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}
.otplata-box span {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}
/* --- NEW STYLES END HERE --- */

.results-intro {
    font-size: 18px;
    margin: 0 0 5px 0;
    opacity: 0.9;
}

.results-total {
    font-size: 52px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

/* --- NEW STYLE FOR YEARLY SAVINGS --- */
.godisnja-usteda {
    margin: 0 0 30px 0;
    font-size: 16px;
    opacity: 0.8;
}

.results-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.results-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

.results-button {
    display: inline-block;
    background-color: #1a1a1a; /* Dark button */
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.results-button:hover {
    background-color: #000000;
    color: #ffffff;
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 992px) {
    .calculator-wrapper {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        padding: 25px;
        gap: 40px;
    }
    
    .results-total {
        font-size: 44px;
    }
    .otplata-box span {
        font-size: 32px;
    }
}