/* General styles for all devices */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header h1 {
    font-size: 22px; /* Replace X with your desired font size */
}

.form-section {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.form-column {
    flex: 1;
    margin-right: 10px;
}

.form-column:last-child {
    margin-right: 0;
}

input[type="text"], textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    height: 100px;
    resize: vertical;
}

.file-upload {
    display: inline-block;
    padding: 8px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.file-upload:hover {
    background-color: #45a049;
}

.section-header {
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: #333;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.sample-images {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.sample-image {
    max-width: 30%;
    height: auto;
    margin: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.sample-image:hover {
    border-color: #4CAF50;
}

.assessment-container {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.main-header {
    color: #2E7D32;
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
}

.sub-header {
    color: #8B0000;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
}

.bold-text {
    font-weight: bold;
    color: #444;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.data-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.disclaimer {
    background-color: #FFEB3B;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

/* Review Section Styles */
#review-section {
    margin-top: 40px;
}

#review-stars input[type="radio"] {
    display: none;
}

#review-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-direction: row-reverse; /* Ensure the stars appear in the correct order */
    direction: ltr; /* Maintain left-to-right text direction */
}

#review-stars-label {
    display: block;
	color: #91004B;
    text-align: center;
    margin-bottom: 10px; /* Adjust the spacing below the label as needed */
}
#review-stars label {
    color: #cccccc; /* Set default star color to white */
    text-shadow: 0 0 1px #000; /* Add a slight shadow to make stars visible on light backgrounds */
}

#review-stars input[type="radio"]:checked ~ label,
#review-stars label:hover,
#review-stars label:hover ~ label {
    color: #91004B; /* Highlight color on hover */
    cursor: pointer;
}

.rating-info {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

@media (min-width: 769px) {
    #review-stars label {
        font-size: 48px; /* Larger star size for desktop */
    }
    #review-stars {
        gap: 15px; /* Increase gap between stars for better spacing */
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.5em; /* Adjust header font size for mobile */
        text-align: center; /* Optional: Center the text on mobile */
    }

    #review-section h2 {
        font-size: 1.5em; /* Adjust header font size for review section on mobile */
        text-align: center; /* Center-align the header */
    }

    #review-stars {
        gap: 8px; /* Slightly reduce the space between stars on mobile */
    }

    #review-stars label {
        font-size: 34px; /* Reduce the star size on mobile */
    }

    #review-comments {
        width: 100%; /* Make the comments field take the full width of its container */
        height: 150px; /* Increase the height of the comments field */
    }

    .form-row {
        display: block; /* Stack the elements vertically */
    }

    .form-column {
        width: 100%; /* Make each column take up the full width */
        margin-bottom: 15px; /* Add some space between stacked columns */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2em; /* Further adjust header font size for very small screens */
    }

    #review-section h2 {
        font-size: 1.2em; /* Further adjust review section header font size for very small screens */
    }

    #review-stars {
        gap: 6px; /* Further reduce space between stars on very small screens */
    }

    #review-stars label {
        font-size: 32px; /* Further reduce the star size on very small screens */
    }

    input[type="submit"] {
        width: 100%; /* Make submit button full width on small screens */
        padding: 12px; /* Adjust padding for better tap targets */
    }

    #review-comments {
        height: 200px; /* Further increase the height for very small screens */
    }

    .form-column {
        width: 100%; /* Ensure full width for very small screens */
    }
     .rating-info {
       font-size: 0.7em;
    }
}

