/* pianoClientForm.css */

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    width: 100%;
}

legend {
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
    width: 100%;
}

form#client-form {
    width: 100%;
}

#FormArea {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 640px;
    position: relative;
    min-height: 400px; /* Adjust as needed */
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
}



#formDots {
    display: flex;
    justify-content: center;
    /* margin-bottom: 20px; */
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
}

.dot.active {
    background-color: #007bff;
}

.QuestionPage {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.QuestionPage.active {
    display: block;
    opacity: 1;
}

.Question {
    /*background-color: #f8f9fa;
    border-radius: 8px;*/
    border-bottom: 1px solid #f6f6f6 !important;
    padding: 20px;
    margin-bottom: 20px;
    border-top:#333 1px;
}



.form-content {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 60px; /* Add space for buttons */
}

.button-container {
    position: absolute;
    bottom: 20px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
}

#nextButton, #backButton, #SubmitForm {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    min-width: 120px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#nextButton:hover, #backButton:hover, #SubmitForm:hover {
    background-color: #0056b3;
}

#nextButton, #SubmitForm {
    align-self: flex-end;
    margin-left: auto; /* Push to the right */
}

#backButton {
    left: 30px;
}

#nextButton:hover, #backButton:hover, #SubmitForm:hover {
    background-color: #0056b3;
}

input[type="text"], input[type="checkbox"] {
    margin-bottom: 10px;
}

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

input[type="checkbox"] {
    margin-right: 5px;
}

label {
    display: block;
    margin-bottom: 5px;
}

/* Defines the grid layout */

.image-grid-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.image-grid-options input[type="radio"] {
    display: none;
}

.image-grid-options label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.image-grid-options label:hover {
    transform: scale(1.05);
}

.image-grid-options img {
    width: 130px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    filter: grayscale(100%) opacity(0.7);
}

.image-grid-options input[type="radio"]:checked + label img {
    border-color: #007bff;
    filter: grayscale(0%) opacity(1);
}

.image-grid-options span {
    margin-top: 10px;
    text-align: center;
}

/* Ensure the grid layout works on smaller screens */
@media (max-width: 768px) {
    .image-grid-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hidden {
    display: none;
}

/* ... (rest of the styles remain unchanged) ... */