@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=Leckerli+One&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&family=Send+Flowers&display=swap');

:root{
    --background-main: #faf9f6;
    --background-sec: #F0F2F5;
    --background-third: #F7F6F3;
    --accent-black: #121212;
    --accent-gold: #CCac00;
    --box-shadow: 0px 8px 15px rgba(0.1, 0.1, 0.1, 0.1);

    --text-regular1: Roboto;
    --text-regular2: Open Sans;
    --text-bold: Cal Sans;
    --text-stylish: Leckerli One;
}

main{
    .windows-container{
        .delivery-info-form-container{
            display: flex;
            align-items: center;
            flex-direction: column;
            margin-top: 8%;
            width: 100%;
            height: 90%;

            .close-btn{
                position: absolute;
                top: 2%;
                right: 1%;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 15px 15px;
                background: rgba(87, 94, 85, .4);
                backdrop-filter: blur(10px);
                color: var(--background-third);
                box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
                border: 1px solid rgba(255, 255, 255, .15);
                border-radius: 100%;
                cursor: pointer;
                transition: all .4s ease-in-out;
                svg{
                    fill:  var(--background-third);
                    transform: rotate(45deg);
                }
                &:hover{
                    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.35),
                    -0px -.1px 2px rgba(0, 0, 0, 0.15);
                }
            }

            p{
                text-align: center;
                &:nth-child(2){
                    font-size: 2.5rem;
                    font-weight: bold;
                }
                &:nth-child(3){
                    font-size: 1rem;
                    font-weight: bold;
                }
            }

            .form-container{
                margin-top: 50px;
                width: 60%;
                height: 300px;
                background: rgba(87, 94, 85, .2);
                backdrop-filter: blur(10px);
                border-radius: 20px;

                input[type=radio]{
                    margin-right: 5px;
                    cursor: pointer;
                    accent-color: var(--accent-black);
                }

                .form-controls-container{
                    display: flex;
                    align-items: center;
                    padding: 15px;
                    height: 10%;
                    border: 1px solid var(--background-third);
                    border-top-left-radius: inherit;
                    border-top-right-radius: inherit;
                    .left, .right{
                        height: 100%;
                        width: 50%;
                        font-size: 1.1rem;
                    }
                }

                .forms{
                    padding: 15px;
                    input[type=text]{
                        padding: 0 15px;
                        min-height: 40px;
                        width: 200px;
                        color: var(--background-main);
                        font-family: var(--text-regular1);
                        font-size: .9rem;
                        background: rgba(0, 0, 0, 0.2);
                        border-radius: 10px;
                        border: none;
                        &::placeholder{
                            color: var(--background-main);
                        }
                        &:focus{
                            border: .09px solid var(--background-main);
                            outline: none;
                        }
                        &:-webkit-autofill {
                            -webkit-text-fill-color: var(--background-third) !important;
                            transition: background-color 5000s ease-in-out 0s;
                        }
                    }
                    .left-form, .right-form{
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        width: 100%;
                        span{
                            color: var(--background-third);
                            margin-bottom: 10px;
                            font-size: .9rem;
                        }
                    }
                    .left-form{
                        display: none;
                        gap: 8px;
                    }
                    .right-form{
                        span{
                            margin-bottom: 10px;
                        }
                        input[type=text]{
                            margin-bottom: 5px;
                        }
                        .outer-container{
                            display: flex;
                            align-items: center;
                            gap: 5px;
                            width: 58%;
                            .container{
                                width: 100%;
                                font-size: 1rem;
                                cursor: pointer;
                            }
                        }
                    }
                }
            }

            .js-save-btn{
                margin-top: 50px;
                width: 200px;
                height: 40px;
                color: var(--accent-black);
                white-space: nowrap;
                font-size: 1rem;
                font-weight: bold;
                background: var(--background-third);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                border-radius: 16px;
                border: none;
                transition: all .4s ease-in-out;
                cursor: pointer;
                &:hover{
                    color: var(--background-main);
                    background: rgba(255, 255, 255, 0.35);
                    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.15),
                    -0px -.1px 3px rgba(0, 0, 0, 0.15);
                }
            }
        }
    }
}

@media(max-width: 900px){
    main{
        .windows-container{
            .delivery-info-form-container{
                margin-top: 12%;
                .close-btn{
                    top: 1%;
                    right: 2%;
                }
                .form-container{
                    margin-top: 100px;
                    width: 95%;
                    .form-controls-container{
                        height: 15%;
                    }
                    .forms{
                        .right-form{
                            .outer-container{
                                width: 100%;
                            }
                        }
                    }
                }
                .js-save-btn{
                    margin-top: 100px;
                }
            }
        }
    }
}
