/* Sticky Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #1a1a1a;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    width: 30px;
    margin-right: 10px;
}

.site-name {
    font-size: 16px;
    font-weight: bold;
}

/* Tab Navigation Sticky Adjustment */
.tab-navigation {
    position: sticky;
    top: 60px; /* Assuming the header height is around 60px to ensure tab stays below header */
    background-color: #fff;
    z-index: 999;
    padding: 10px;
    border-bottom: 2px solid #ddd;
}

/* Feedback Floating Button */
.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

.floating-button button {
    background-color: #ff6f61;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.floating-button button:hover {
    background-color: #e65c50;
}

/* Feedback Modal */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 50px); /* Adjust height to consider the cookie banner */
    background-color: rgba(0, 0, 0, 0.5); /* Dimmed background */
    z-index: 1002;
    overflow-y: auto; /* Enable scrolling for the modal */
}

.feedback-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px #ffe1f5fe;
    position: relative;
    max-height: calc(90vh - 50px); /* Adjust content height to avoid banner overlap */
    overflow-y: auto; /* Enable content scrolling */
    display: flex;
    flex-direction: column;
}

.feedback-sticky-header h3 {
    color: #4A90E2;
    top: 0;
    background-color: white;
    z-index: 2;
    padding: 5px 0;
    border-bottom: 0.1px solid #ddd;
    text-align: center;
}

.feedback-sticky-header h3 img {
    vertical-align: middle;
}


.feedback-scrollable-content label {
    display: block;
    margin: 2px;
    color: #555;
    font-size: 13px; /* Optionally adjust font size */
}


.feedback-scrollable-content input, .feedback-scrollable-content select {
    width: 100%;
    padding: 4px;
    margin: 4px;
    border: 0.8px solid #ffe1f5fe;
    border-radius: 5px;
    font-size: 12px;
}

.feedback-scrollable-content textarea {
    width: 100%;
    padding: 4px;
    margin: 4px;
    border: 0.8px solid #ffe1f5fe;
    border-radius: 5px;
    font-size: 12px;
    height: 30px;
    resize: vertical;
}

/* Prevent body scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 22px;
    cursor: pointer;
    color: #4A90E2;
}

.close-modal:hover {
    color: #357ABD;
}
/* Sticky Title */
.feedback-sticky-header {
    position: -webkit-sticky; /* Safari compatibility */
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1002; /* Ensure it appears above content */
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

/* Scrollable Q&A Content */
.feedback-scrollable-content {
    flex: 1; /* Take up remaining space between header and footer */
    overflow-y: auto; /* Enable scrolling */
    padding: 5px;
    gap: 5px;
}

/* Sticky Submit Button */
.feedback-sticky-footer {
    position: sticky;
    bottom: 0;
    background-color: white;
    z-index: 1003;
    padding: 15px 15px;
    border-top: 1px solid #ffe1f5fe;
    text-align: center;
}

.feedback-sticky-footer button[type="submit"] {
    flex: 1;
    max-width: 100%;
    padding: 10px 10px;
    font-size: 14px;
    color: #fff;
    background-color: #4A90E2;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0 10px;
    cursor: pointer;
}

.feedback-sticky-footer button[type="submit"]:hover {
    background-color: #357ABD;
    transform: scale(1.05);
}

select {
    font-size: 12px;
    padding: 5px;
    margin: 10px 0; /* Adjusted margin */
    border-radius: 5px;
    border: 1px solid #ffe1f5fe;
    max-width: 100%; 
    width: 80%;
}

select:focus {
    outline: none;
    border: 1px solid #357ABD;
}

/* For mobile-friendly dropdown size */
@media (max-width: 600px) {
    select {
        font-size: 12px;
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .feedback-content {
        padding: 15px;
        width: 95%;
        max-width: 400px;
    }

    .feedback-sticky-footer button[type="submit"] {
        font-size: 12px;
        padding: 8px 10px;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}
