.cost-calculator-section {
    padding: 6.25rem 0;
    border-top: clamp(1.25rem, 4vw, 3.125rem) solid #39859D;
    color: #fff;
    font-family: "Avenir", sans-serif;
}

.cost-calculator-section .wrapper {
    max-width: 840px;
    margin: 0 auto;
    background-color: #1B3964;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cost-calculator-section h2 ,#cf7-wrapper h2{
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #FFA640;
}

.cost-calculator-section label ,
#cf7-wrapper label{
    display: block;
    margin: 1.5rem 0 0.5rem;
    font-style: italic;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #fff;
}

.cost-calculator-section input,
.cost-calculator-section select {
    background-color: #fff !important;
    border: 1px solid #ddd;
    width: 100%;
    height: 3.5rem;
    border-radius: 8px;
    font-size: 1rem;
    padding: 0 1rem;
    margin-top: 0.25rem;
    color: #000;
    transition: all 0.3s ease-in-out;
    background-size: 25px 25px !important;
}

.cost-calculator-section input:focus,
.cost-calculator-section select:focus {
    outline: none;
    border-color: #FFA640;
    box-shadow: 0 0 0 3px rgba(255, 166, 64, 0.3);
}

.cost-calculator-section button {
    margin-top: 2.5rem;
    width: 100%;
    padding: 1rem;
    background: #D57C31;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    font-style: oblique;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.cost-calculator-section button:hover {
    background: #2E545D;
}

.cost-calculator-section .output {
    background: #103057;
    padding: 2rem;
    margin-top: 2.5rem;
    border-radius: 10px;
    color: #fff;
}

.cost-calculator-section .output h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #FFA640;
    letter-spacing: 0;
}

.cost-calculator-section .output p {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 400;
}

.cost-calculator-section .output p strong {
    font-weight: 600;
    margin-right: 10px;
}

.cost-calculator-section .output p em {
    font-weight: 600;
    font-size: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    display: inline-block;
    vertical-align: top;
    margin-top: 5px;
}

.cost-calculator-section #advanced {
    margin-top: 1rem;
}

.cost-calculator-section .output {
    display: none;
}
.cost-calculator-section .output.show {
    display: block !important;
}

.cost-calculator-section .toggle {
    margin-top: 1rem;
    color: #FFA640;
    cursor: pointer;
    text-align: right;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s ease-in-out;
}

.cost-calculator-section .toggle:hover {
    color: #FF8C00;
}

.cost-calculator-section input::placeholder {
    color: #888;
}
/* Modal Calculator Css Start */
/* Overlay background */
body.cf7-form-visible {
    overflow: hidden;
}
#cf7-wrapper {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show modal when .show is added */
#cf7-wrapper.show {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

/* Modal box */
#cf7-wrapper .modal-content {
    position: relative;
    background: #1B3964;
    padding: 30px;
    border-radius: 10px;
    max-width: 840px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
/* Close button */
#cf7-wrapper .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    background: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 1.6;
}

#cf7-wrapper .close-btn:hover {
    color: #000;
}
/* Submit button */
#cf7-wrapper input[type="submit"] {
    margin-top: 15px;
    width: 150px;
    padding: 1rem;
    background: #D57C31;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    font-style: oblique;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}
#cf7-wrapper input[type="submit"]:hover {
    background: #39859D;
}
#cf7-wrapper .button-block {
    text-align: center;
    position: relative;
}
#cf7-wrapper .button-block span.wpcf7-spinner {
    position: absolute;
    top: 3.5rem;
    right: 0;
    left: auto;
}
#cf7-wrapper .wpcf7-not-valid-tip {
    color: #f26b6b;
    line-height: 1.6;
    margin-top: 5px;
}
#cf7-wrapper .wpcf7-response-output {
    color: #fff;
}
/* Modal Calculator Css End */

/* Responsive Enhancements */
@media (max-width: 1200px) {
    .cost-calculator-section {
        padding: 3rem 0;
    }
}

@media (max-width: 767px) {
    .cost-calculator-section h2 ,#cf7-wrapper h2{
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .cost-calculator-section label ,#cf7-wrapper label{
        font-size: 1rem;
    }

    .cost-calculator-section input,
    .cost-calculator-section select ,
    #cf7-wrapper .wpcf7-form input:not([type="button"]):not([type="submit"]):not([type="reset"]), 
    #cf7-wrapper .wpcf7-form select{
        height: 3rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .cost-calculator-section button {
        font-size: 1.2rem;
        padding: 0.8rem;
    }

    .cost-calculator-section .output {
        padding: 1.25rem;
    }

    .cost-calculator-section .output h3 {
        font-size: 1.5rem;
    }
    .cost-calculator-section .wrapper {
        padding: 2rem 1.5rem;
    }
    .cost-calculator-section .output p, .cost-calculator-section .output p strong {
        font-size: 14px;
    }
    .cost-calculator-section .output p {
        display: flex;
        flex-direction: column;
    }
    .cost-calculator-section .output p em {
        font-size: 16px;
    }
    .cost-calculator-section .output p {
        font-size: 14px !important;
    }
    #cf7-wrapper .modal-content {
        max-width: 90%;
    }
    #cf7-wrapper input[type="submit"] {
        font-size: 1.2rem;
        padding: 10px;
    }
    #cf7-wrapper .close-btn {
        width: 25px;
        height: 25px;
        line-height: 1.4;
        font-size: 20px;
    }
}