﻿:root {
    --modal-overlay-bg: rgba(0,0,0,0.8);
    --modal-bg: #fff;
    --modal-border-radius: 8px;
    --modal-max-height: 90%;
    --scrollbar-color: #2FC8B4;
    --scrollbar-track: #f5f5f5;
}

.success-panel {
    padding: 15px;
}

.form-success {
    color: var(--color-green-dark);
    padding: 12px 16px;
    margin: 15px 0 30px 0 !important;
    border-radius: 8px;
    border: 0;
    background: rgba(47, 200, 180, 0.15);
}

/*.btn-new-message {

}
*/

.master-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--modal-overlay-bg);
    animation: fadeIn 0.3s ease;
    z-index: 999999;
}

    .master-modal.hidden {
        display: none;
    }

.modal-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 calc((100% - 600px) / 2);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
}

    .modal-track::-webkit-scrollbar {
        display: none;
    }

/* Ensure smooth scroll animation for programmatic scrolling */
@media (prefers-reduced-motion: no-preference) {
    .modal-track {
        scroll-behavior: smooth;
    }
}

.close-btn-card {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 8px;
    right: 2px;
    cursor: pointer;
    z-index: 10;
    -webkit-appearance: none;
    text-decoration: none;
    text-align: center;
    padding: 0;
    color: rgba(40, 15, 76, 0.6);
    font-style: normal;
    font-size: 12px;
    line-height: normal;
    text-shadow: none;
    border: 0;
    background: none;
    outline: none;
    box-shadow: none;
    transition: all 0.3s;
    animation: fadeIn 0.8s ease-out forwards;
}

    .close-btn-card:hover, .close-btn-card:focus, .close-btn-card:active, .close-btn-card:visited {
        color: #280F4C;
    }

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-green);
    border: none;
    font-size: 1.1em;
    color: #fff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

    /* Position arrows between center card and side cards */
    .arrow.left {
        left: calc(50% - 370px);
    }

    .arrow.right {
        right: calc(50% - 370px);
    }

    .arrow:hover {
        background: var(--color-green-dark);
    }

    .arrow.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .arrow.disabled {
        opacity: 0.3;
        cursor: not-allowed;
        pointer-events: none;
    }

/* Card base styles with scroll-snap */
.child-modal {
    position: relative;
    flex: 0 0 600px;
    width: 600px;
    max-width: 600px;
    min-height: 635px;
    background: var(--modal-bg);
    border-radius: var(--modal-border-radius);
    overflow-y: hidden;
    max-height: var(--modal-max-height);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), filter 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: scale(0.75);
    opacity: 0.4;
    filter: blur(3px);
}

    /* Active card in center */
    .child-modal.is-active {
        transform: scale(1) !important;
        opacity: 1;
        filter: blur(0);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Adjacent cards (visible on desktop) - more visible for better slide effect */
    .child-modal.is-adjacent {
        transform: scale(0.80);
        opacity: 0.7;
        filter: blur(1.5px);
        cursor: pointer;
    }

        /* Click overlay for adjacent cards - captures clicks for navigation */
        .child-modal.is-adjacent::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10;
        }

    /* Non-active cards: block content interaction but allow touch pass-through */
    .child-modal:not(.is-active) > * {
        pointer-events: none;
    }


    /* Scrollbar for card content */
    .child-modal::-webkit-scrollbar {
        width: 8px;
    }

    .child-modal::-webkit-scrollbar-track {
        background: var(--scrollbar-track);
        border-radius: 10px;
    }

    .child-modal::-webkit-scrollbar-thumb {
        background-color: var(--scrollbar-color);
        border-radius: 10px;
        border: 2px solid var(--scrollbar-track);
    }

/* Touch action - prioritize horizontal scroll on track for swipe gestures */
.modal-track {
    touch-action: pan-x;
}

/* Cards allow vertical scroll for content but pass horizontal to parent */
.child-modal {
    touch-action: pan-y pinch-zoom;
}

    /* Active card allows full scrolling of its content */
    .child-modal.is-active {
        touch-action: manipulation;
    }



/* == Bullets no carousel == */

.carousel-bullets {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 8px;
    max-width: 120px;
    z-index: 999999999 !important;
    pointer-events: auto !important;
}

    .carousel-bullets .bullet {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: rgba(255,255,255,0.95);
        opacity: 0.6;
        transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
        pointer-events: auto;
        cursor: pointer;
    }

        .carousel-bullets .bullet.active {
            background: var(--color-green) !important;
            pointer-events: none;
        }

    .carousel-bullets.spin-right {
        animation: bulletsShiftRight 240ms ease;
    }

    .carousel-bullets.spin-left {
        animation: bulletsShiftLeft 240ms ease;
    }

    .carousel-bullets .inner {
        display: flex;
        gap: 8px;
        align-items: center;
        transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        transform-origin: left center;
    }

