html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(-45deg, #70e1f5, #ffd194, #ff7eb3, #65d6ce);
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
    color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    font-weight: normal;
    width: 100%;
    text-align: center;
}

#app {
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    width: 100%;


}

.step {
    display: none;
    width: 90%;
    max-width: 500px;
    height: 100%;
    max-height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    flex-direction: column;


    overflow: hidden;


}

.step.active {
    display: flex;
    flex-direction: column;

}

.step-inner {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    min-height: 0;
    position: relative;
    padding-left: 8px;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: none;
    /* Firefox */
}

.step-inner::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.button-row {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #ffffff30;
    background: rgba(0, 0, 0, 0.3);


}

.form-group {
    margin: 10px 0;
    padding-right: 5px;
}

input,
select,
textarea {
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #fff;
    color: #333;
}

input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    position: relative;
}

.flatpickr-input,
#dob {
    background-color: #fff;
    color: #333;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

#calendarContainer {
    position: relative;

    background-color: #A5158C;
    padding: 8px;
    border-radius: 8px;

}

button {
    background-color: #A5158C;
    color: white;
    border: none;
    cursor: pointer;
    width: auto;
    padding: 10px 20px;
    border-radius: 5px;
}

button:hover {
    background-color: #8f1177;
}

button.active {
    background-color: #fff;
    color: #A5158C;
}

p {
    text-align: justify;
    padding: 0 8px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 4px;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.error {
    color: #ffdddd;
    margin-bottom: 10px;
}

#privacyModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

#privacyModalContent {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    color: #000;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
}

.loading-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top: 6px solid #A5158C;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#loading-overlay p {
    font-size: 18px;
    color: #333;
}