/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.container {
    margin: auto;
    border-radius: 8px;
    padding: 20px;
}

h2, h3 {
    text-align: center;
    color: #333;
}

/* Button Styles */
#write-feedback-btn {
    position: fixed;  /* Fixed position for the button */
    bottom: 20px;     /* 20px from the bottom */
    right: 20px;      /* 20px from the right edge */
    background-color: #051650;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1001;  /* Ensure it's on top of other content */
}

#write-feedback-btn:hover {
    background-color: #021132;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.see-all-container {
    text-align: center;
    margin-top: 20px;
}

.back-container {
    text-align: center;
    margin-top: 20px;  
}


/* Feedback Form */
.feedback-container form {
    width: 100%;
}

form label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0 5px;
    color: #333;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

/* Rating Stars */
#rating {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked ~ .star {
    color: gold;
}

.star:hover, .star:hover ~ .star {
    color: gold;
}

/* Submit Button */
button[type="submit"] {
    background-color: #021132;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: #1d158f;;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Feedback List Styles */
#feedback-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.feedback-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #fafafa;
    flex: 0 0 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feedback-item h4 {
    margin: 0;
}

.feedback-item p {
    margin: 5px 0;
}

/* Form Elements */
label {
    display: block;
    margin: 10px 0 5px;
    color: #333;
    text-align: left; /* Ensure left alignment */
}

input[type="text"], input[type="email"], textarea, select {
    width: 80%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

textarea {
    resize: vertical;
}

/* Rating Stars */
#rating {
    display: flex;
    justify-content: flex-start; /* Align stars to the left */
    gap: 5px;
}

#rating input {
    display: none;
}

#rating label {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
}

/* Filled Stars */
#rating input:checked ~ label {
    color: gold;
}

#rating label:hover, #rating label:hover ~ label {
    color: gold;
}

#rating input:checked + label:hover,
#rating input:checked + label:hover ~ label {
    color: gold;
}

#rating input:checked + label:hover ~ label {
    color: #ddd;
}

/* Stars Display for Feedback List */
.star {
    font-size: 20px;
    color: #ddd; /* Default color for unfilled stars */
}

.star.filled {
    color: gold; /* Color for filled stars */
}

/* Submit Button */
button[type="submit"] {
    background-color: #051650;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%; /* Make submit button full width */
}

button[type="submit"]:hover {
    background-color: #021132;
}