@keyframes bulletsShiftRight {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-10px) scale(0.995);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes bulletsShiftLeft {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px) scale(0.995);
    }

    100% {
        transform: translateX(0);
    }
}

/* garantir bullets e setas recebem cliques normalmente */
/*.carousel-bullets, .arrow {
    touch-action: manipulation;
}*/

#carousel-bullets,
.carousel-bullets,
.bullets-wrapper {
    z-index: 9999;
}

#masterModal .panel {
    display: none;
    margin: unset;
    box-shadow: none;
}

    #masterModal .panel.active-panel {
        display: flex;
        flex-direction: column;
        gap: 30px;
        box-shadow: none;
        padding-bottom: 25px;
    }

.logo-name {
    position: relative;
    width: 100%;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
}

.logo-house-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0;
}

.panel2-2 .back {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 1;
}

    .panel2-2 .back button {
        display: block;
        position: relative;
        width: 25px;
        height: 25px;
        margin: 0;
        padding: 0;
        overflow: hidden;
        outline: none;
        background-color: transparent;
        cursor: pointer;
        border: 0;
    }

    .panel2-2 .back .button:before,
    .panel2-2 .back .button:after {
        content: "";
        position: absolute;
        border-radius: 50%;
        inset: 0;
        display: none;
    }

    .panel2-2 .back .button:before {
        border: 2px solid rgba(40, 15, 76, 0.2);
        transition: opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1) 80ms, transform 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) 80ms;
    }

    .panel2-2 .back .button:after {
        border: 2px solid rgba(47, 200, 180, 0.5);
        transform: scale(1.3);
        transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        opacity: 0;
    }

    .panel2-2 .back .button:hover:before,
    .panel2-2 .back .button:focus:before {
        opacity: 0;
        transform: scale(0.7);
        transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .panel2-2 .back .button:hover:after,
    .panel2-2 .back .button:focus:after {
        opacity: 1;
        transform: scale(1);
        transition: opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1) 80ms, transform 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) 80ms;
    }

    .panel2-2 .back .button-box {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .panel2-2 .back .button-elem {
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 25px;
        height: 25px;
        margin: 0;
    }

        .panel2-2 .back .button-elem i {
            position: relative;
            left: 0;
            color: rgba(40, 15, 76, 0.6);
        }

        .panel2-2 .back .button-elem:hover i {
            color: #280F4C;
        }

    .panel2-2 .back .button:hover .button-box,
    .panel2-2 .back .button:focus .button-box {
        transition: 0.4s;
        transform: translateX(-25px);
        
    }

.logo-house-box {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    width: 150px;
    height: 55px;
    overflow: hidden;
}

    .logo-house-box button {
        outline: none;
        border: 0;
        background: transparent;
        padding: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .logo-house-box button .logo-house {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            object-position: center;
        }

.menu {
    display: flex;
    gap: 12px;
    padding: 10px;
}

    .menu button {
        font-size: 1.1em;
        position: relative;
        color: #656464;
        font-weight: 500;
        background: transparent;
        border: 0;
        padding: 0;
    }

        .menu button:after {
            content: '';
            position: absolute;
            bottom: -5px;
            width: 100%;
            height: 3px;
            background: #389F99;
            border-radius: 10px;
            left: 0;
            transition: transform 0.2s ease-out;
            transform: scaleX(0);
        }

        .menu button:hover {
            color: var(--color-green);
        }

            .menu button:hover::after {
                transform: scaleX(1);
            }

        .menu button.active {
            color: var(--color-green);
        }

            .menu button.active:before {
                content: '';
                position: absolute;
                bottom: -5px;
                width: 100%;
                height: 3px;
                background: var(--color-green);
                border-radius: 10px;
                left: 0;
            }

            .menu button.active:after {
                display: none;
            }

.btn-divider {
    color: #ccc;
    font-weight: 300;
    font-size: 14px;
}

.child-modal > .content-info {
    position: relative;
    padding: 1em;
}

#masterModal .panel .content-info {
    padding: 0 30px;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    #masterModal .panel .content-info .contet-box {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        gap: 20px;
        padding: 0;
        /*overflow-y: auto;
        overflow-x: hidden;
        max-height: calc(var(--vh) - 200px);*/
    }

.house {
    text-align: center;
    padding: 15px 0 5px 0;
}

.house-name {
    width: 100%;
    font-size: 1.8em;
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-green);
    margin-bottom: 0;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.house-location {
    font-size: 14px;
    color: var(--color-blue);
    margin: 0;
}

.icons-box {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    scrollbar-color: var(--scrollbar-color) #F1F1F1;
    scrollbar-width: thin;
}

.icons {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: #F0F0F0;
    border: 1px solid #DDDDDD;
    padding: 10px;
    border-radius: 8px;
}

.responses {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.responses-title {
    position: relative;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    color: var(--color-blue);
    padding-bottom: 5px;
}

    .responses-title:after {
        content: '';
        position: absolute;
        background: var(--color-green);
        bottom: 0;
        width: 40px;
        height: 3px;
        border-radius: 10px;
        left: 50%;
        transform: translateX(-50%);
    }

.responses-names {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 12px;
}

    .responses-names div {
        display: flex;
        align-items: center;
        gap: 1px;
        font-size: 0.9em;
        color: var(--color-blue);
    }

        .responses-names div a {
            display: flex;
            align-items: center;
            gap: 1px;
            font-size: 14px;
            font-weight: 500;
            color: #280F4C;
            border: 1px solid var(--color-green-60);
            border-radius: 20px;
            padding: 1px 5px;
            background: var(--color-green-20);
            transition: all 0.2s ease;
        }

            .responses-names div a:hover {
                color: #280F4C;
                border: 1px solid var(--color-green);
                background: var(--color-green-60);
            }

        .responses-names div span {
            width: 20px;
            height: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

            .responses-names div span i {
                font-size: 16px;
            }

    .responses-names.social-links-content .no-social-links {
        color: #888888;
        font-style: italic;
    }



    .responses-names.location {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }

        .responses-names.location .house-address {
            margin: 0;
            line-height: 1.1em;
        }

.ig-gradient {
    background: linear-gradient(45deg,#405DE6,#5851DB,#833AB4,#C13584,#E1306C,#FD1D1D);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-contact {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    margin-top: auto;
}

    .btn-contact button {
        padding: 14px 32px;
        background: var(--color-green);
        color: white;
        border: none;
        border-radius: 50em;
        cursor: pointer;
        font-weight: 700;
        font-size: 16px;
        margin-top: 0px;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 5px;
        box-shadow: -1px 6px 9px 0px rgba(0, 0, 0, 0.35);
        -webkit-box-shadow: -1px 6px 9px 0px rgba(0, 0, 0, 0.35);
        -moz-box-shadow: -1px 6px 9px 0px rgba(0, 0, 0, 0.35);
    }

        .btn-contact button:hover {
            background: var(--color-green-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .btn-contact button i {
            position: relative;
            top: -1px;
        }

.nav-tabs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 2px solid #ccc;
    background: transparent;
    font-weight: 500;
    box-shadow: 0px 3px 4px 1px rgba(204,204,204,0.3);
}

    .nav-tabs-list li {
        flex: 1;
    }

        .nav-tabs-list li:first-child button {
            border-radius: 8px 0 0 0;
        }

        .nav-tabs-list li:last-child button {
            border-radius: 0 8px 0 0;
        }

.panel2-tab-btn {
    width: 100%;
    height: 100%;
    padding: 5px 15px 3px 15px;
    cursor: pointer;
    background-color: transparent;
    color: #656464;
    border: 0;
    position: relative;
}

    .panel2-tab-btn:after {
        content: '';
        position: absolute;
        top: 0;
        width: 100%;
        height: 3px;
        background: #389F99;
        left: 0;
        transition: transform 0.2s ease-out;
        transform: scaleX(0);
    }

    .panel2-tab-btn:hover {
        background-color: var(--color-green-30);
        color: #280F4C;
    }

        .panel2-tab-btn:hover::after {
            transform: scaleX(1);
        }

    .panel2-tab-btn.active-tab-local {
        background-color: var(--color-green-30);
        color: #280F4C;
    }

        .panel2-tab-btn.active-tab-local:before {
            content: '';
            position: absolute;
            top: 0;
            width: 100%;
            height: 3px;
            background: var(--color-green);
            left: 0;
        }

        .panel2-tab-btn.active-tab-local:after {
            display: none;
        }

.panel2-tab-content {
    display: none;
}

    .panel2-tab-content.active-tab-content-local {
        display: block;
    }

.content-form {
    /*padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: var(--scrollbar-color) #F1F1F1;
    scrollbar-width: thin;*/
    /*    max-height: calc(100vh - 450px);
    max-height: calc(100dvh - 450px);*/
    /*max-height: calc(var(--vh) - 350px);*/
}

    .content-form::-webkit-scrollbar {
        width: 8px;
    }

    .content-form::-webkit-scrollbar-track {
        background: #F1F1F1;
        border-radius: 10px;
    }

    .content-form::-webkit-scrollbar-thumb {
        background-color: var(--scrollbar-color);
        border-radius: 10px;
    }

.subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #280F4C;
    margin-bottom: 20px;
}

    .subtitle.first {
        padding-top: 10px;
    }

.bt-addResponsable {
    display: flex;
    padding: 1px 8px;
    justify-content: center;
    align-items: center;
    gap: 3px;
    border-radius: 100px;
    border: 1px solid var(--color-green-60);
    background: var(--color-green-20);
    font-size: 0.85em;
    color: #280F4C;
    font-weight: 500;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

    .bt-addResponsable:hover {
        border: 1px solid var(--color-green-80);
        background: var(--color-green-80);
    }

.rs-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform-origin: top;
    transform: translateY(-6px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

    /* classe de visível */
    .rs-container.rs-show {
        /* max-height grande o suficiente para conter o conteúdo; se o teu card for muito alto, aumenta o valor */
        width: 100%;
        max-height: 1200px;
        opacity: 1;
        transform: translateY(0);
    }

/* escondemos o botão de adicionar com uma classe específica e !important para ter prioridade */
.rs-btn-add.rs-hidden {
    display: none !important;
}

.subtitle-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

    .subtitle-box .subtitle {
        margin-bottom: 0;
    }

.rs-btn-remove {
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 11px;
    border: 1px solid rgba(201, 65, 60, 0.60);
    background: rgba(201, 65, 60, 0.20);
    font-size: 0.65em;
    color: #280F4C;
    font-weight: 900;
    transition: all 0.2s ease;
}

    .rs-btn-remove:hover {
        border: 1px solid rgba(201, 65, 60, 0.80);
        background: rgba(201, 65, 60, 0.40);
    }

.contact-form.contact-form-inputs-filled {
    padding: 0;
}

    .contact-form.contact-form-inputs-filled .contact-house-form-1 .multiple-fields {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
    }

/* Radio buttons */
.contact-form .radio-input {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 30px;
}

    .contact-form .radio-input * {
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    }

    .contact-form .radio-input label {
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        position: relative;
        padding: 0 10px 0 10px;
        transition: transform 0.15s ease;
    }

        .contact-form .radio-input label::before {
            position: absolute;
            content: "";
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
            padding: 20px 0;
            z-index: 0;
            transition: all 0.3s cubic-bezier(0.68,-0.55,0.265,1.55);
            border-radius: 5px;
            /*border: 1px solid #ddd;
            background-color: #ffffff;*/
        }

        .contact-form .radio-input label:hover::before {
            transition: all 0.2s ease;
            background-color: rgba(47, 200, 180, 0.1);
            border-color: #2fc8b4;
        }

        .contact-form .radio-input label:focus-within::before {
            background-color: #f5f7f7;
            border-color: #2fc8b4;
            box-shadow: 0 0 0 3px rgba(47, 200, 180, 0.25);
        }

    .contact-form .radio-input .label:has(input:checked)::before {
        /*background-color: rgba(47, 200, 180, 0.2);
        border-color: #2fc8b4;*/
    }

    .contact-form .radio-input .label .text {
        color: #777777;
        font-weight: 500;
        font-size: 16px !important;
        transition: color 0.25s ease, transform 0.2s ease;
    }

    .contact-form .radio-input .label:has(input:checked) .text {
        color: #280F4C;
        font-weight: 500;
    }

    .contact-form .radio-input .label .text i {
        font-size: 1.1em;
        position: relative;
        top: 2px;
        display: none;
    }

    .contact-form .radio-input .label input[type="radio"] {
        background-color: #ffffff;
        appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        border: 2px solid #b9c3c7;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .contact-form .radio-input .label input[type="radio"]:checked {
            background-color: #2fc8b4;
            border-color: #2fc8b4;
            animation: pulse 0.7s forwards;
        }

        .contact-form .radio-input .label input[type="radio"]:before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            transition: all 0.1s cubic-bezier(0.165,0.84,0.44,1);
            background-color: rgba(255, 255, 255, 1);
            transform: scale(0);
        }

        .contact-form .radio-input .label input[type="radio"]:checked::before {
            transform: scale(1);
        }

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(47, 200, 180, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(47, 200, 180, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(47, 200, 180, 0);
    }
}
/* / Radio buttosn */

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

    .contact-form input[type="checkbox"] {
        margin-bottom: 0;
    }

    .contact-form input[type=radio],
    .contact-form input[type=checkbox] {
        display: initial;
        width: auto;
        height: auto;
        margin-bottom: 0;
    }

    .contact-form input[type="checkbox"] {
        position: absolute;
        right: 9000px;
    }

    .contact-form input[type=submit] {
        background-color: var(--color-primary);
        border-radius: 40px;
    }

    .contact-form input[type="checkbox"]:checked + .label-text:before {
        font: var(--fa-font-solid);
        content: "\f14a";
        color: #280F4C;
        animation: effect 250ms ease-in;
    }

    .contact-form input[type="checkbox"] + .label-text:before {
        font: var(--fa-font-solid);
        content: "\f0c8";
        speak: none;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        width: 1em;
        display: inline-block;
        margin-right: 5px;
    }

    .contact-form input[type="checkbox"]:disabled + .label-text {
        color: #aaa;
    }

        .contact-form input[type="checkbox"]:disabled + .label-text:before {
            content: "\f0c8";
            color: #ccc;
        }

.contact-form i {
    display: unset;
    position: unset;
    top: unset;
    z-index: unset;
    left: unset;
    pointer-events: unset;
    transform: unset;
    margin: unset;
}

.contact-form .form-check label {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

    .contact-form .form-check label span {
        font-size: 1em;
    }

    .contact-form .form-check label a {
        /*display: inline-block;*/
    }

.btn-box {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}


    .btn-box input[type=submit] {
        width: auto;
        justify-content: center;
        text-align: center;
        border-radius: 50px;
        padding: 0 2em;
    }

    .btn-box button[type=submit] {
        width: auto;
        justify-content: center;
        text-align: center;
        border-radius: 50px;
        padding: 0 2em;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 7px;
        box-shadow: -1px 6px 9px 0px rgba(0, 0, 0, 0.35);
        -webkit-box-shadow: -1px 6px 9px 0px rgba(0, 0, 0, 0.35);
        -moz-box-shadow: -1px 6px 9px 0px rgba(0, 0, 0, 0.35);
    }

.form-box {
    background: #FAFAFA;
    border: 1px solid #EAEAEA;
    padding: 20px 15px 10px 15px;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
}

    .form-box::-webkit-scrollbar {
        display: none;
    }
/* Ensure smooth scroll animation for programmatic scrolling */
@media (prefers-reduced-motion: no-preference) {
    .form-box {
        scroll-behavior: smooth;
    }
}

.contact-form {
    margin-bottom: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
/* Botão Ver contacto */
.contact-reveal {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.contact-reveal-phone {
    display: none;
    text-align: center;
    padding: 5px 15px;
    background: rgba(47, 200, 180, 0.15);
    border: 1px solid rgba(47, 200, 180, 0.15);
    border-radius: 25px;
    color: #280F4C;
    box-shadow: -1px 6px 9px 0px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: -1px 6px 9px 0px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: -1px 6px 9px 0px rgba(0, 0, 0, 0.15);
}

    .contact-reveal-phone p {
        margin: 0;
        font-size: 15px;
        font-weight: 500;
        color: #280F4C;
        text-align: center;
    }

    .contact-reveal-phone a {
        font-size: 15px;
        font-weight: 600;
        color: var(--color-green-dark);
        position: relative;
    }

        .contact-reveal-phone a:hover {
            color: var(--color-green);
        }
        /*.contact-reveal-phone a.contact-reveal-number::before {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 2px;
            opacity: .25;
            background: currentColor;
        }*/

        .contact-reveal-phone a.contact-reveal-number::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 2px;
            background: currentColor;
            transform: scaleX(0);
            transform-origin: center;
            transition: transform .25s ease;
        }

        .contact-reveal-phone a.contact-reveal-number:hover::after {
            transform: scaleX(1);
        }

        .contact-reveal-phone a.contact-reveal-number:hover {
            transform: translateY(0);
            transition: transform .2s ease;
        }

.contact-reveal-btn {
    cursor: pointer;
    padding: 5px 15px;
    background: rgba(47, 200, 180, 0.15);
    border: 1px solid rgba(47, 200, 180, 0.15);
    border-radius: 25px;
    color: #280F4C;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 3px;
    box-shadow: -1px 6px 9px 0px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: -1px 6px 9px 0px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: -1px 6px 9px 0px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

    .contact-reveal-btn:hover {
        box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05), 0px 2px 2px rgba(0, 0, 0, 0.05), 0px 4px 4px rgba(0, 0, 0, 0.05), 0px 8px 8px rgba(0, 0, 0, 0.05), 0px 16px 16px rgba(0, 0, 0, 0.05);
        transform: translateX(1px);
    }

    .contact-reveal-btn i,
    .contact-reveal-phone i {
        transform: rotate(283deg);
        font-size: 15px;
    }

.contact-reveal.is-revealed .contact-reveal-btn {
    display: none;
}

.contact-reveal.is-revealed .contact-reveal-phone {
    display: flex;
    gap: 10px;
}
/* Labels dos campos do modal masterModal */

.child-modal .inputTextContact {
    position: absolute;
    left: 12px;
    top: 13px;
    pointer-events: none;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    font-size: 15px;
    z-index: 1;
    color: #280F4C !important;
}
/* Label sobe quando o campo tem foco ou valor */
.child-modal .fieldContact input:focus + .inputTextContact,
.child-modal .fieldContact input:not(:placeholder-shown):not([type="date"]) + .inputTextContact,
.child-modal .fieldContact input[type="date"]:valid + .inputTextContact,
.child-modal .fieldContact select:focus + .inputTextContact,
.child-modal .fieldContact select:valid + .inputTextContact,
.child-modal .fieldContact textarea:focus + .inputTextContact,
.child-modal .fieldContact textarea:not(:placeholder-shown) + .inputTextContact {
    left: 5px;
    top: -17px;
    font-size: 13px;
    color: #1e9182 !important;
}
/* ---------- Ícone do calendário ---------- */
.child-modal .fieldContact .calendarIcon {
    position: absolute;
    top: 22px;
    right: 23px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #280F4C;
    width: 24px;
    height: 20px;
}

    .child-modal .fieldContact .calendarIcon i {
        font-size: 20px;
    }

.child-modal .fieldContact input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
    position: absolute;
    right: 12px;
    width: 18px;
    height: 18px;
}

.child-modal .fieldContact input[type="date"] {
    padding-right: 36px;
}
    /* Hide the date placeholder text until focused or has value */
    .child-modal .fieldContact input[type="date"]:not(:focus):not(:valid)::-webkit-datetime-edit,
    .child-modal .fieldContact input[type="date"]:not(:focus):not(:valid)::-webkit-datetime-edit-fields-wrapper {
        color: transparent;
    }



@media (max-width: 1600px) {
    .child-modal {
        min-height: 560px;
    }

        .child-modal .inputTextContact {
            top: 11px;
        }
        /* Label sobe quando o campo tem foco ou valor */
        .child-modal .fieldContact input:focus + .inputTextContact,
        .child-modal .fieldContact input:not(:placeholder-shown):not([type="date"]) + .inputTextContact,
        .child-modal .fieldContact input[type="date"]:valid + .inputTextContact,
        .child-modal .fieldContact select:focus + .inputTextContact,
        .child-modal .fieldContact select:valid + .inputTextContact,
        .child-modal .fieldContact textarea:focus + .inputTextContact,
        .child-modal .fieldContact textarea:not(:placeholder-shown) + .inputTextContact {
            top: -18px;
        }

        #masterModal .panel.active-panel {
            gap: 20px;
        }

        #masterModal .panel .content-info {
            padding: 0 15px;
            gap: 10px;
        }

        #masterModal .responses {
            gap: 15px;
        }

        #masterModal .responses-names div {
            font-size: 0.8em;
        }

        #masterModal .logo-house-box {
            height: 40px;
        }

        #masterModal .house {
            padding: 12px 0 5px 0;
        }

        #masterModal .house-name {
            font-size: 1.5em;
            line-height: 1.3;
        }

        #masterModal .icons {
            gap: 20px;
            padding: 5px;
        }
    }

