section#contact-header {
    position: relative;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    text-align: center;
    background-color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('/images/backgrounds/bubble_light.webp');
    * {}
    > div {
        display: flex;
        justify-content: center;
        height: inherit;
        * {}
        h2 {
            color: #fff;
            filter: drop-shadow(2px 2px 1px #ffffff80);
            letter-spacing: 1px;
        }
    }
}
section#contact-header::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #ffffff26;
    transition: 3s all ease-in-out;
    backdrop-filter: blur(4px);
    filter: blur(16px);
}
section#contact-detail {
    * {}
    div:has(> .card){
        padding: 24px;
    }
    .card {
        height: 100%;
        border-radius: 20px;
        border-width: 0;
        box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
        transition: all ease-in-out 0.3s;
        cursor: pointer;
        * {}
        .card-body {
            display: flex;
            flex-direction: column;
            padding: 16px;
            * {}
            > div {}
            .title {
                margin-top: auto;
                color: #0096CC;
                * { margin: 0; }
                i {
                    aspect-ratio: 1/1;
                    margin-bottom: 8px;
                    height: 72px;
                    font-size: 48px;
                    padding-top: 12px;
                    border-radius: 50%;
                    background-color: #ADEDFF;
                    color: #2ecdff;
                    user-select: none;
                    transition: all ease-in-out 0.3s;
                }
                h4 {
                    margin-bottom: 8px;
                    transition: all ease-in-out 0.3s;
                }
            }
            .detail {
                margin-bottom: auto;
                font-size: 14px;
                * { margin: 0; }
                h6 {
                    margin-bottom: 8px;
                }
                p {
                    display: -webkit-box;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: initial;
                    -webkit-line-clamp: 3;
                    -webkit-box-orient: vertical;
                }
                a {
                    position: relative;
                    z-index: 2;
                    color: inherit;
                    color: #3cb1ff;
                }
            }
        }
    }
    .card.card-main {
        aspect-ratio: 1/1;
    }
    .card.card-sub {
        aspect-ratio: 2/1;
        * {}
        i {
            display: none;
        }
    }
}
@media only screen and (max-width: 767px) {
    section#contact-detail {
        padding-top: 32px;
        padding-bottom: 24px;
        * {}
        div:has(> .card){
            padding: 16px;
        }
        .card.card-main {
            aspect-ratio: 4/3;
        }
    }
}
section#contact-social {
    position: relative;
    min-height: calc(var(--avs-main-height) - 60vh);
    background: linear-gradient(90deg, var(--avs-color-01) 60%,white);
    z-index: 1;
    * {}
    h4 {
        background-image: linear-gradient(
            -225deg,
            #fff 0%,
            #ececec 25%,
            #fff 50%,
            #dbdbdb 75%,
            #fff 100%
        );
        background-size: auto auto;
        background-clip: border-box;
        background-size: 200% auto;
        background-clip: text;
        text-fill-color: transparent;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: textclip 10s linear infinite;
    }
    a {
        height: 36px;
        width: 36px;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        position: relative;
        border-radius: 4px;
    }
    a::after {
        content: '';
        position: absolute;
        top: -12px;
        left: -12px;
        height: calc(100% + 24px);
        width: calc(100% + 24px);
        background-color: white;
        border-radius: 16px;
        z-index: -1;
    }
    a::before {
        content: "";
        background: #ffffff75;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transition: all 0.8s;
        margin: 18px;
        padding: 0px;
    }
    a:active:before {
        margin: 0;
        padding: 18px;
        opacity: 1;
        transition: 0s;
    }
}
@keyframes textclip {
    to {
        background-position: 200% center;
    }
}
@keyframes shapeBubble1 {
    0% {
        transform:rotate(360deg);
    }
    100% {
        transform:rotate(0deg);
    }
}
@keyframes shapeBubble2 {
    0% {
        scale: 0.95;
    }
    25% {
        border-radius: 16px;
        scale: 1;
    }
    50% {
        border-radius: 50%;
        scale: 0.95;
    }
    75% {
        border-radius: 16px;
        scale: 1;
    }
    100% {
        scale: 0.95;
    }
}
section#contact-map {
    padding: 0 !important;
    z-index: 1;
    * {}
}
section#contact-form {
    z-index: 1;
    * {}
    ::-webkit-scrollbar-thumb {
        background-color: #3cb1ff !important;
    }
    div:has(>form){
        position: relative;
        border-top: 8px solid var(--avs-color-01);
        box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
        transition: all ease-in-out 0.3s;
        * {}
        div.row {
            padding-top: 8px;
        }
        label {
            font-weight: 700;
            font-size: 18px;
            letter-spacing: 1px;
        }
        input, textarea, select {
            border-radius: 0;
        }
        .select2-container--default .select2-selection--single {
            border-radius: 0;
            padding: .375rem .75rem;
            border: var(--bs-border-width) solid var(--bs-border-color);
            line-height: 1.5;
            height: 38px;
        }
        .select2-container--default .select2-selection--single .select2-selection__arrow {
            height: 38px;
        }
        .error {
            * {}
            :is(input, textarea, select, .select2-container--default .select2-selection--single){
                border-color: #ef5350 !important;
                color: #ef5350 !important;
            }
            span.txt-respond {
                color: #ef5350;
            }
        }
        .succuss :is(input, textarea, select, .select2-container--default .select2-selection--single){
            border-color: #388E3C !important;
            color: #388E3C !important;
        }
        span.txt-respond {
            display: block;
            width: 100%;
            padding-left: 8px;
            font-size: 12px;
            color: grey;
            letter-spacing: 1px;
        }
        span.txt-counting {
            font-size: 12px;
            color: grey;
            letter-spacing: 1px;
        }
        button {
            letter-spacing: 1px;
            text-transform: uppercase;
            box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
        }
    }
    #collapseSending{
        text-align: center;
        justify-content: center;
    }
}
.letter-image {
    width: 200px;
    height: 200px;
    cursor: default;
    position: relative;
}
.animated-mail {
    position: absolute;
    height: 150px;
    width: 200px;
    -webkit-transition: .4s;
    -moz-transition: .4s;
    transition: .4s;
    *{}
    .body {
        position: absolute;
        bottom: 0;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 0 100px 200px;
        border-color: transparent transparent #e9bb55 transparent;
        z-index: 2;
    }
    .top-fold {
        position: absolute;
        top: 50px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 50px 100px 0 100px;
        -webkit-transform-origin: 50% 0%;
        -webkit-transition: transform .4s .4s, z-index .2s .4s;
        -moz-transform-origin: 50% 0%;
        -moz-transition: transform .4s .4s, z-index .2s .4s;
        transform-origin: 50% 0%;
        transition: transform .4s .4s, z-index .2s .4s;
        border-color: #cf7f43 transparent transparent transparent;
        z-index: 2;
    }
    .back-fold {
        position: absolute;
        bottom: 0;
        width: 200px;
        height: 100px;
        background: #cf7f43;
        z-index: 0;
    }
    .left-fold {
        position: absolute;
        bottom: 0;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 50px 0 50px 100px;
        border-color: transparent transparent transparent #e19f49;
        z-index: 2;
    }
    .letter {
        left: 20px;
        bottom: 0px;
        position: absolute;
        width: 160px;
        height: 60px;
        background: white;
        z-index: 1;
        overflow: hidden;
        -webkit-transition: .4s .2s;
        -moz-transition: .4s .2s;
        transition: .4s .2s;
        *{}
        .letter-border {
            height: 10px;
            width: 100%;
            background: repeating-linear-gradient(-45deg, #cb5a5e, #cb5a5e 8px, transparent 8px, transparent 18px);
        }
        .letter-title {
            margin-top: 10px;
            margin-left: 5px;
            height: 10px;
            width: 40%;
            background: #cb5a5e;
        }
        .letter-context {
            margin-top: 10px;
            margin-left: 5px;
            height: 10px;
            width: 20%;
            background: #cb5a5e;
        }
        .letter-stamp {
            margin-top: 30px;
            margin-left: 120px;
            border-radius: 100%;
            height: 30px;
            width: 30px;
            background: #cb5a5e;
            opacity: 0.3;
        }
    }
}
.shadow {
    position: absolute;
    top: calc(100% + 32px);
    left: 50%;
    width: 250px;
    height: 30px;
    transition: .4s;
    transform: translateX(-50%);
    -webkit-transition: .4s;
    -webkit-transform: translateX(-50%);
    -moz-transition: .4s;
    -moz-transform: translateX(-50%);
    border-radius: 100%;
    background: radial-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.0), rgba(0,0,0,0.0));
    opacity: 0.5;
}
.letter-image:not(.sending) {
    *{}
    .animated-mail {
        bottom: 24px;
    }
    .animated-mail,
    .shadow {
        animation: scaleMail 2.4s ease-in-out infinite;
    }
}
.letter-image.sending {
    *{}
    .animated-mail {
        transform: translateY(50px);
        -webkit-transform: translateY(50px);
        -moz-transform: translateY(50px);
    }
    .animated-mail .top-fold {
        transition: transform .4s, z-index .2s;
        transform: rotateX(180deg);
        -webkit-transition: transform .4s, z-index .2s;
        -webkit-transform: rotateX(180deg);
        -moz-transition: transform .4s, z-index .2s;
        -moz-transform: rotateX(180deg);
        z-index: 0;
    }
    .animated-mail .letter {
        height: 180px;
        animation: transY 2s ease-in-out infinite;
        animation-delay: 0.5s;
    }
    .shadow {
        width: 225px;
    }
}
@keyframes transY {
    from { height: 180px; }
    50% { height: 160px; }
    to { height: 180px; }
}
@keyframes scaleMail {
    from { scale: 1; }
    50% { scale: 0.9; }
    to { scale: 1; }
}
