.my-calculator-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2%;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Left column - Form container */
.form-container {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Right column - Result container */
.result-container {
    flex: 1;
    padding: 30px;
    border-radius: 8px;
    background: #FFFFFF;
    border-left: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border: 1px solid #ccc; /* Adjust color as needed */
}

.form-container form#my-calculator-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.form-container form#my-calculator-form .form-field {
    width: 100%;
    margin-bottom: 20px;
}

.form-container form#my-calculator-form .form-field label {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1rem;
}

/* Select fields */
.select2-container .select2-selection--single {
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-left: 16px;
    font-size: 1rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 8px;
}

/* Input fields */
.form-container form#my-calculator-form .form-field input[type="number"] {
    width: 100%;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* Button styling */
.form-container form#my-calculator-form .form-field button {
    background-color: #0056b3;
    color: #fff;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 4px;
    border: none;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-container form#my-calculator-form .form-field button:hover {
    background-color: #003d82;
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .my-calculator-container {
        flex-direction: column;
    }

    .form-container,
    .result-container {
        flex-basis: auto;
        width: 100%;
        margin-bottom: 1rem;
        border-left: none;
    }
}




.result-container .price-range-container {
    align-self: stretch; /* Overrides flex alignment to use the full width */
    justify-self: stretch; /* If you're using grid inside result-container */
    width: 100%; /* Ensure it spans the full width of its container */
      display: flex; /* Allow for flexbox layout inside */
    flex-direction: column; 
    align-items: center; 
    
}

.price-line-container { /* New container - optional  */
    position: relative; 
    width: 100%; 
    height: 100px; /* Adjust as needed */
}


/* Adjusting for price range visualization with a more modern design */
.price-range-container {
    position: relative;
    width: 100%;
    height: 80px; /* Adjust height as needed */
    margin-top: 40px;
    padding-top: 20px; /* Space for 'Min', 'Average', 'Max' labels */
    background-image: linear-gradient(
        to right, 
        rgba(255, 77, 77, 0.2), /* Red with transparency */
        rgba(255, 255, 0, 0.2), /* Yellow with transparency */
        rgba(40, 167, 69, 0.2)  /* Green with transparency */
    );
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
    justify-content: center; /* Centers children horizontally */
    align-items: center; /* Centers children vertically */
    position: relative; /* For absolute child positioning */
}

.price-line {
    position: absolute;
    top: 50%;
    left: 0; 
    transform: translateY(-50%); /* More reliable centering technique */
    width: 100%;
    height: 4px;
    background-image: linear-gradient(
        to right, 
        #ff4d4d, /* Red */
        #ffff00, /* Yellow */
        #28a745  /* Green */
    );
    border-radius: 2px;
    position: absolute;
    top: 50%; /* Place in the middle of the container */
}

.price-label {
    color: #333;
    font-weight: bold;
    text-align: center;
    padding: 0;
    margin: 0;
        position: absolute;
    bottom: -30px; /* Place below the line */
}

.min-label {
    left: 0;
    bottom: 100%; /* Position below the container */
}

/* Classes for JavaScript positioning control */
.price-point.min-point {
    left: 0%;
}

.price-point.middle-point {
    left: 50%;
}

.price-point.max-point {
    left: 100%;
}


.average-label {
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
}

.max-label {
    right: 0;
    bottom: 100%;
}

/* Use pseudo-elements to draw vertical lines from the label to the middle of the price line */
.price-label::after {
    content: '';
    position: absolute;
    left: 50%;
    height: calc(50% - 2px); /* Height from label to the middle of the price line */
    width: 1px; /* Line width */
    background-color: #333;
    bottom: 0;
}

/* Correct the transforms for the min and max labels */
.min-label::after {
    transform: translateX(-50%);
    left: 0;
}

.max-label::after {
    transform: translateX(50%);
    left: 100%;
}


.price-point {
    position: absolute;
    top: 100%;
    background-color: #fff;
    border: 2px solid #007bff;
    padding: 8px 12px;
    border-radius: 20px;
    white-space: nowrap;
    transform: translate(-50%, 0%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    color: #333;
    font-size: 0.9em;
    bottom: -40px; /* Position below the line */
      transform: translateX(-50%);
}

.price-point.middle-point {
    transform: translate(-50%, 0%);
}

.price-point:first-child {
    transform: translate(-50%, 0%);
    left: 0;
}

.price-point:last-child {
    transform: translate(-50%, 0%);
    left: 100%;
}

.price-point, .price-line, .price-label {
    transition: all 0.3s ease;
}


#type.js-example-basic-single {
    font-size: 120%; /* Increase the font size by 20% */
    padding: 12px; /* Increase padding for larger appearance */
}

/* Overall form container styling */
.form-container {
    background: #FFFFFF; /* Background color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border-radius: 8px; /* Rounded corners */
    padding: 20px;
    margin-bottom: 20px; /* Space at the bottom if stacked on mobile */
}

/* Label styling */
.form-container form#my-calculator-form .form-field label {
    display: block; /* Make sure it's a block to have margin */
    margin-bottom: 8px; /* Space below label */
    font-size: 16px; /* Larger font size */
    color: #333; /* Dark grey color for readability */
    font-weight: bold; /* Make it bold */
}

/* Input and Select field styling */
.form-container form#my-calculator-form .form-field input[type="number"],
.form-container form#my-calculator-form .form-field select {
    width: 100%;
    padding: 10px 15px; /* Comfortable padding */
    margin-bottom: 16px; /* Space below fields */
    border: 1px solid #ccc; /* Subtle border */
    border-radius: 4px; /* Rounded corners */
    font-size: 16px; /* Matching the label font size */
    box-sizing: border-box; /* Border and padding inside width */
}

/* Button styling */
.form-container form#my-calculator-form .form-field button {
    width: 100%; /* Full-width button */
    padding: 10px 0; /* Padding top and bottom */
    font-size: 18px; /* Slightly larger font size */
    border-radius: 4px; /* Match the input border-radius */
    border: none; /* No border */
    background-color: #0056b3; /* Primary color */
    color: white; /* Text color */
    margin-top: 10px; /* Space above button */
    cursor: pointer; /* Cursor for click */
}

/* Button hover effect */
.form-container form#my-calculator-form .form-field button:hover {
    background-color: #003d82; /* Darker shade on hover */
}

/* Adjust the checkbox label */
#furniture-checkbox-container label {
    margin-left: 5px; /* Space after checkbox */
    font-weight: normal; /* Match other labels or as desired */
}

/* Adjustments for select2 to match the design */
.select2-container .select2-selection--single {
    height: 40px; /* Match input height */
    border: 1px solid #ccc; /* Consistent border */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px; /* Center the text */
    padding-left: 16px; /* Match input padding */
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px; /* Full height of the select */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .form-container {
        margin-bottom: 1rem;
    }
}

