/* calculators.css - Finovate Theme Color Match */

.calc-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 35px;
    background: #ffffff;
    box-shadow: none; /* Shadow and border radius are handled by Elementor container card */
    border-radius: 0;
    font-family: "Work Sans", sans-serif;
    color: #2d3748;
    box-sizing: border-box;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .calc-container {
        padding: 15px;
    }
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.calc-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

@media (max-width: 576px) {
    .calc-row-2col {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group > label {
    font-family: "Work Sans", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #478631; /* Primary dark green */
}

.input-group > input[type="text"],
.input-group > input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-family: "Work Sans", sans-serif;
    font-size: 15px;
    color: #478631;
    background: #F6F5F2; /* Off-white theme bg */
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group > input[type="number"] {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
}

.input-group > input[type="text"]:focus,
.input-group > input[type="number"]:focus {
    outline: none;
    border-color: #B89047; /* Red/maroon accent */
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(184, 144, 71, 0.2);
}

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

.input-label-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-label-wrap label {
    font-family: "Work Sans", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #478631; /* Primary dark green */
}

.input-label-wrap input[type="number"] {
    width: 130px;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    text-align: right;
    font-size: 15px;
    color: #478631;
    background: #F6F5F2; /* Off-white theme bg */
    transition: all 0.3s ease;
}

.input-label-wrap input[type="number"]:focus {
    outline: none;
    border-color: #B89047; /* Red/maroon accent */
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(184, 144, 71, 0.2);
}

.input-label-wrap input[type="text"] {
    width: 180px;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-family: "Work Sans", sans-serif;
    font-size: 15px;
    color: #478631;
    background: #F6F5F2;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-label-wrap input[type="text"]:focus {
    outline: none;
    border-color: #B89047;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(184, 144, 71, 0.2);
}

/* Custom range slider styling */
.slider-input {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    background: #e2e8f0;
    transition: background 0.1s ease;
}

/* Chrome, Safari, Opera, Edge thumb styling */
.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #478631; /* Primary dark green */
    border: 3px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: #B89047; /* Red/maroon hover */
}

/* Firefox thumb styling */
.slider-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #478631;
    border: 3px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.slider-input::-moz-range-thumb:hover {
    transform: scale(1.25);
    background: #B89047;
}

.calc-results {
    background: #F6F5F2; /* Off-white */
    border-radius: 14px;
    padding: 30px;
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    box-sizing: border-box;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-item.highlight {
    background: linear-gradient(135deg, #f0f7f1 0%, #e6f4e7 100%);
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #c6e6cd;
    border-bottom: none;
}

.result-label {
    font-family: "Work Sans", sans-serif;
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.result-item.highlight .result-label {
    color: #478631;
    font-weight: 700;
}

.result-value {
    font-family: "Outfit", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.result-item.highlight .result-value {
    font-size: 26px;
    color: #478631;
}

.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.progress-ring-wrap {
    position: relative;
    width: 140px;
    height: 140px;
}

.ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.ring-text span {
    font-family: "Outfit", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #478631;
}

.ring-text small {
    font-family: "Work Sans", sans-serif;
    font-size: 10px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Update SVG progress ring active path to use logo red */
svg circle[id="progress_ring"],
svg circle[id="lump_progress_ring"] {
    stroke: #B89047 !important;
}

/* Back link link styling inside Elementor wrapper */
.back-btn {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: #478631;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.back-btn:hover {
    transform: translateX(-4px);
    color: #B89047;
}
