{% require_css %}
<style>
  .calculator.modern-calculator .intro-text h2 {
    color: ;
  }
  .calculator.modern-calculator .intro-text p {
    color: ;
  }
  .calculator.modern-calculator .calculator-section h3 {
    color: ;
    border-bottom-color: ;
  }
  .calculator.modern-calculator .form-row label,
  .calculator.modern-calculator .result-row label {
    color: ;
  }
  .calculator.modern-calculator #calculatedBookkeepingLinesDisplay {
    color: ;
  }
  .calculator.modern-calculator .form-row input[type="number"],
  .calculator.modern-calculator .form-row input[type="range"] {
    border-color: ;
  }
  .calculator.modern-calculator input[readonly] {
    background-color: ;
  }
  .calculator.modern-calculator .switch input:checked + .slider {
    background-color: ;
  }
  .calculator.modern-calculator .switch input:focus + .slider {
    box-shadow: 0 0 1px ;
  }
  .calculator.modern-calculator .slider {
    background-color: ;
  }
  .calculator.modern-calculator .results-summary {
    background-color: ;
  }
  .calculator.modern-calculator .result-item span:first-child {
    color: ;
  }
  .calculator.modern-calculator .result-item span:last-child {
    color: ;
  }
  .calculator.modern-calculator .result-item.total span:last-child {
    color: ;
  }
  .calculator.modern-calculator .result-item.monthly span:last-child {
    color: ;
  }
  .calculator.modern-calculator .result-item .price-value-group {
    color: ; /* Ensure this group also gets the color */
  }
  .calculator.modern-calculator .result-item .price-value-group .price-suffix {
    margin-left: 5px; /* Add some space before the suffix */
    color: ; /* Ensure suffix also gets the color */
  }
  .calculator.modern-calculator .results-summary hr {
    background-color: ;
  }

  .horizontal-steps .steps-flex {
    display: flex;
    gap: 32px;
  }

  .horizontal-steps .calculator-section {
    flex: 1 1 0;
    min-width: 260px;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
  }

  @media (max-width: 900px) {
    .horizontal-steps .steps-flex {
        flex-direction: column;
        gap: 0;
    }
    .horizontal-steps .calculator-section {
        margin-bottom: 30px;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 20px;
    }
  }
</style>
{% end_require_css %}

.price-calculator-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.intro-column {
    flex: 1 1 45%; /* Grow, shrink, basis */
    min-width: 300px;
    padding-right: 20px; /* Add some space between columns */
}

.calculator-column {
    flex: 1 1 50%; /* Grow, shrink, basis */
    min-width: 300px;
}

.calculator.modern-calculator {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    max-width: 700px;
    width: 100%;
    margin: 20px 0;
}

.intro-text {
    text-align: left;
    margin-bottom: 30px;
    max-width: 700px; /* Match calculator width */
    width: 100%;
    margin: 20px 0;
}

.intro-text h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.intro-text p {
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
}

.calculator-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.calculator-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.calculator-section h3 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 1.4em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    display: inline-block;
}

.toggles-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px; /* Provides spacing between items */
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toggle-row {
    flex-direction: row; 
    align-items: center; 
    flex: 1; 
    min-width: 200px; 
    justify-content: space-between;
}

.form-row label {
    flex-basis: 250px;
    margin-right: 15px;
    color: #333;
    font-weight: 500;
}

.toggle-row label:first-child {
    flex-basis: auto;
    margin-right: 15px;
    margin-bottom: 0;
}

.form-row input[type="number"],
.form-row input[type="range"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

.form-row input[type="number"] {
    max-width: 100px;
    margin-left: 10px;
}

.form-row input[type="range"] {
    flex-basis: calc(100% - 265px - 110px);
    padding: 0;
}

.toggle-row {
    flex-direction: row;
    align-items: center;
}

.toggle-row label:first-child {
    margin-bottom: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    width: 61px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.result-row {
    justify-content: flex-start;
    align-items: center;
    margin-top: 15px;
}

.result-row label {
    flex-basis: auto;
    margin-right: 10px;
}

#calculatedBookkeepingLinesDisplay {
    color: #2c3e50;
    font-weight: bold;
}

.results-summary {
    background-color: #e9f5ff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.result-item span:first-child {
    color: #555;
}

.result-item span:last-child {
    color: #2c3e50;
}

.result-item .price-value-group {
    display: inline-flex; /* Or inline-block, to keep children together */
    align-items: baseline; /* Aligns items nicely if font sizes differ */
    color: #2c3e50; /* Default color, can be overridden by HubL */
}

.result-item .price-value-group .price-suffix {
    margin-left: 5px;
    font-size: 0.9em; /* Slightly smaller suffix */
    color: #555; /* Default suffix color, can be overridden by HubL */
}

.results-summary hr {
    background-color: #cce7ff;
    margin: 15px 0;
}


input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

  
  .custom-padding{
  padding: 4rem 0;
  }
  @media (max-width: 767px){
    .custom-padding{
    padding: 4rem 3rem;
    }
  }

@media (max-width: 740px) {
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row label {
        flex-basis: auto;
        margin-bottom: 8px;
        width: 100%;
    }

    .form-row input[type="range"],
    .form-row input[type="number"] {
        width: 100%;
        margin-left: 0;
    }


    .form-row input[type="number"] {
        margin-top: 5px;
        max-width: none;
    }

    .toggle-row {
        flex-direction: row;
        align-items: center;
    }

    .toggle-row label:first-child {
        margin-bottom: 0;
    }

    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-item span:last-child,
    .result-item .price-value-group {
        margin-top: 5px;
    }
}
