@keyframes rotate {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

.moving-border {
    overflow: hidden;
}
.contact_icon_group {
    position: fixed;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    z-index: 1050;
    /* higher than ::before */
    font-size: 1.5em;
    border-radius: 25px;
    pointer-events: auto;
}

.contact_icon_group_thai {
    position: fixed;
    bottom: 16px;
    right: 12px;
    transform: translateY(-5%);
    display: flex;
    gap: 8px;
    z-index: 1050;
    font-size: 1.5em;
    border-radius: 25px;
    pointer-events: auto;
}

.contact_icon_group .inner,
.contact_icon_group_thai .inner {
    margin: 2px;
    background: var(--background);
    border-radius: 25px;
    display: flex;
    gap: 8px;
    flex-direction: column;
    align-items: flex-end;
}

.moving-border .inner {
    z-index: 1;
    width: 100%;
}

.moving-border::before {
    content: "";
    background: linear-gradient( 90deg, rgba(255, 255, 255, 0) 0%, rgba(254, 75, 15, 0.75) 50%, rgba(255, 255, 255, 0) 100%);
    height: 500px;
    width: 50px;
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation: rotate 5s linear infinite;
    z-index: 0;
    transform-origin: top center;
}

.contact-us-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    background-color: transparent;
    text-decoration: none;
    font-size: 14px;
    color: gray;
}

.contact-us-btn i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    border-radius: 50%;
}

.contact-us-btn:hover {
    background-color: #0d6efd;
    color: white;
    text-decoration: none;
    border-color: #0d6efd;
}

.contact-us-btn .contact-text {
    display: none;
    margin-left: 4px;
}

.contact-us-btn:hover .contact-text {
    display: inline;
}

@media (hover: none) {
    .contact-us-btn .contact-text {
        display: inline;
    }
    .contact-us-btn:hover {
        background-color: transparent;
    }
    .contact-us-btn.hover-active {
        background-color: #0d6efd;
        color: white;
        border-color: #0d6efd;
        text-decoration: none;
    }
}


/* Feedback Toggle Mail Icon Button */

.feedback-toggle-btn {
    position: fixed;
    bottom: 60px;
    /* 56px above the contact-us button */
    right: 12px;
    background-color: transparent;
    color: var(--text);
    border-radius: 15px;
    font-size: 10px;
    z-index: 1050;
    display: inline-flex;
    align-items: flex-end;
    gap: 4px;
    transition: all 0.3s ease;
}


/* Feedback Form Container */

#feedback-form {
    display: none;
    position: fixed;
    bottom: 120px;
    /* appears above the buttons */
    right: 12px;
    width: 280px;
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    font-family: Arial, sans-serif;
    z-index: 1060;
    color: #333;
    box-sizing: border-box;
}


/* Show form when toggle button has 'show' class */

.feedback-toggle-btn.show+#feedback-form {
    display: block;
}


/* Paragraph inside form */

#feedback-form p {
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #444;
}


/* Inputs, select, textarea styling */

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    border-color: #0d6efd;
    outline: none;
}

.feedback-form textarea {
    resize: vertical;
    min-height: 60px;
}


/* Submit button styling */

.feedback-form button {
    width: 100%;
    padding: 10px;
    background-color: #0d6efd;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s ease;
}

.feedback-form button:hover {
    background-color: #0b5ed7;
}

.d-none {
    display: none;
}