/* Calculator Form Styles */
.calculator_main {
    border-radius: 5px;
    background-color: white;
    padding: 20px
}

.calculator_main input {
    padding: 12px 20px !important;
    margin: 8px 0 !important;
    display: inline-block !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.calculator_main .readonly {
    background-color: #e9ecef;
    opacity: 1
}

.calculator_main .error {
    border-color: red;
    border-width: 2px
}

.calculator_main h2 {
    margin-bottom: 30px
}

.calculator_main select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    margin: 10px;
    background-color: white;
    border-radius: 20px;
    padding: 12px 20px;
    margin: 8px 0;
    background-image: url('https://www.ledlightingsupply.com/wp-content/uploads/2024/08/dropdown-arrow-svgrepo-com.png');
    background-repeat: no-repeat;
    background-position: right;
    background-size: 1em
}

.calculator_main hr {
    border: none;
    border-top: 3px solid #4CAF50;
    margin: 30px 0
}

.calculator_main .calculate_btn {
    width: 100%;
    background-color: white;
    color: #46B74B;
    border: 1px solid #46B74B;
    padding: 8px 20px;
    margin: 20px 0!important;
    border-radius: 8px;
    cursor: pointer;
}

.calculator_main .calculate_btn:hover {
    background-color: #46B74B;
    color: white;
}

.calculator_main .horizontal_container {
    display: flex;
    gap: 20px;
    width: 100%
}

.calculator_main h4 {
    margin-top: 10px;
    padding: 0
}

.calculator_main .vertical_container {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between
}

.calculator_main .unit_container input {
    width: 80%
}

.calculator_main .unit_container select {
    width: 36px;
    height: 36px;
    background-color: #CAEFD0;
    border: none;
    border-radius: 50%;
    color: #068C43;
    padding: 0;
    margin: 0;
    text-align-last: center
}

.calculator_main .unit_container {
    font-size: 20px;
    justify-content: space-between;
    align-items: center;
    padding: 0
}

.calculator_main #add {
    color: white;
    background-color: #4CAF50;
    border-radius: 50%;
    width: 30px;
    height: auto !important;
    font-size: 20px;
    align-self: center;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin: 0 15px;
    padding: 0;
    border: none
}

.calculator_main .space_between {
    gap: 0!important
}

.calculator_main .half {
    width: 50%
}

.calculator_main .fat_unit {
    width: 40%!important;
    text-align: center
}

/* Calculator-specific styles */
body.single-resource.tax-resource_category.term-calculators {
    background-color: transparent;
}

/* Calculator container styles */
.calculator-container {
    border: 1px solid #068C43;
    border-radius: 8px;
    overflow: hidden;
}

.calculator-container ul {
    padding: 0px;
}

/* Banner styles */
.banner-container {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #EAF5EF;
    padding: 32px;
    border-radius: 8px;
}

.banner-container .banner-text {
    flex: 1;
}

.banner-container h4 {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 15px;
}

.banner-container .button {
    margin-top: 15px;
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
}

.banner-container .image-container {
    flex-shrink: 0;
}

.banner-container .image-container img {
    width: 207px !important;
    max-width: none !important;
    height: auto;
    border-radius: 4px;
}

/* "How to Use" section styles */
.how-to-use-container {
    /* Clean container, no decorative elements */
}

.how-to-use-container h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Accordion styles for steps */
.how-to-use-step {
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.how-to-use-step h4 {
    margin: 0;
    padding: 10px 0;
    font-size: 1.1em;
    position: relative;
    cursor: pointer;
}

.how-to-use-step > h4:after {
    content: "+";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 1.2em;
}

.how-to-use-step.active > h4:after {
    content: "−";
    transform: translateY(-50%);
}

.how-to-use-instructions {
    display: none;
    padding: 0 0 10px 0;
}

.how-to-use-step.active .how-to-use-instructions {
    display: block;
}

.how-to-use-instructions p {
    margin: 0 0 10px;
    line-height: 1.6;
}

/* Responsive Styles for Calculator-specific elements */
@media (max-width: 768px) {
    .banner-container {
        flex-direction: column;
        text-align: center;
    }
}

/* --- User-requested and modernized accordion styles --- */

.calculator-columns .banner-text h4 {
    /* Removed font-size override to respect global typography */
}

.resources-breadcrumbs {
    margin-bottom: 0px !important;
}

.calculator-columns .how-to-use-container h2 {
    /* Removed font-size override to respect global typography */
}

.calculator-columns .how-to-use-step h4,
.steps-container .step-trigger h3 {
    /* Removed font-size override to respect global typography */
}

/* Accordion styles for new markup */
.steps-container .step-accordion {
    border-bottom: 1px solid #E5E5E5;
    margin-bottom: 0;
}

.steps-container input[type="checkbox"] {
    display: none;
}

.steps-container .step-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    cursor: pointer;
    position: relative;
    margin: 0;
    border-bottom: 1px solid #E5E5E5;
    padding: 18px 0;
}

.steps-container .step-trigger:after {
    content: "";
    width: 12px;
    height: 12px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    transition: transform .3s ease;
    margin-right: 12px;
}

.steps-container input[type="checkbox"]:checked + .step-trigger:after {
    transform: rotate(-135deg);
    transition: transform .3s ease;
}

.steps-container .step-content {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s cubic-bezier(.4,0,.2,1), padding .3s cubic-bezier(.4,0,.2,1);
    padding: 0;
}

.steps-container input[type="checkbox"]:checked + .step-trigger + .step-content {
    max-height: 2000px;
    padding: 16px 0;
}

/* Remove old accordion styles */
.how-to-use-step,
.how-to-use-step h4,
.how-to-use-step > h4:after,
.how-to-use-step.active > h4:after,
.how-to-use-instructions,
.how-to-use-step.active .how-to-use-instructions {
    all: unset;
}