.feedback {
    background: linear-gradient(rgba(191, 32, 78, 0.5), rgba(191, 32, 78, 0.5)), url('../images/feedbacks-fundo.jpg');
    background-position: center;
    background-size: cover;
    min-height: 100vh;
    width: 100vw;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    overflow-x: hidden; /* Garante que não haja barra de rolagem horizontal */
}

html, body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden !important; /* Remove barra de rolagem horizontal */
}

.title-feedback {
    text-align: center;
    padding: 30px 15px 0;
    color: var(--text-color);
    width: 100%;
    z-index: 30;
    font-size: 24px;
    box-sizing: border-box;
}

.carousel-feedback {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto 10px;
    z-index: 20;
    box-sizing: border-box;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

.carousel-item {
    position: absolute;
    width: 450px;
    height: 500px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--shadow-color);
    overflow: hidden;
    transform: rotateY(0deg) translateZ(0) translateX(0);
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0.7;
    box-sizing: border-box;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.carousel-item.active {
    opacity: 1;
    transform: rotateY(0deg) translateZ(100px) scale(1.1) translateX(0);
    z-index: 10;
}

.carousel-item.next {
    transform: rotateY(-45deg) translateZ(-100px) translateX(150px);
}

.carousel-item.prev {
    transform: rotateY(45deg) translateZ(-100px) translateX(-150px);
}

.carousel-item.hidden {
    display: none;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-background);
    color: var(--text-color);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 28px;
    z-index: 20;
}

.carousel-arrow:hover {
    color: var(--primary-background);
    background-color: var(--accent-color);
}

.carousel-arrow.left {
    left: 0;
}

.carousel-arrow.right {
    right: 0;
}

.button-feedback {
    text-align: center;
    padding: 20px;
    z-index: 10;
    position: relative;
    margin-bottom: 80px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: visible;
    white-space: normal; /* Permite quebra de linha se necessário */
    display: flex;
    justify-content: center;
}

.button-feedback button {
    background-color: var(--active-color);
    color: var(--text-color);
    font-size: 18px;
    font-weight: 700;
    padding: 30px 50px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.button-feedback a:hover {
    background-color: var(--hover-color);
}

.button-feedback a:active {
    background-color: var(--active-color);
}

.btn-email-feedback {
    background: var(--primary-background);
    color: var(--text-color);
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    max-width: 90vw;
    box-sizing: border-box;
    font-size: 1em;
    display: inline-flex;
    white-space: normal; /* Permite quebra de linha se necessário */
    overflow-x: visible;
    text-align: center;
}

@media (max-width: 900px) {
    .carousel-feedback {
        max-width: 100vw;
        /* height: 400px; */
        height: 500px;
        padding: 0 10px;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .carousel-item {
        /* width: 200px;
        height: 260px; */
        width: 300px;
        height: 400px;
    }
    .carousel-arrow.left {
        left: 10%;
    }

    .carousel-arrow.right {
        right: 10%;
    }
    .button-feedback {
        margin-bottom: 70px;
    }
}

@media (max-width: 600px) {
    .carousel-feedback {
        height: 400px;
        padding: 0 2vw;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .carousel-item {
        width: 250px;
        height: 300px;
    }
    .carousel-arrow {
        display: none;
    }
    .carousel-arrow.left {
        left: 0;
    }

    .carousel-arrow.right {
        right: 0;
    }
    .button-feedback {
        margin-bottom: 50px;
        padding-bottom: 30px;
    }
}

@media (max-width: 430px) {
    .feedback {
        padding: 0;
        margin: 0;
        width: 100vw;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .title-feedback {
        font-size: 16px;
        padding: 20px 5px 0;
    }
    .carousel-feedback {
        height: 300px;
        padding: 0 5vw;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .carousel-item {
        width: 200px;
        height: 250px;
    }
    .button-feedback {
        margin-bottom: 40px;
        padding: 10px 0;
    }
}