@media (max-width: 1024px) {

    .child-modal > .content-info {
        padding: 1em;
    }

    .logo-house-box {
        width: 130px;
        height: 55px;
    }

    .logo-house-content {
        gap: 10px;
        padding: 0;
    }

    .menu button {
        font-size: 1em;
    }

    .house {
        padding: 15px 0 0 0;
    }

    .house-name {
        font-size: 20px;
        margin: 0;
        line-height: 28px;
    }

    .house-location {
        font-size: 12px;
        line-height: 20px;
        margin: 0;
    }
    /*    #masterModal .panel .content-info {
        padding: 0 25px;
    }*/

    .contact-form.contact-form-inputs-filled {
        padding: 0;
    }

    .icons-box {
        gap: 15px;
    }

    .icons {
        gap: 15px;
        padding: 10px;
    }

    .responses {
        gap: 10px;
    }

    .responses-title {
        font-size: 12px;
        padding-bottom: 3px;
    }

        .responses-title:after {
            bottom: 2px;
            width: 35px;
        }

    .responses-names div span {
        width: 18px;
        height: 18px;
    }

    .responses-names div {
        gap: 3px;
        font-size: 12px;
    }

        .responses-names div a {
            gap: 1px;
            font-size: 12px;
            line-height: 1.9em;
            padding: 0px 4px;
        }

        .responses-names div span {
            width: 16px;
            height: 14px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

            .responses-names div span i {
                font-size: 14px;
            }

    .responses-names.location .house-address {
        font-size: 12px;
    }

    .responses-names.location .house-location {
        font-size: 12px;
    }

    .subtitle {
        font-size: 16px;
    }

    .btn-contact button {
        padding: 10px 30px;
        font-size: 0.9em !important;
    }

    .btn-box input[type=submit],
    .btn-box button[type=submit] {
        padding: 10px 30px;
        font-size: 0.9em !important;
        height: 45px;
    }

    .btn-box input[type=submit] {
        height: 45px;
    }
}

@media (max-width: 767px) {
    /*    .modal-track {
        padding: 0 calc((100% - 420px) / 2);
        gap: 16px;
    }*/

    .arrow {
        font-size: 0.8em;
        width: 32px;
        height: 32px;
    }

    .child-modal {
        min-height: auto;
    }
    .responses-names {
        gap: 10px;
    }

        .responses-names div {
            gap: 2px;
            font-size: 11px;
            line-height: 1em;
        }

            .responses-names div a {
                gap: 1px;
                font-size: 11px;
                line-height: 1.7em;
                padding: 0px 4px;
            }

            .responses-names div span {
                width: 12px;
                height: 12px;
            }

                .responses-names div span i {
                    font-size: 12px;
                }

        .responses-names.location .house-address {
            font-size: 11px;
        }

        .responses-names.location .house-location {
            font-size: 11px;
        }

    .subtitle {
        font-size: 14px;
    }

    .child-modal .inputTextContact {
        left: 12px;
        top: 8px;
        font-size: 14px;
    }

    .child-modal .fieldContact .calendarIcon {
        top: 18px;
        right: 19px;
    }

    .btn-contact button,
    .btn-box input[type=submit],
    .btn-box button[type=submit] {
        padding: 7px 20px;
        font-size: 0.9em !important;
        letter-spacing: 0.03em !important;
    }

    .btn-box input[type=submit] {
        height: 36.41px;
    }

    .contact-form .form-check label {
        gap: 5px;
    }

        .contact-form .form-check label span {
            font-size: 0.95em;
            line-height: 1.4em;
        }
    .contact-form .radio-input {
        gap: 10px;
    }
        .contact-form .radio-input label {
            padding: 5px 10px 5px 10px;
        }
    .contact-form .radio-input .label .text {
        font-size: 14px !important;
    }
    .contact-form .radio-input .label input[type="radio"] {
        width: 16px;
        height: 16px;
    }
        .contact-form .radio-input label::before {
            padding: 5px 0;
        }
        .contact-form .radio-input label input {
            margin-bottom: 0px !important;
        }

}

@media (max-width: 680px) {
    .modal-container {
        align-items: center;
        padding-bottom: 0;
    }

    .modal-track {
        padding: 0 4%;
        gap: 16px;
        align-items: flex-start;
        padding-top: 1%;
        scroll-padding: 0 5%;
    }

    .arrow {
        display: none !important;
    }

    .child-modal {
        flex: 0 0 90vw;
        width: 90vw;
        max-width: 90vw;
        height: 95%;
        transform: scale(1);
        opacity: 1;
        filter: none;
    }

        .child-modal.is-active {
            transform: scale(1);
            opacity: 1;
            filter: none;
        }

        .child-modal.is-adjacent {
            transform: scale(1);
            opacity: 1;
            filter: none;
        }
            /* On mobile, hide the click overlay since we use swipe */
            .child-modal.is-adjacent::after {
                display: none;
            }

        .child-modal > .content-info {
            padding: 0.7em;
        }

    .carousel-bullets {
        bottom: 18px;
        left: 50%;
        transform: translateX(-50%);
    }

    #masterModal .panel.active-panel {
        height: 100%;
        justify-content: space-between;
    }

    #masterModal .panel .content-info {
        padding: 0 0.7em;
        gap: 15px;
    }

    .panel2-tab-btn {
        padding: 5px;
        font-size: 12px;
    }

    .content-form {
        /*max-height: calc(100vh - 230px);
        max-height: calc(100dvh - 230px);*/
        max-height: calc(var(--vh) - 280px);
    }

    .logo-name {
        padding-top: 15px;
    }

    .logo-house-box {
        width: 120px;
        height: 40px;
    }

    .logo-house-content {
        gap: 10px;
        padding: 0;
    }

    .menu {
        padding: 0;
    }

    .house {
        padding: 10px 0 0 0;
    }

    .house-name {
        font-size: 18px;
        margin: 0;
        line-height: 26px;
    }

    .icons {
        gap: 10px;
        padding: 7px;
    }

    .responses-names {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }

        .responses-names div {
            gap: 3px;
            font-size: 12px;
            line-height: 1em;
        }

            .responses-names div span {
                width: 16px;
                height: 14px;
            }

                .responses-names div span i {
                    font-size: 12px;
                }

        .responses-names.location .house-address {
            font-size: 12px;
        }

    .contact-form.contact-form-inputs-filled {
        padding: 10px 0 14px 0;
    }
}

