/* =========================================================
   CHARGING CALCULATOR
   ========================================================= */

.charging-calculator {
    margin-top: 40px;
}


/* =========================================================
   CHARGE LEVEL PREVIEW
   ========================================================= */

.charge-level-preview {
    margin-top: 28px;
    padding: 22px;
    background: #f6f8f7;
    border-radius: 16px;
}

.charge-level-preview__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.charge-level-preview__header span:first-child {
    font-size: 14px;
    font-weight: 600;
    color: #202522;
}

#charge-progress-percent {
    font-size: 14px;
    font-weight: 700;
    color: #1c8b5a;
}

.charge-level-preview__track {
    position: relative;
    width: 100%;
    height: 12px;
    overflow: hidden;
    background: #e3e8e5;
    border-radius: 20px;
}

.charge-level-preview__fill {
    width: 80%;
    height: 100%;
    background: #1c8b5a;
    border-radius: 20px;
    transition: width 0.25s ease;
}

.charge-level-preview__labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: #7b847f;
}

.charge-level-preview__labels span:last-child {
    color: #1c8b5a;
    font-weight: 600;
}


/* =========================================================
   OPTIONAL RANGE INPUT
   ========================================================= */

.charging-range-input {
    margin-top: 24px;
    padding-top: 24px;
    padding: 24px 24px 0;
    border-top: 1px solid #e5e9e7;
}
.charging-range-input label.form-field__label{
    justify-content: flex-start;
}
.charging-range-input__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.charging-range-input__header span:first-child {
    font-size: 14px;
    font-weight: 600;
    color: #202522;
}

.charging-range-input__header span:last-child {
    font-size: 12px;
    color: #858d89;
}


/* =========================================================
   MAIN RESULT
   ========================================================= */

.charging-result {
    margin-top: 28px;
}

.charging-result .result {
    position: relative;
    overflow: hidden;
}

.charging-result .result::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #1c8b5a;
}

.charging-result .result__label {
    margin-bottom: 8px;
}

.charging-result .result__value {
    font-size: 42px;
    line-height: 1.1;
}


/* =========================================================
   RESULT DETAILS
   ========================================================= */

.charging-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.charging-detail {
    padding: 18px 20px;
    background: #f6f8f7;
    border: 1px solid #e8ecea;
    border-radius: 14px;
}

.charging-detail__label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    line-height: 1.4;
    color: #7c8580;
}

.charging-detail__value {
    display: block;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    color: #202522;
}


/* =========================================================
   NOTE
   ========================================================= */

.charging-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 16px 18px;
    background: #f8f5ec;
    border: 1px solid #eee6d3;
    border-radius: 14px;
}

.charging-note__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e9dfc8;
    color: #776744;
    font-size: 14px;
    font-weight: 700;
}

.charging-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6d706d;
}


/* =========================================================
   FORM FIELD IMPROVEMENTS
   ========================================================= */

#charging-calculator .form-input {
    width: 100%;
}

#charging-calculator .calculator-card {
    height: 100%;
}

#charging-calculator .calculator__body {
    align-items: stretch;
}


/* =========================================================
   CONTENT
   ========================================================= */

.content-section {
    margin-top: 90px;
}

.content-section + .content-section {
    margin-top: 60px;
}

.content h2 {
    margin-bottom: 22px;
}

.content h3 {
    margin-top: 34px;
    margin-bottom: 12px;
}

.content p {
    max-width: 820px;
    line-height: 1.75;
}

.content ul {
    max-width: 820px;
    margin: 20px 0;
    padding-left: 22px;
}

.content li {
    margin-bottom: 10px;
    line-height: 1.65;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq {
    margin-top: 70px;
}

.faq__item {
    border-bottom: 1px solid #e4e8e6;
}

.faq__question {
    position: relative;
    width: 100%;
    padding: 22px 45px 22px 0;
    background: none;
    border: 0;
    text-align: left;
    font-family: inherit;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    color: #202522;
    cursor: pointer;
}

.faq__question::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: #1c8b5a;
}

.faq__answer {
    display: none;
    padding: 0 45px 22px 0;
}

.faq__answer p {
    margin: 0;
    max-width: 820px;
    font-size: 15px;
    line-height: 1.7;
    color: #68706c;
}

.faq__item.is-open .faq__answer {
    display: block;
}

.faq__item.is-open .faq__question::after {
    content: "−";
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .charging-details {
        grid-template-columns: 1fr;
    }

    .charging-result .result__value {
        font-size: 36px;
    }

}


@media (max-width: 700px) {

    .charging-calculator {
        margin-top: 25px;
    }

    .charge-level-preview {
        padding: 18px;
    }

    .charge-level-preview__header {
        margin-bottom: 12px;
    }

    .charging-detail {
        padding: 16px;
    }

    .charging-detail__value {
        font-size: 18px;
    }

    .charging-result .result__value {
        font-size: 32px;
    }

    .charging-note {
        padding: 14px;
    }

    .content-section {
        margin-top: 60px;
    }

}


@media (max-width: 480px) {

    .charge-level-preview__labels {
        font-size: 12px;
    }

    .charging-details {
        gap: 10px;
    }

    .charging-detail {
        padding: 14px;
        border-radius: 12px;
    }

    .charging-detail__label {
        font-size: 12px;
    }

    .charging-detail__value {
        font-size: 17px;
    }

    .charging-result .result__value {
        font-size: 29px;
    }

    .faq__question {
        padding: 18px 38px 18px 0;
        font-size: 15px;
    }

}