/* Main Content Container */
.feedback-page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin-top: 10px;
    margin-bottom: 50px; /* Adjust for footer height */
}

/* Title Section */
.feedback-section {
    text-align: center;
    margin-bottom: 20px;
}

.feedback-title {
    font-size: 36px;
    color: #007BFF;
    font-weight: bold;
    margin-bottom: 10px;
}

.feedback-description {
    font-size: 18px;
    color: #555;
}

/* Form Container */
.feedback-form-container {
    background: linear-gradient(135deg, #c9d6ff, #e2e2e2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 40px;
    width: 95%; /* Make it almost full width by default */
    max-width: 800px;
    text-align: left;
    border-left: 4px solid #6a4c9c;
    border-right: 4px solid #6a4c9c;
}

/* Subtitle for Form Sections */
.feedback-subtitle {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Instructions Text */
.feedback-instructions {
    font-size: 16px;
    color: #777;
    margin-bottom: 20px;
}

/* Form Elements */
.feedback-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.feedback-input-group label {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    text-align: left;
}

.feedback-input-group input,
.feedback-input-group select,
.feedback-input-group textarea {
    width: 95%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

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

.feedback-input-group textarea {
    resize: vertical;
}

/* Submit Button */
.submit-btn {
    background-color: #007BFF;
    color: white;
    padding: 12px;
    font-size: 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* Box Container */
.rating-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 400px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="gray"><path d="M12 2l3 7h7l-5 5 2 8-7-4-7 4 2-8-5-5h7z"/></svg>') no-repeat center/cover;
}

.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="gold"><path d="M12 2l3 7h7l-5 5 2 8-7-4-7 4 2-8-5-5h7z"/></svg>') no-repeat center/cover;
}

/* Dropdown Styling */
.dropdown-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dropdown-container select {
    width: 180px;
    padding: 8px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-container select:hover {
    border-color: #666;
}

/* Laptop Screens (Large) */
@media (min-width: 1200px) {
    .feedback-form-container {
        padding: 50px; /* More padding on large screens */
    }

    .feedback-title {
        font-size: 48px;
    }

    .feedback-description {
        font-size: 20px;
    }
}

/* Laptop Screens (Medium) */
@media (min-width: 992px) and (max-width: 1199px) {
    .feedback-form-container {
        padding: 40px;
    }
}

/* Tablet Screens */
@media (min-width: 768px) and (max-width: 991px) {
    .feedback-form-container {
        padding: 30px;
    }

    .feedback-title {
        font-size: 30px;
    }

    .feedback-description {
        font-size: 16px;
    }

    .rating-box {
        width: 90%; /* Full width on tablets */
        max-width: 400px; /* But limit to a reasonable max */
        flex-direction: column; /* Stack rating and dropdown */
        align-items: center;
    }

    .star-rating {
        margin-bottom: 10px; /* Add some space */
    }

    .dropdown-container {
        width: 100%;
        align-items: center; /* Center dropdown */
    }

    .dropdown-container select {
        width: 90%; /* Almost full width */
        max-width: 200px; /* Limit dropdown width */
    }
}


/* Mobile Screens (Large) */
@media (max-width: 767px) {
    .feedback-form-container {
        padding: 20px;
    }

    .feedback-title {
        font-size: 24px;
    }

    .feedback-description {
        font-size: 14px;
    }

    .feedback-subtitle {
        font-size: 20px;
    }

    .feedback-instructions {
        font-size: 14px;
    }

    .feedback-input-group label {
        font-size: 14px;
    }

    .feedback-input-group input,
    .feedback-input-group select,
    .feedback-input-group textarea {
        font-size: 14px;
        padding: 10px;
    }

    .submit-btn {
        font-size: 16px;
        padding: 10px;
    }

    .rating-box {
        width: 90%; /* Full width on mobiles */
        max-width: 300px; /* But limit to a reasonable max */
        flex-direction: column; /* Stack rating and dropdown */
        align-items: center;
    }

    .star-rating {
        margin-bottom: 10px; /* Add some space */
    }

    .dropdown-container {
        width: 100%;
        align-items: center; /* Center dropdown */
    }

    .dropdown-container select {
        width: 90%; /* Almost full width */
        max-width: 200px; /* Limit dropdown width */
    }
}

/* Small Screens (Extra Small) */
@media (max-width: 480px) {
  .feedback-title {
        font-size: 20px;
    }

    .feedback-description {
        font-size: 12px;
    }
    .feedback-subtitle {
        font-size: 18px;
    }

    .feedback-instructions {
        font-size: 12px;
    }

    .feedback-input-group label {
        font-size: 12px;
    }

    .feedback-input-group input,
    .feedback-input-group select,
    .feedback-input-group textarea {
        font-size: 12px;
        padding: 8px;
    }

    .submit-btn {
        font-size: 14px;
        padding: 8px;
    }
}