/* 
  ============================================
  CALCULATOR STYLES
  ============================================
  This section contains the CSS for the calculator component. The styles are broken down into 
  different sections to manage layout, design, and user interaction. 

  1. .calculator-container: The main wrapper of the calculator, giving it padding and centering.
  2. .calculator-section form#groutCalculator: Targets the specific form within the calculator section, setting the width.
  3. .output-container: Contains the output details, styled with a background color, padding, and a border radius. It is designed to be flexible and responsive.
  4. .output-details: Displays the output information in a vertical layout with right padding and dotted borders for separation.
  5. .product-info: Displays the product-related information within the output container with specific padding and text alignment.
  6. .product-image: Ensures product images are centered, with a defined width and spacing.
  7. .calculator-section h3, .product-info h4: Ensures proper text styling (font size, margins, borders) for headers within the calculator.
  8. .btn-light, .btn-reset, .btn-submit: Button styling for various types of actions. The light button has a hover effect, while the reset and submit buttons have distinct colors and rounded borders.
  9. Form inputs and labels: Provides styling for form elements (input fields, labels), ensuring consistency in appearance.

  Overall, this CSS file is structured to create a clean and visually appealing calculator interface, with a clear separation of information and easy-to-navigate buttons. The responsive nature ensures it works well on different screen sizes.
*/

.calculator-container {
    margin: 40px auto;
    background: #F4F4F4;
    padding: 30px;

}

.calculator-section form#groutCalculator {
    width: 70%;
}

.calculator-section .output-container {
    max-width: 100%;
    background: #004a99;
    padding: 30px;
    border-radius: 20px;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
}

.calculator-section #output {
    display: none;
}

.calculator-section .output-details {
    flex: 5%;
    padding-right: 20px;
    border-right: 2px dashed white;
    padding-right: 30px;
}

.calculator-section .output-details p {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    flex-direction: column;
    align-items: center;
}

.calculator-section .product-info {
    flex: 30%;
    padding-left: 30px;
    text-align: left;
    font-size: 14px;
}

.calculator-section .product-info h4 {
    border-bottom: 1px solid white;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 18px;
}

.calculator-section .product-image img {
    max-width: 40%;
    display: block;
    margin: 0 auto 10px;
}

.calculator-section h3.fw-bold.text-center {
    font-size: 20px;
}

.calculator-section .product-image {
    margin: 0px;
    flex: 25%;
}

.calculator-section.calculator-container h2 {
    color: #034E92 !important;
}

.calculator-section form label,
.calculator-section h5 {
    color: #000 !important;
}

.calculator-section form input,
.calculator-section form span.input-group-text {
    border-radius: 0px;
    overflow: hidden;
}

.calculator-section form h5 {
    margin-top: 20px;
}

.calculator-section .note {
    max-width: 900px;
    line-height: 1.8em;
}

.calculator-section .output-container .note {
    flex: 100%;
    margin-top: 20px;
    max-width: 100%;
}

.calculator-section .output-container .note h5 {
    color: #fff !important;
}

.calculator-section .note ul li {
    font-weight: 300;
}

.calculator-section .product-info p strong,
.calculator-section .output-details p strong {
    font-weight: 300;
    font-size: 14px;
}

.calculator-section .btn-light {
    border: 1px solid white;
    color: white;
    background: transparent;
    margin-right: 10px;
}

.calculator-section .btn-light:hover {
    background: white;
    color: #034E92;
}

.calculator-section .btn-reset {
    border: 1px solid #034E92;
    color: #034E92;
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 10px 20px;
}

.calculator-section .btn-submit {
    background-color: #034E92;
    color: white;
    border-radius: 20px;
    padding: 10px 20px;
}

.calculator-section #gravityFormModal .modal-header {
    background: #0a4784;
    color: #fff !important;

}

.calculator-section #gravityFormModal .modal-header h2 {
    color: #fff !important;

    font-size: 18px !important;

}

.calculator-section #gravityFormModal input#gform_submit_button_46 {
    background-color: #034ea2;
    border-color: #034ea2;
    color: #fff;
    box-shadow: none;
    padding: 5px 20px;
    border-radius: 20px;
}

.calculator-section .gform_wrapper input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
}

/* Responsive Styles */
/* Media query for iPads, iPad Mini, and iPad Pro */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .calculator-container {
        padding: 25px;
        margin: 30px auto;
    }

    .calculator-section form#groutCalculator {
        width: 85%;
    }

    .calculator-section .output-container {
        flex-direction: column;
        padding: 25px;
        text-align: center;
    }

    .calculator-section .output-details {
        flex: 100%;
        border-right: none;
        padding-right: 0;
        margin-bottom: 15px;
    }

    .calculator-section .product-info {
        flex: 100%;
        padding-left: 0;
    }

    .calculator-section .product-image img {
        max-width: 50%;
    }

    .calculator-section .btn-light,
    .calculator-section .btn-reset,
    .calculator-section .btn-submit {
        width: 80%;
        margin: 5px auto;
        padding: 12px;
        text-align: center;
    }

    .calculator-section .output-details p {
        flex: 50%;
        font-size: 16px;
    }

    .calculator-section .output-details {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: center;
        justify-content: space-evenly;
        align-items: center;
    }

    .btn_wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .calculator-section .output-container .note {
        display: block !important;
        text-align: left;
        max-width: 100%;
    }

    .calculator-section h3.fw-bold.text-center {
        font-size: 22px;
    }

    .calculator-section .product-info h4 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .calculator-container {
        padding: 20px;
        margin: 20px auto;
    }

    .calculator-section form#groutCalculator {
        width: 100%;
    }

    .calculator-section .output-container {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .calculator-section .output-details {
        flex: 100%;
        border-right: none;
        padding-right: 0;
        margin-bottom: 15px;
    }

    .calculator-section .product-info {
        flex: 100%;
        padding-left: 0;
    }

    .calculator-section .product-image img {
        max-width: 80%;
    }

    .calculator-section .btn-light,
    .calculator-section .btn-reset,
    .calculator-section .btn-submit {
        width: 100%;
        margin: 5px 0;
        padding: 12px;
    }

    .calculator-section .output-details p {
        flex: 33.33%;
    }

    .calculator-section .output-details {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: center;
        justify-content: flex-start;
        align-items: center;
    }

    .btn_wrapper {
        display: flex;
        flex-direction: column;
    }

    .calculator-section .output-container .note {

        display: block !important;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .calculator-container {
        padding: 15px;
    }

    .calculator-section h3.fw-bold.text-center {
        font-size: 18px;
    }

    .calculator-section .output-details p {
        font-size: 14px;
    }

    .calculator-section .product-info h4 {
        font-size: 16px;
    }

    .calculator-section .product-image {
        margin: 20px auto;
    }

    .calculator-section .output-container .note {

        display: block !important;
        text-align: left;
    }

    .btn_wrapper {
        display: flex;
        flex-direction: column;
    }
}