/* Feedback CTA Section (above footer) */
.feedback-cta {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feedback-cta-content {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.feedback-cta p {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
    margin: 0 0 1rem 0;
    text-align: center !important;
}

.feedback-cta-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.feedback-cta-button:hover {
    background-color: #0056b3;
}

/* Feedback Drawer Overlay */
.feedback-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.feedback-drawer-overlay.show {
    display: block;
}

/* Feedback Drawer */
.feedback-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 450px;
    max-width: 90vw;
    background-color: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.feedback-drawer.open {
    transform: translateX(0);
}

/* Drawer Header */
.feedback-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.feedback-drawer-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.feedback-drawer-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.feedback-drawer-close:hover {
    color: #333;
}

/* Drawer Body */
.feedback-drawer-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Feedback Cards */
.feedback-card {
    margin-bottom: 1.5rem;
}

.feedback-card-hidden {
    display: none;
}

.feedback-intro {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Star Rating */
.feedback-rating-container {
    text-align: center;
}

.feedback-stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.feedback-star {
    font-size: 2.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
}

.feedback-star:hover,
.feedback-star.hover {
    color: #ffc107;
    transform: scale(1.1);
}

.feedback-star.selected {
    color: #ffc107;
}

.feedback-rating-legend {
    font-size: 0.875rem;
    color: #777;
    margin: 0;
    text-align: center !important;
}

/* Form Groups */
.feedback-form-group {
    margin-bottom: 1.25rem;
}

.feedback-form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.feedback-textarea,
.feedback-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.feedback-textarea:focus,
.feedback-input:focus {
    outline: none;
    border-color: #007bff;
}

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

/* Checkbox */
.feedback-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.feedback-checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.feedback-checkbox-label span {
    user-select: none;
}

/* Contact Fields */
.feedback-contact-fields {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.feedback-contact-hidden {
    display: none;
}

/* Drawer Footer */
.feedback-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.feedback-submit-btn {
    width: 100%;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.feedback-submit-btn:hover {
    background-color: #218838;
}

.feedback-submit-hidden {
    display: none;
}

/* Success Message */
.feedback-success {
    text-align: center;
    padding: 2rem;
}

.feedback-success-icon {
    width: 60px;
    height: 60px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem auto;
}

.feedback-success h4 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.feedback-success p {
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feedback-drawer {
        width: 100%;
        max-width: 100vw;
    }
    
    .feedback-star {
        font-size: 2rem;
    }
    
    .feedback-cta p {
        font-size: 1.1rem;
    }
    
    .feedback-cta-button {
        padding: 0.65rem 1.5rem;
    }
}

/* Accessibility */
.feedback-drawer:focus {
    outline: none;
}

button:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}
