.calculator-extended-block{
    background: var(--wp--preset--color--tertiary);
    background: linear-gradient(90deg,rgba(8, 61, 91, 1) 0%, rgba(8, 61, 91, 1) 50%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 1) 100%); 
    color: var(--wp--preset--color--white);
    padding: 0;
    position: relative;
    .wp-block-heading{
        margin-bottom: 25px;
        color: var(--wp--preset--color--white);
    }
    h2{
        font-size: 32px;
          em{
            font-family: var(--wp--preset--font-family--playfair-display);
            font-weight: 500;
          }
    }
    &:before{
        content: "";
        position: absolute;
        width: calc(var(--wp--style--global--content-size) /2);
        height: 100%;
        top: 0;
        bottom:0;
        left: 50%;
        background: #95BFDE;
        border-radius: 0 100px 0 0;
        margin-left:-1px;
    }
    .acf-innerblocks-container{
        p:not(.top-label){
            font-family: var(--wp--preset--font-family--outfit);
            font-size: 16px;
            font-weight: 300;
        }
    }
    .calculator-note-after{
        p{
            font-size: 12px;
            color: var(--wp--preset--color--white);
            margin-top: 20px;
        }
    }
}

.calculator-extended-wrapper{
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-width: var(--wp--style--global--content-size);
}

.calculator-extended-block-inner, .calculator-extended-media{
    flex-grow: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    width:50%;
}



.calculator-extended-media{
    .calculator-extended-holder{
        border-radius :0 0 100px 0 ;
        overflow: hidden;
    }
}

.calculator-extended-block-inner{
    position: relative;
    padding:63px 70px 25px 35px;
}

.image-calculator-inner{
    p {
      margin:0;
      &.hero-calculator-ext-split--label{
        font-family: var(--wp--preset--font-family--outfit);
        font-size: 18px;
        font-weight: 500;
        color:var(--wp--preset--color--white);
        margin-bottom:25px;
        padding-top:15px;
      }
      &.hero-calculator-ext-split--value{
        color: #FFF !important;
        font-family: var(--wp--preset--font-family--outfit);
        font-size: 24px;
        font-weight: 500;
        letter-spacing: 0.48px;
        margin-bottom:13px;
        *{
            color: #FFF !important;
        }
      }
    }
    .hero-calculator-ext-split--form{
        width:100%;
        height:45px;
        padding-left: 20px;
        margin-top:20px;
        position: relative;
        &:before{
            content: '$';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            height: 100%;
            width: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--wp--preset--font-family--outfit);
            font-size: 24px;
            font-weight: 500;
            color: var(--wp--preset--color--light-blue);
        }
        &:after{
            content: '$';
            position: absolute;
            left: 40px;
            top: 50%;
            transform: translateY(-50%);
            height: 100%;
            width: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--wp--preset--font-family--outfit);
            font-size: 24px;
            font-weight: 500;
            color: var(--wp--preset--color--tertiary);
        }
        .form-inner{
            width:100%;
            height:45px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap:10px;
            margin-bottom: 20px;
            border-radius: 0 23px 23px 0;
            background: var(--wp--preset--color--white);
        }
        .hero-calculator-submit{
            background: var(--wp--preset--color--primary);
            color: var(--wp--preset--color--white);
            font-family: var(--wp--preset--font-family--outfit);
            font-size: 16px;
            font-weight: 500;
            padding: 0 45px;
            height:45px;
            line-height: 45px;
            border-radius: 0 23px 23px 0;
            margin-right:-1px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease-in-out;
            &:hover{
                text-decoration: underline;
            }
        }
        .hero-calculator-ext-split--input{
            max-width:calc(100% - 180px);
            height:45px;
            font-family: var(--wp--preset--font-family--outfit);
            font-size: 24px;
            font-weight: 500;
            color: var(--wp--preset--color--tertiary);
            border:none !important;
            outline:none !important;
            box-shadow: none !important;
            padding: 0 0 0 40px !important;
            background: transparent;
            &::placeholder{
                color: var(--wp--preset--color--tertiary);
                opacity: 0.8;
            }
        }
    }
    .hero-calculator-submit.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

    
    .calc-error-message {
        position: absolute;
        top: 100%;
        left: 40px;
        right: 160px;
        background: var(--wp--preset--color--orange);
        color:var(--wp--preset--color--tertiary);
        font-size: 14px;
        font-weight: 500;
        padding: 8px 12px;
        border: 1px solid var(--wp--preset--color--orange);
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
        z-index: 1000;
        margin-top: 2px;
        animation: fadeInUp 0.2s ease-out;
    }

    .calc-error-message::before {
        content: '';
        position: absolute;
        top: -5px;
        left: 20px;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 5px solid var(--wp--preset--color--orange);
    }
}


@media (max-width: 1240px){
    .calculator-extended-block{
        > div {
            padding: 0 !important;
        }
    }
}

@media (max-width: 1180px){
    .image-calculator-inner{
       .hero-calculator-module {
            .result-cell {
                .hero-calculator--result {
                    display: block;
                }
            }
        }
    }
    .calculator-extended-block{
        &:before{
            max-width: 50%;
        }
    }
}

@media (max-width: 970px){
    .calculator-extended-block{
        background: var(--wp--preset--color--tertiary);
        border-radius: 0;
        overflow: hidden;
        &:before{
            display: none;
        }
        &:after{
            display: none;
        }
    }
    .calculator-extended-wrapper {
        flex-direction: column;
    }
    .calculator-extended-block-inner, .calculator-extended-media {
        width: 100%;
    }
    .calculator-extended-block-inner{
        background-color: var(--wp--preset--color--tertiary);
    }
    .calculator-extended-media {
        .calculator-extended-holder {
            border-radius: 0 100px 0 0;
            overflow: hidden;
            background-color: var(--wp--preset--color--light-blue);
        }
    }
    
}

@media (max-width: 430px){
    .calculator-extended-block-inner{
        padding:40px 20px;
            .hero-calculator-ext-split--form {
                .hero-calculator-submit {
                    padding: 0 20px;
                }
                .hero-calculator-ext-split--input {
                    max-width: calc(100% - 148px);
                }
            }
    }
}