@media (max-width: 500px) {

    .menu button {
        font-size: 0.8em;
    }

    .logo-house-content {
        gap: 5px;
        padding: 0;
    }

    .menu button {
        font-size: 0.8em;
    }

    #masterModal .panel .content-info {
        padding: 0 15px;
    }

    .house-name {
        font-size: 16px;
        line-height: 20px;
    }

    .field-small {
        padding: 0 15px !important;
    }

    .child-modal > .content-info {
        padding: 0.5em;
    }

    .child-modal {
        flex: 0 0 95vw;
        width: 95vw;
        max-width: 95vw;
    }

        .child-modal .inputTextContact {
            top: 11px;
        }
        /* Label sobe quando o campo tem foco ou valor */
        .child-modal .fieldContact input:focus + .inputTextContact,
        .child-modal .fieldContact input:not(:placeholder-shown):not([type="date"]) + .inputTextContact,
        .child-modal .fieldContact input[type="date"]:valid + .inputTextContact,
        .child-modal .fieldContact select:focus + .inputTextContact,
        .child-modal .fieldContact select:valid + .inputTextContact,
        .child-modal .fieldContact textarea:focus + .inputTextContact,
        .child-modal .fieldContact textarea:not(:placeholder-shown) + .inputTextContact {
            top: -15px;
            left: 19px;
            font-size: 11px;
        }

        .child-modal .fieldContact .calendarIcon {
            top: 18px;
            right: 19px;
        }

    .logo-name {
        padding-top: 10px;
    }

    .lqd-column.col-md-12.col-sm-12.text-left.mb-20 {
        margin-bottom: 10px !important;
    }

        .lqd-column.col-md-12.col-sm-12.text-left.mb-20 .form-check {
            margin-top: 0;
        }

            .lqd-column.col-md-12.col-sm-12.text-left.mb-20 .form-check.mb-20 {
                margin-bottom: 0 !important;
            }

    .panel2-tab-btn {
        padding: 5px;
        font-size: 12px;
        line-height: 15px;
    }

    .contact-form.contact-form-inputs-filled {
        padding: 10px 0 5px 0;
    }

        .contact-form.contact-form-inputs-filled .contact-house-form-1 .multiple-fields {
            flex-direction: column;
            justify-content: flex-start;
            gap: 0;
        }

            .contact-form.contact-form-inputs-filled .contact-house-form-1 .multiple-fields .col-xs-6 {
                width: 100%;
            }

    .form-box {
        padding: 10px 10px 10px 10px;
    }

    .child-modal .fieldContact input:focus + .inputTextContact,
    .child-modal .fieldContact input:not(:placeholder-shown):not([type="date"]) + .inputTextContact,
    .child-modal .fieldContact input[type="date"]:valid + .inputTextContact,
    .child-modal .fieldContact select:focus + .inputTextContact,
    .child-modal .fieldContact select:valid + .inputTextContact,
    .child-modal .fieldContact textarea:focus + .inputTextContact,
    .child-modal .fieldContact textarea:not(:placeholder-shown) + .inputTextContact {
        top: -15px;
        left: 5px;
        font-size: 11px;
    }

    .contact-form select,
    .contact-form input,
    .contact-form textarea,
    .contact-form select,
    .contact-form input,
    .contact-form .ui-selectmenu-button {
        height: 38px;
        margin-bottom: 20px !important;
        line-height: 1.5em !important;
    }

    .btn-contact button, .btn-box input[type=submit], .btn-box button[type=submit] {
        margin-top: 10px;
        padding: 5px 10px;
        font-size: 0.8em !important;
        height: auto;
    }

    .modal-track .child-modal .content-form .contact-form .d-flex > .lqd-column:not([class*=col-xs-]) {
        width: 100%;
        padding: 0 10px;
    }

    .modal-track .child-modal .content-form .contact-form .d-flex .field-small {
        padding: 0 !important;
    }

    .contact-reveal-btn,
    .contact-reveal-phone {
        padding: 5px 10px;
    }

        .contact-reveal-btn,
        .contact-reveal-phone p,
        .contact-reveal-phone a {
            font-size: 12px;
        }

            .contact-reveal-btn i,
            .contact-reveal-phone i {
                font-size: 13px;
            }

    .contact-reveal.is-revealed .contact-reveal-phone {
        display: flex;
        gap: 3px;
    }
}

