.confirmSection {
    width: 100%;
    height: 100vh;
    display: flex;
    overflow-y: auto;
    position: fixed;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    bottom: -120vh;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: bottom 0.3s ease-in-out;
}

.confirmSection.finalConfirmation {
    bottom: 0;
}

.confirmSection .confirmAnswers {
    width: 80%;
    display: grid; /* Use grid layout */
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 10px; /* Spacing between columns */
    padding: 1em;
    margin-top: 15vh;
    background: whitesmoke;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 8px;
}

/* Adjust item to align label and input on the same line */
.confirmSection .confirmAnswers .answerItem {
    display: flex;
    flex-direction: column; /* Column layout for label and input */
    width: 100%; /* Full width */
}

.confirmSection .confirmAnswers h6 {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 3px; /* Reduced space between label and field */
}

/* Styling for inputs */
.confirmSection .confirmAnswers input[type="text"] {
    width: 90%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #dedede;
    color: #333;
}

/* Button styles */
.confirmSection .buttonContainer {
    display: flex;
    justify-content: center; /* Center buttons */
    width: 100%; /* Full width of parent */
    margin-top: 20px; /* Space above buttons */
}

.btn-return,
.btn-confirm {
    padding: 10px 20px;
    margin: 10px 5px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-return {
    background-color: #f0ad4e;
    color: #fff;
}

.btn-return:hover {
    background-color: #ec971f;
}

.btn-confirm {
    background-color: #5cb85c;
    color: #fff;
}

.btn-confirm:hover {
    background-color: #4cae4c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .confirmSection .confirmAnswers {
        grid-template-columns: 1fr; /* Stack items on smaller screens */
        width: 90%; /* Adjust width for mobile */
    }

    .btn-return,
    .btn-confirm {
        width: 100%; /* Full width buttons on mobile */
        margin: 5px 0; /* Spacing for mobile */
    }
}
