.input-data {
    display: flex;
    flex-direction: column;
    color: var(--color-3);
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.step-counter-container {
    width: 100%;
    margin-bottom: 8px;
    text-align: right;
}

.step-counter {
    color: var(--color-2);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

.progress-bar {
    width: 100%;
    border-radius: 5px;
    background-color: rgb(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}
.progress {
    width: 25%;
    height: 20px;
    background-color: var(--color-2);
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.signup-form-step {
    display: none;
    width: 100%;
}
.signup-form-step.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
.signup-form-step p {
    color: white;
    font-size: 16px;
    padding: 10px;
}

.step-title {
    color: var(--color-3);
    font-size: 36px;
}

.login-link-container {
    margin-top: 8px;
    margin-bottom: 8px;
}

.login-link-text {
    color: white;
    font-size: 14px;
    text-align: center;
    margin: 0;
    padding: 0;
}

.login-link {
    color: var(--color-2);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.login-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.error-message {
    color: var(--color-1);
    font-size: 12px;
}

/* Keep buttons at the same height */
.button-container {
    display: flex; /* Aligns items horizontally */
    align-items: center; /* Ensures items are vertically centered */
    justify-content: space-between; /* Space between buttons */
    gap: 10px; /* Optional: Adds space between buttons */
}

/* previous buttons */
.previous-button {
    background-color: transparent;
    color: var(--color-3);
    border: 0px;
    margin-right: auto; /* Push the button to the left */
    scale: calc(31 / 48);
    height: fit-content;
    width: fit-content;
}
.previous-button:hover {
    color: var(--color-2);
}
.previous-button:active {
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.5)); /* Add shadow to SVG */
    transform: translateY(2px); /* Slightly "push" the button down */
}

/* Password toggler */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}
.toggle-password {
    color: var(--color-3);
    min-width: 60px; /* Ensure minimum width for both states */
    margin-left: 8px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 0.9em;
}
.toggle-password:hover {
    text-decoration: underline;
}

/* Checkbox data */
.checkbox-data {
    position: relative;
    display: flex;
    align-items: center;
}
.checkbox-data label {
    font-size: 16px;
    color: white;
    border-color: var(--color-3);
}
.checkbox-data input {
    outline: 0px;
    width: fit-content;
    margin-right: 24px;
    color: white;
}
.checkbox-data input:checked {
    accent-color: var(--color-2); /* Modern approach */
    outline: 0px;
}
.checkbox-data a{
    color: white;
}
.checkbox-data input.error-input {
    outline: 1px solid red; /* Adds a red border */
    background-color: #ffe6e6; /* Adds a light red background */
}


/* Privacy modal */
.background-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Ensures it overlays everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    overflow: hidden; /* Prevent scrolling on the entire page */
}
.modal {
    position: relative;
    display: flex;
    background-color: var(--color-7-dark); /* Dark grey for the modal window */
    margin: 10% auto; /* Center vertically and horizontally */
    padding-top: 48px;
    padding-right: 24px;
    padding-bottom: 24px;
    padding-left: 24px;
    border-radius: 8px; /* Rounded corners */
    width: 80%;
    max-width: 600px;
    max-height: 70vh; /* Limit modal height */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow effect */
    overflow: hidden; /* Prevent scrolling the grey container */
}
.close-modal {
    position: absolute; /* Position relative to the modal */
    display: flex;
    top: 10px;
    right: 10px; /* Position the "X" in the top-right corner */
    color: var(--color-6); /* White close button */
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2; /* Ensure it's above the content */
}
.close-modal:hover,
.close-modal:focus {
    color: var(--color-2); /* Highlight "X" on hover or focus */
    text-decoration: none;
}
.modal-content {
    background-color: white; 
    display: flex;
    padding: 24px;
    color: black;
    border-radius: 8px; /* Rounded corners */
    max-height: calc(70vh - 40px); /* Adjust height for content */
    overflow-y: scroll; /* Enable scrolling for long content */
}

/* Select2 container */
.select2-container .select2-selection--single {
    margin-top: 10px; /* Space between input and previous element */
    background-color: var(--color-4-dark); /* Match input styles */
    color: white; /* Text color */
    border: 2px solid white; /* Border style */
    border-radius: 5px; /* Rounded corners */
    height: 40px; /* Adjust height */
    padding: 5px 10px; /* Inner spacing */
    box-sizing: border-box; /* Prevent overflow */
    transition: border 0.3s ease; /* Smooth transition */
}
.select2-container .select2-selection--single:hover,
.select2-container .select2-selection--single:focus {
    border-color: var(--color-3); /* Highlight border */
}
/* Dropdown results */
.select2-container .select2-results__option {
    background-color: var(--color-4-dark); /* Match input styles */
    color: white; /* Text color */
    padding: 8px; /* Spacing */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}
/* Highlight selected option */
.select2-container .select2-results__option--highlighted {
    background-color: var(--color-3) !important; /* Highlight background */
    color: white !important; /* Text color */
}
.select2-container .select2-results__option::selection {
    background-color: var(--color-3); /* Highlight background */
    color: white; /* Text color */
}
/* Placeholder styling */
.select2-container .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.6); /* Light text */
    font-style: italic; /* Italicize placeholder */
}
/* Selected item */
.select2-container .select2-selection__rendered {
    color: white; /* Text color */
    padding-left: 10px; /* Inner spacing */
}

/* Selected languages container */
.selected-languages-container {
    display: flex; /* Arrange selected languages in a row */
    flex-wrap: wrap; /* Allow wrapping to a new line if needed */
    gap: 10px; /* Spacing between cards */
    margin-bottom: 15px; /* Space bellow the container */
    padding: 24px; /* Padding inside the container */
    border-radius: 15px;
    background-color: var(--color-2-dark);
}
/* Individual language card */
.selected-language {
    background: var(--color-2); /* Primary color for the card */
    color: black; /* Text color */
    padding: 10px 15px; /* Inner spacing */
    border-radius: 8px; /* Rounded corners */
    display: flex; /* Flex layout for text and close button */
    align-items: center; /* Center content vertically */
    justify-content: space-between; /* Space between text and button */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transitions */
}

/* Hover effect on the card */
.selected-language:hover {
    /* background: var(--color-1-dark); Darker color on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Enhance shadow on hover */
}
/* Close button (X) */
.selected-language button {
    background: transparent; /* No background */
    border: none; /* Remove borders */
    color: white; /* Match text color */
    font-size: 1.2rem; /* Larger size for visibility */
    margin-left: 10px; /* Space between text and button */
    cursor: pointer; /* Pointer cursor on hover */
    transition: color 0.2s ease; /* Smooth color change */
}
/* Hover effect on close button */
.selected-language button:hover {
    color: var(--color-1); /* Highlight color for the close button */
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .selected-language {
        flex: 1 1 calc(50% - 10px); /* Half-width cards on smaller screens */
    }
}

/* Signup statis message */
.status-message {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    display: none; /* Initially hidden */
}
.status-message.success {
    border-color: green;
    color: green;
    background-color: #e6ffe6;
}
.status-message.error {
    border-color: red;
    color: red;
    background-color: #ffe6e6;
}

/* Error container to position and style error messages */
.error-container {
    margin-bottom: 15px;
    text-align: center; /* Center-align the messages */
}