@media (max-width: 450px) {
    .panel2-tab-btn {
        font-size: 10px;
        line-height: 12px;
    }
    .contact-form .radio-input {
        gap: 10px;
    }
    .contact-form .radio-input label {
        padding: 5px 5px 5px 5px;
        gap: 3px;
    }
    .contact-form .radio-input .label .text {
        font-size: 14px !important;
    }
}

@media (max-width: 400px) {
    .logo-house-box {
        width: 100px;
        height: 40px;
    }

    .responses-title {
        font-size: 11px;
        padding-bottom: 3px;
    }

    .btn-contact button,
    .btn-box input[type=submit],
    .btn-box button[type=submit] {
        padding: 6px 15px;
        font-size: 0.8em !important;
    }

    .child-modal .fieldContact .calendarIcon {
        top: 16px;
        right: 19px;
        width: 20px;
        height: 20px;
    }

        .child-modal .fieldContact .calendarIcon i {
            font-size: 16px;
        }
    .contact-form .radio-input {
        gap: 10px;
    }

        .contact-form .radio-input label {
            padding: 5px 2px 5px 2px;
            gap: 2px;
        }

        .contact-form .radio-input .label .text {
            font-size: 13px !important;
        }
}


@media (max-width: 390px) {
    .contact-form .radio-input {
        gap: 10px;
    }
}


@media (max-width: 360px) {
    .contact-form .radio-input {
        gap: 5px;
    }
}