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 {
    padding: 48px 0 32px;
    div:has(> .card) {
        padding: 16px;
    }
    .card {
        height: 100%;
        border-radius: 20px;
        border: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        cursor: pointer;
        .card-body {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 32px 20px;
            .title {
                color: var(--avs-color-04, #0b500e);
                * { margin: 0; }
                i {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    width: 72px;
                    height: 72px;
                    font-size: 32px;
                    border-radius: 50%;
                    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
                    color: var(--avs-color-02, #008000);
                    margin-bottom: 16px;
                    user-select: none;
                    transition: transform 0.25s ease;
                }
                h4 {
                    font-size: 1.05rem;
                    font-weight: 700;
                    margin-bottom: 16px;
                    color: var(--avs-color-04, #0b500e);
                    transition: color 0.25s ease;
                }
            }
            .detail {
                font-size: 14px;
                color: #555;
                * { margin: 0; }
                h6 {
                    margin-bottom: 6px;
                    color: #333;
                    font-weight: 600;
                }
                p {
                    line-height: 1.6;
                }
                a {
                    color: var(--avs-color-02, #008000);
                    text-decoration: none;
                    transition: color 0.2s;
                    &:hover { color: var(--avs-color-04, #0b500e); text-decoration: underline; }
                }
            }
        }
        &:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
            .title i { transform: scale(1.1); }
        }
    }
    .card.card-sub i {
        display: none;
    }
}
@media only screen and (max-width: 767px) {
    section#contact-detail {
        padding: 32px 0 16px;
    }
}
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;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 0;
    h4 {
        font-size: 1.4rem;
        letter-spacing: 2px;
        background-image: linear-gradient(
            -225deg,
            #fff 0%,
            #ececec 25%,
            #fff 50%,
            #dbdbdb 75%,
            #fff 100%
        );
        background-size: 200% auto;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: textclip 10s linear infinite;
        margin-bottom: 4px;
    }
    .social-subtitle {
        color: rgba(255, 255, 255, 0.65);
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        margin-bottom: 40px;
    }
    a {
        height: 60px;
        width: 60px;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        border-radius: 8px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        box-shadow: 0 0 0 12px #fff, 0 4px 14px rgba(0, 0, 0, 0.18);
    }
    a:hover {
        transform: translateY(-8px) scale(1.12);
        box-shadow: 0 0 0 12px #fff, 0 12px 28px rgba(0, 0, 0, 0.32);
    }
}
@media (max-width: 767px) {
    section#contact-social {
        padding: 40px 0;
        h4 { font-size: 1.15rem; }
        a { height: 48px; width: 48px; }
    }
}
@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 {
    padding: 48px 0 72px;
    z-index: 1;
}
.form-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.form-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--avs-color-04, #0b500e), var(--avs-color-02, #008000));
    color: #fff;
}
.form-card-header > i {
    font-size: 2rem;
    opacity: 0.9;
    flex-shrink: 0;
}
.form-card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}
.form-card-header p {
    font-size: 0.875rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}
.form-iframe-wrap {
    background: #fff;
}
.form-iframe-wrap iframe {
    display: block;
}
@media (max-width: 767px) {
    .form-card-header {
        padding: 20px;
        gap: 14px;
    }
    .form-card-header > i {
        font-size: 1.5rem;
    }
    .form-card-header h3 {
        font-size: 1rem;
    }
}
.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; }
}
