/* Self-hosted Poppins (same files/pattern as the main site, src/styles/tokens.css) —
   only the weights this page uses: 400 (body/inputs), 500 (labels), 600 (toggle), 700 (headings/buttons/strong). */
@font-face { font-family: Poppins; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/poppins-700.woff2) format("woff2"); }

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-underline-position: under !important;
    text-decoration-thickness: .07em !important;
    text-underline-offset: .1em !important;
}

body {
    font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #010727;
    color: #fff;
    margin: 0;
}

.hidden {
    display: none !important;
}

.feedback-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feedback-container::before {
    position: absolute;
    width: 2000px;
    height: 2000px;
    right: -800px;
    top: -700px;
    border-radius: 100%;
    background: radial-gradient(circle, rgb(31, 65, 225) 0%, rgba(1, 7, 39, 0) 50%);
    opacity: .5;
    content: "";
    z-index: 1;
}

.site-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    z-index: 2;
}

.site-header .logo {
    max-width: 340px;
    height: auto;
}

.container {
    max-width: 1780px;
    padding-left: 30px;
    padding-right: 30px;
    margin: 0 auto;
}

.feedback-content {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.bee-flying {
    position: absolute;
    width: 140px;
    top: -80px;
    left: -30px;
    transform: rotate(20deg);
    z-index: 3;
}

.bubble-chat {
    position: absolute;
    width: 160px;
    top: -100px;
    right: 60px;
    filter: drop-shadow(2px 4px 30px rgba(0, 0, 0, 0.7));
    will-change: transform;
    animation: float-real 7.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    transform-origin: center center;
    z-index: 3;
}

@keyframes float-real {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }

    10% {
        transform: translateY(-6px) rotate(-1deg) scale(1.01);
    }

    25% {
        transform: translateY(-12px) rotate(1deg) scale(1.02);
    }

    40% {
        transform: translateY(-8px) rotate(-1.5deg) scale(1.015);
    }

    55% {
        transform: translateY(-16px) rotate(2deg) scale(1.025);
    }

    70% {
        transform: translateY(-10px) rotate(-2deg) scale(1.02);
    }

    85% {
        transform: translateY(-14px) rotate(1.5deg) scale(1.03);
    }

    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bubble-chat {
        animation: none;
        transform: none;
    }
}

.feedback-cols {
    display: flex;
    gap: 120px;
}

.feedback-cols .content {
    flex: 1;
    position: relative;
    font-size: 18px;
}

.feedback-cols .content .title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
}

.feedback-cols .content .lead {
    font-size: 24px;
}

.feedback-cols .content::after {
    position: absolute;
    width: 20px;
    height: 680px;
    background: url(../images/divider.svg) no-repeat;
    right: -76px;
    top: 50%;
    transform: translateY(-50%);
    content: "";
}

.feedback-cols .form-wrapper {
    flex: 0 0 680px
}

.rating-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.rating input:checked~label {
    color: #f1b548;
}

/* Hover-capable devices only, so taps on touch screens don't leave stuck hover states */
@media (hover: hover) {
    .rating label:hover,
    .rating label:hover~label {
        color: #f1b548;
    }
}

.toggle {
    position: relative;
    display: flex;
    border: 1px solid #006DF5;
    border-radius: 40px;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 40px;
    background: #0a0f2b;
}

.toggle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #006DF5;
    border-radius: 40px;
    transition: transform 0.35s cubic-bezier(0.45, 1.5, 0.5, 1);
}

.toggle.right::before {
    transform: translateX(100%);
}

.toggle input {
    display: none;
}

.toggle label {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.toggle input#anonymous:checked~label[for="anonymous"],
.toggle input#identity:checked~label[for="identity"] {
    color: #fff;
}

/* --- Toggle Switch --- */
.anonymous-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch {
    position: relative;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: background-color 0.3s ease;
    border-radius: 34px;
}

.slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.switch input:checked+.slider {
    background-color: #006DF5;
}

.switch input:checked+.slider::before {
    transform: translateX(22px);
}

.anonymous-checkbox label {
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.form-control {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 16px;
    border: none;
    width: 100%;
    height: 50px;
    display: flex;
    padding: 5px 15px;
    margin: 0;
    border-radius: 10px;
    outline: none;
    transition: all ease-in-out 200ms;
}

.feedback-form .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

textarea.form-control {
    height: 150px;
    resize: vertical;
    padding-top: 10px;
}

.action {
    margin-top: 20px;
    text-align: center;
}

.btn-submit {
    display: inline-flex;
    height: 60px;
    padding: 0 60px;
    border-radius: 30px;
    background-color: #006DF5;
    border: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

@media (hover: hover) {
    .btn-submit:hover {
        background-color: #0056c9;
    }
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.site-footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-footer .copyright,
.site-footer .address {
    font-size: 14px;
    margin: 0;
}

.success-message{
    background: rgb(93 218 127 / 48%);
    border: 1px solid #44bf39;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    position: relative;
}

.success-message .inner-content {
    display: flex;
    align-items: center;
    gap: 24px;
}
.success-message .inner-content .tick{
    flex: 0 0 60px;
    height: auto;
    color: #3dc835;
}

.success-message .inner-content .close{
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease-in-out;
}
@media (hover: hover) {
    .success-message .inner-content .close:hover{
        opacity: 1;
    }
}
.success-message h2 {
    font-size: 20px;
    margin: 0 0 10px;
}

.success-message p {
    font-size: 14px;
    margin: 0;
}

.error-message{
    background: rgb(218 93 93 / 48%);
    border: 1px solid #bf3939;
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.error-message .close{
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease-in-out;
}
@media (hover: hover) {
    .error-message .close:hover{
        opacity: 1;
    }
}

.error-message p{
    font-size: 14px;
    margin: 0;
}

@media screen and (max-width: 1280px) {
    .site-header .logo {
        max-width: 280px;
    }

    .bee-flying {
        display: none;
    }

    .bubble-chat {
        left: 0;
        right: 0;
        top: 10px;
        margin: auto;
    }

    .feedback-content {
        padding: 160px 0 80px;
    }

    .feedback-cols {
        flex-direction: column;
        gap: 60px;
    }

    .feedback-cols .content {
        padding-bottom: 80px;
    }

    .feedback-cols .content::after {
        transform: rotate(90deg) translateX(-20px);
        left: 0;
        right: 0;
        top: 100%;
        bottom: 0;
        margin: auto;
    }

    .feedback-cols .content .title {
        font-size: 42px;
    }

    .feedback-cols .form-wrapper {
        flex: 1 1 auto;
    }
}

@media screen and (max-width: 992px) {
    .feedback-form .row {
        grid-template-columns: repeat(1, 1fr);
    }

    .site-footer .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}