html,
body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    width: 100%;
    height: auto;
    min-height: 100%;
    font-optical-sizing: auto;
    font-style: normal;
}

a {
    color: #000;
    text-decoration: none;
}

p {
    font-size: 16px;
    font-weight: 500;
}

menu {
    margin: 0;
}

.hbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vbox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
.small-text {
    font-size: 12px;
    font-style: italic;
    font-weight: lighter;
}
.hbox.space-between {
    justify-content: space-between;
    width: 100%
}

.hbox.center {
    gap: 16px;
    justify-content: center;
    width: 100%
}

.green-text {
    color: green;
}

.hero-bg-container {
    position: absolute;
    bottom: 0;
    left: 0;
    height: calc(100vh - 80px);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.hero-bg-container img {
    height: inherit;
}

.left-image {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100vh;
    z-index: 1;
}


.menu-logo img {
    height: 64px;
}

.title_slice {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.9);
    width: min(90%, 720px);
    min-width: 0;
    padding: 32px;
}

.give-feedback {
    width: min(80%, 500px);
    min-width: 0;
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    cursor: pointer;
}

/** feedback section */
.feedback {
    position: relative;
    background-image: url(./public/bg_feedback.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-width: 100%;
    height: 100vh;
}

.mobile_img-feedback-title {
    display: none;
}

.full-screen-bg {
    position: absolute;
    z-index: -1;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
    padding: 32px;
    border-radius: 8px;
    width: min(90%, 800px);
    min-width: 0;
}

.rating-label {
    font-size: 12px;
    margin-top: -6px;
}

.rate-container {
    height: 96px;
}

.rate-header {
    display: flex;
    align-items: center;
}

.rate-header img {
    width: 80px;
    height: 64px;
}

.rate-header p {
    width: 128px;
    padding-left: 10px;
}

.emoji-box {
    text-align: center;
}

.rating-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    cursor: pointer;
}
/* 
.rating-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.check-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    background-color: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    justify-content: center;
    align-items: center;
}

.rating-img.selected + .check-overlay {
    display: flex;
}

.check-mark {
    width: 55px;
    height: 55px;
    object-fit: contain;
} */

.rating-img.yes-or-no {
    width: auto;
    height: 64px;
}

.emoji-box:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease-in-out;
}

.emoji-box.selected {
    transform: scale(1.4);
    transition: transform 0.2s ease-in-out;
}


.vertical-divider {
    border-left: 1px solid #008000;
    height: 64px;
    width: 1px;
    padding: 0 8px;
}

.form-fields {
    width: 100%;
    position: relative;
}

.fields {
    position: absolute;
    z-index: 5;
    top: 16px;
    left: 8px;
    padding: 16px 32px;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: 430px;
}

.fields label {
    color: #fff;
    font-style: italic;
}

.fields input,
textarea {
    border-radius: 8px;
    min-height: 32px;
    padding: 8px;
}

.submit-button {
    width: 256px;
    height: 256px;
    cursor: pointer;
}

.submit-button:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease-in-out;
}

.submit-wrapper {
    position: relative;
    display: inline-block;
}

.submit-tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 20;
}

.submit-wrapper.disabled .submit-tooltip {
    visibility: hidden;
    opacity: 0;
}

.submit-wrapper.disabled:hover .submit-tooltip {
    visibility: visible;
    opacity: 1;
}

.follow-us img {
    position: absolute;
    bottom: 32px;
    right: 64px;
    max-width: 600px;
    z-index: 3;
}

.footer-text h5,
p {
    margin: 0;
}

/* ==========================
   Mobile (phones)
========================== */
@media screen and (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }

    p {
        font-size: 14px;
    }

    /* ---------- Hero ---------- */

    .hero-content {
        height: auto !important;
        min-height: 100vh;
    }

    .hero-bg-container {
        height: 100%;
        align-items: flex-end;
    }

    /* .hero-bg-container img {
        width: 45%;
        height: auto;
        object-fit: contain;
    } */

    .title_slice {
        position: relative;
        top: auto;
        left: auto;
        transform: none;

        width: 90%;
        min-width: auto;
        max-width: none;

        margin: 40px auto;
        display: block;
        padding: 20px;
    }

    .give-feedback {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;

        width: 80%;
        min-width: auto;
        background-color: rgba(255, 255, 255, 0.8);
        display: block;
        margin: 30px auto;
    }

    /* ---------- Feedback ---------- */
    .feedback {
        background-image: url(./public/mobile_bg-feedback.png);
    }

    .feedback-content {
        height: auto !important;
    }

    .mobile_img-feedback-title {
        display: block;
        margin-bottom: 8px;
    }

    .left-image {
        display: none;
    }

    .feedback-form {
        width: 100%;
        min-width: auto;
        max-width: none;
        padding: 8px;
        box-sizing: border-box;
        box-shadow: none;
        background-color: transparent;
    }

    /* ---------- Rating rows ---------- */

    .rate-container {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-bottom: 20px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
        padding: 16px 0;
        background-color: white;
    }

    .rate-header {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .rate-header img {
        width: 32px;
        height: auto;
    }

    .rate-header p {
        width: auto;
        padding-left: 10px;
    }

    .vertical-divider {
        display: none;
    }

    .hbox.space-between,
    .hbox.center {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .rating-img {
        width: 55px;
        height: 55px;
    }

    .rating-img.yes-or-no {
        height: 55px;
    }

    .rating-label {
        font-size: 11px;
    }

    /* ---------- Form ---------- */

    .form-fields {
        width: 100%;
        margin-top: 0;
    }

    .form-fields img {
        display: none;
    }

    .fields {
        position: static;
        width: 100%;
        padding: 0;
        background-image: url(./public/bg_fields.png);
        background-position: center;
        background-size: inherit;
        padding: 16px 8px;
        background-repeat: no-repeat;
    }

    .fields textarea,
    .fields input {
        width: 100%;
        box-sizing: border-box;
    }

    .submit-button {
        width: 160px;
        height: 160px;
        display: block;
    }

    .hbox.space-between:last-child {
        align-items: center;
    }

    /* ---------- Footer ---------- */

    .follow-us {
        justify-content: center;
        padding: 30px 0;
    }

    .follow-us img {
        position: static;
        width: 90%;
        max-width: 350px;
        height: auto;
    }

    .full-screen-bg {
        object-position: center;
    }

    .menu-logo img {
        height: 50px;
    }
}

dialog#submit-dialog {
    border: none;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    font-family: 'Montserrat', sans-serif;
}

dialog#submit-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

dialog#submit-dialog h2 {
    margin: 0 0 16px;
    color: #2e7d32;
}

dialog#submit-dialog.error h2 {
    color: #c62828;
}

dialog#submit-dialog button {
    border: none;
    background: #2e7d32;
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 16px;
}