#form-display-box {
    position: fixed;
    display: none;
    inset: 0;
    z-index: 99998;
    perspective: 7000px;
    transition: .5s;
    -webkit-transition: .5s;
    -moz-transition: .5s;
    -ms-transition: .5s;
    -o-transition: .5s;
}

#form-display-box.open {
    display: block;
    /* background-color: rgba(0, 0, 0, 0.5); */
}

#form-display-box .back-drop {
    inset: 0;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.form-display-box {
    width: 1000px;
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transform-style: preserve-3d;
    transform-origin: center;
    transition: 1s;
    -webkit-transition: .8s;
    -moz-transition: 1s;
    -ms-transition: 1s;
    -o-transition: 1s;
    transform: translateX(-50%) translateY(50%) rotateY(270deg) scale(.5);
    -webkit-transform: translateX(-50%) translateY(50%) rotateY(270deg) scale(.5);
    -moz-transform: translateX(-50%) translateY(50%) rotateY(270deg) scale(.5);
    -ms-transform: translateX(-50%) translateY(50%) rotateY(270deg) scale(.5);
    -o-transform: translateX(-50%) translateY(50%) rotateY(270deg) scale(.5);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.form-display-box.open {
    transform: translateX(-50%) translateY(-50%) rotateY(0deg) scale(1);
    -webkit-transform: translateX(-50%) translateY(-50%) rotateY(0deg) scale(1);
    -moz-transform: translateX(-50%) translateY(-50%) rotateY(0deg) scale(1);
    -ms-transform: translateX(-50%) translateY(-50%) rotateY(0deg) scale(1);
    -o-transform: translateX(-50%) translateY(-50%) rotateY(0deg) scale(1);
}

.banner-display-section {
    width: 100%;
    height: 1005;
    background-image: url("./narasinhainteriordecorators.jpg");
    background-size: cover;
    background-position: center;
}

.button-click {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 50px;
    height: 60px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    background-color: red;
    cursor: pointer;
    z-index: 99999;
}

.form-display-section {

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 5px;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    width: 100%;
    height: 100%;
    margin-top: 50px;

}

.form-display-section .logocentered {
    margin-block: 10px;
    margin-inline: auto;
    display: grid;
    place-items: center;
    color: white;
}

.form-display-section h6 {
    text-align: center;
    color: black;
    margin-bottom: 0;
}

.form-display-section span {
    text-align: center;
}

.form-display-section :is(input[name="cfgen-element-4-6"]:focus,
    input[name="cfgen-element-4-6"]:active,
    input[name="cfgen-element-4-6"],
    input[name="cfgen-element-4-8"]:focus,
    input[name="cfgen-element-4-8"]:active,
    input[name="cfgen-element-4-8"],
    input[name="cfgen-element-4-3"]:focus,
    input[name="cfgen-element-4-3"]:active,
    input[name="cfgen-element-4-3"],
    input[name="cfgen-element-4-7"]:focus,
    input[name="cfgen-element-4-7"]:active,
    input[name="cfgen-element-4-7"]) {
    width: 100%;
    border: none;
    outline: none;
    border-width: 3px;
    border-color: transparent transparent rgba(0, 0, 0, 0.5) transparent;
    border-style: solid;
    background: none;
    box-shadow: none;
}

.form-display-section input[name="cfgen-element-4-3"] {
    grid-column: 1/3;
}

.form-display-section input[name="cfgen-element-4-3"]:valid {
    border-color: transparent transparent green transparent;
}

.form-display-section input[name="cfgen-element-4-3"]:not(:focus):not(:valid) {
    border-color: transparent transparent red transparent;
    animation: shake .6s forwards linear;
    -webkit-animation: shake .6s forwards linear;
}

.form-display-section input[name="cfgen-element-4-3"]:placeholder-shown {
    border-color: transparent transparent rgba(0, 0, 0, 0.5) transparent !important;
    animation: none !important;
    -webkit-animation: none !important;
}

.form-display-section input[name="cfgen-element-4-6"]:valid {
    border-color: transparent transparent green transparent;
}

.form-display-section input[name="cfgen-element-4-6"]:not(:focus):not(:valid) {
    border-color: transparent transparent red transparent;
    animation: shake .6s forwards linear;
    -webkit-animation: shake .6s forwards linear;
}

.form-display-section input[name="cfgen-element-4-6"]:placeholder-shown {
    border-color: transparent transparent rgba(0, 0, 0, 0.5) transparent !important;
    animation: none !important;
    -webkit-animation: none;
}

.form-display-section input[name="cfgen-element-4-8"]:valid {
    border-color: transparent transparent green transparent;
}

.form-display-section input[name="cfgen-element-4-8"]:not(:focus):not(:valid) {
    border-color: transparent transparent red transparent;
    animation: shake .6s forwards linear;
    -webkit-animation: shake .6s forwards linear;
}

.form-display-section input[name="cfgen-element-4-8"]:placeholder-shown {
    border-color: transparent transparent rgba(0, 0, 0, 0.5) transparent !important;
    animation: none !important;
    -webkit-animation: none;
}

.form-display-section input[value="Send"] {
    border-color: red;
    background-color: red;
    color: whitesmoke;
    grid-column: 1/3;
    width: 100%;
    padding-inline: 20px;
    font-size: 20px;
}

.form-display-section textarea {
    grid-column: 1/3;
    width: 100%;
    border: none;
    outline: none;
    box-shadow: inset 1px 1px 5px rgba(0, 0, 0, 0.1);
    padding-top: 5px;
    padding-left: 5px;
}

.form-display-section span {
    grid-column: 1/3;
}

#cfgen-element-4-7-set-c {
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;
}

.cfgen-captcha-c {
    margin-left: 0 !important;
}

.form-sec {
    margin-inline: 5px;
}

.cfgen-e-c {
    margin-block-start: 5px;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(-2%);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(2%);
    }
}

@media(max-width: 600px) {
    #popup-form {
        width: 90%;
    }

    .cfgen-e-c {
        margin-block: 10px;
    }

    .form-display-box {
        grid-template-columns: 1fr;
        width: 90%;
    }

    .banner-display-section {
        display: none;
    }

    .form-display-section input[name="cfgen-element-4-6"] {
        grid-column: 1/3;
    }

    .form-display-section input[name="cfgen-element-4-8"] {
        grid-column: 1/3;
    }
}