@import url("https://fonts.googleapis.com/css2?family=Poppins&amp;display=swap");

/* General Styles */
.seaform {
    font-family: "Poppins", sans-serif;
    max-width: 950px;
    margin: 0 auto;
    padding: 0 15px;
}

.seaFormHeading {
    text-align: center;
    font-family: "Poppins", sans-serif;
}

/* Slide Styles */
.seaform-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Multiple Choice Styles */
.seaform-answers {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.seaform-answer {
    border-radius: 0 35px 35px 35px;
    background-color: #289be4;
    color: white;
    width: 100%;
    max-width: 14rem;
    height: auto;
    min-height: 7rem;
    transition: all 0.1s;
    border: none;
    font-family: "Poppins", sans-serif;
    font-size: medium;
    margin: 0.5rem;
    cursor: pointer;
    padding: 1rem;
}

.seaform-answer:hover {
    background-color: #4ed7b3;
    transform: scale(1.05);
}

.seaform-answer:active {
    transform: scale(1);
    background-color: #289be4;
}

/* Input Styles */
.seaFormInputs {
    display: flex;
    flex-direction: column;
    gap: 1em;
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
    padding: 1em;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 15px;
}

.label-wrapper {
    margin-bottom: 5px;
}

.input-field-wrapper {
    display: flex;
    flex-direction: column;
}

.input-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.required-asterisk {
    color: red;
    margin-left: 3px;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
    border: 2px solid #289be4;
    box-shadow: none;
    font-family: "Poppins", sans-serif;
    padding: 1em;
    font-size: 16px;
}

.input-wrapper input::placeholder {
    color: #b5b5b5;
    font-family: "Poppins", sans-serif;
    font-size: small;
}

.error-message {
    color: red;
    font-size: 0.8em;
    margin-top: 5px;
}

/* Navigation Styles */
.seaFormBackNextUI {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 0.5rem auto;
    gap: 1rem;
    flex-wrap: wrap;
}

.seaFormBackNextUI a {
    color: #289be4;
    text-decoration: none;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    padding: 9px 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 0.9rem;
    display: inline-block;
    text-align: center;
}

.nextButton, .seaform-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 9px 12px;
    height: auto;
    width: auto;
    border-radius: 4px;
    background-color: #289be4;
    color: white;
    transition: all 0.1s;
    border: none;
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 600px) {
    .seaFormBackNextUI {
        flex-direction: row; /* Change to row to allow back and next buttons to be side by side */
        justify-content: space-between; /* Space out the buttons */
        align-items: center;
    }

    .seaFormBackNextUI a {
        width: auto; /* Allow the back button to size to its content */
        flex: 0 0 auto; /* Don't allow the back button to grow or shrink */
    }

    .nextButton,
    .seaform-submit {
        flex: 1; /* Allow the next/submit button to take up remaining space */
        max-width: 60%; /* Limit the width of the next/submit button */
    }
}

/* Loader Styles */
.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Styles */
.seaFormError {
    color: red;
    text-align: center;
    margin-top: 1em;
}