body {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  margin: 0;
  background-color: #e8e8e8; /* Light grey background */
  color: #333;
  overflow-y: scroll; /* Ensure scrolling if content is long */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff; /* White background for the main content area */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh; /* Make sure container takes at least full viewport height */
    position: relative;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap; /* Allow header items to wrap on smaller screens */
}

.header-left {
    position: relative;
    display: flex; /* Use flexbox to align the SVG */
    align-items: center;
}

/* Style for the SVG logo */
.header-left svg {
    height: 80px; /* Adjust height as needed */
    width: auto; /* Maintain aspect ratio */
    margin-right: 20px; /* Space between logo and nav if needed */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between main sections */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    /* margin-right: 20px; */
}

nav ul li {
    margin-right: 15px;
    font-size: 0.9em;
    cursor: pointer;
    padding: 5px 0; /* Add some padding for the bottom border */
    border-bottom: 2px solid transparent; /* Default border */
    transition: border-bottom 0.3s ease;
    white-space: nowrap; /* Prevent wrapping */
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li.nav-active {
    border-bottom-color: #00814d; /* Red/Pink border for active item */
    font-weight: bold;
    color: #333; /* Ensure color is not greyed out */
}

nav ul li.nav-pink {
    color: #00814d; /* Pink color for "Over ons" */
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icons */
}

.header-icons .icon {
    font-size: 1.2em;
    cursor: pointer;
}

.header-icons .lang-switch {
    font-size: 0.9em;
    color: #555;
    cursor: pointer;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 3px;
    overflow: hidden; /* Contains the input and button borders */
}

.search-box input[type="text"] {
    padding: 5px;
    border: none; /* Remove input border */
    outline: none; /* Remove input outline */
    font-size: 0.9em;
}

.login-button {
    background-color: #00814d; /* Pink background */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-button span {
    font-size: 1.2em;
}

/* --- Main Content and Background Image --- */
main {
    padding: 0; /* Remove default padding */
    position: relative;
    background-image: url('/a/018f7246-dfc5-42b2-909b-49b9fa5a3221'); /* Use the provided image */
    background-size: cover; /* Cover the entire area */
    background-position: center; /* Center the background image */
    min-height: calc(100vh - 60px); /* Ensure main takes up remaining viewport height (adjust 60px based on header height) */
    display: flex; /* Use flexbox to center content */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
}

.main-content {
    padding: 20px; /* Add back padding inside the content area */
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background for readability */
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    /* Ensure content is above the background image */
    position: relative;
    z-index: 1;
}

/* --- Modal Styling --- */
.content {
    position: relative; /* Or absolute/fixed depending on desired behavior */
    width: 100%;
    height: 100%; /* Adjust as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Add padding to the content wrapper */
    box-sizing: border-box; /* Include padding in width calculation */
}

.modal {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden; /* Clip content, especially header/tabs corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px; /* Reduced modal width for a smaller card look */
    width: 100%; /* Make it responsive */
    z-index: 10; /* Ensure it's above other content */
    position: relative; /* Needed for absolute positioning of close button if used */
    margin: auto; /* Center the modal if using flexbox/grid on parent */
    transition: transform 0.2s ease-in-out; /* Optional: Add a slight transition */
}

.modal-header {
    background-color: #00814d; /* Pink from Itsme logo */
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2em;
}

.modal .close-button {
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px; /* Make clicking easier */
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    background-color: #f8f8f8; /* Light grey background for tabs area */
    padding-left: 20px; /* Align tabs with modal body padding */
    padding-right: 20px; /* Balance padding */
}

.modal-tabs button {
    flex-grow: 1; /* Allow tabs to take equal space */
    padding: 10px 15px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1em;
    color: #555;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent; /* Default border */
    font-weight: normal;
    text-align: center; /* Center tab text */
}

.modal-tabs button.active {
    color: #00814d; /* Pink color */
    border-bottom-color: #00814d; /* Pink underline */
    font-weight: bold;
}

/* Progress Bar and Text */
.progress-area {
    width: calc(100% - 40px); /* Take modal width minus padding */
    margin: 10px 20px 0 20px; /* Add some margin above and side padding */
    display: flex; /* Use flexbox to align bar and text */
    align-items: center; /* Vertically center items */
    gap: 10px; /* Space between bar and text */
    position: relative; /* Needed for positioning within modal body flow */
    background-color: #e9ecef; /* Light grey background for the container */
    border-radius: 4px; /* Slightly round corners */
    overflow: hidden; /* Hide overflowing bar */
    height: 15px; /* Increased height for thickness */
    padding: 0; /* Remove padding from container */
}

/* The actual bar that fills */
.progress-area .progress-bar {
    height: 100%; /* Fill the height of the container */
    width: 0%; /* Starts empty */
    background-color: #28a745; /* Green color for progress */
    transition: width 0.4s ease-in-out; /* Smooth transition for width changes */
    position: absolute; /* Position absolutely within the container */
    top: 0;
    left: 0;
    z-index: 1; /* Ensure bar is behind text if text overlaps */
}

/* The text showing percentage - Hidden as requested */
.progress-area .progress-text {
    display: none; /* Hide the percentage text */
}

.progress-container {
}

.modal-body {
    padding: 20px; /* Padding around the content inside the body */
}

.modal-body-inner {
    display: flex;
    gap: 30px; /* Space between image and form */
    align-items: flex-start; /* Align items to the top */
}

.modal-image {
    flex-basis: 200px; /* Give the image container a base width */
    flex-shrink: 0; /* Prevent shrinking */
    text-align: center; /* Center the image if it's smaller */
}

.modal-image img {
    max-width: 100%; /* Ensure image is responsive */
    height: auto;
}

.modal-form-content {
    flex-grow: 1; /* Allow the form content to take remaining space */
}

.form-explanation {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}

/* Style for the attention box */
.attention-box {
    background-color: #f8d7da; /* Light red background */
    color: #721c24; /* Dark red text color */
    border: 1px solid #f5c6cb; /* Red border */
    border-radius: 4px; /* Slightly rounded corners */
    padding: 15px; /* Padding inside the box */
    margin-bottom: 20px; /* Space below the box */
}

.attention-box p {
    margin: 0; /* Remove default paragraph margin */
    color: #721c24; /* Ensure text color is applied to the paragraph */
}

/* --- Multi-step Form Styling --- */
.form-step {
    display: none; /* Hide all steps by default */
    flex-direction: column;
    gap: 15px; /* Space between form groups within a step */
}

.form-step.active {
    display: flex; /* Show the active step */
}

#verification-form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between steps and navigation */
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9em;
    color: #333; /* Darker label color */
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"] /* Added date input */
{
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px; /* Slightly rounded corners */
    font-size: 1em;
    width: 100%; /* Make input fill the container */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px; /* Space above navigation buttons */
}

.prev-button,
.next-button,
.submit-button {
    background-color: #00814d; /* Pink background */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    flex-grow: 1; /* Make buttons fill space if only one */
    text-align: center;
}

.prev-button {
    background-color: #6c757d; /* Grey for previous button */
    margin-right: 10px; /* Space between prev and next */
}

.prev-button:hover {
    background-color: #5a6268;
}

.next-button:hover,
.submit-button:hover {
    background-color: #00814d; /* Darker pink on hover */
}

/* Success and Error Messages */
#success-message, #error-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

#success-message {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #c3e6cb;
}

#success-message h3, #error-message h3 {
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px;
    }

    .header-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    nav ul {
        flex-wrap: wrap; /* Allow nav items to wrap */
        justify-content: flex-start;
        width: 100%;
    }

    nav ul li {
        margin-right: 10px;
        margin-bottom: 5px;
    }

    .header-icons,
    .search-box,
    .login-button {
        width: 100%; /* Make header elements full width */
        justify-content: center; /* Center text/icons */
    }
    .search-box {
        justify-content: space-between; /* Keep input and button separate */
    }
    .search-box input[type="text"] {
        flex-grow: 1; /* Allow input to take space */
    }

    .modal {
        width: 95%; /* Maintain wider modal on smaller screens */
        max-width: none; /* Remove max-width constraint on small screens */
    }

    .modal-tabs {
        padding-left: 10px; /* Adjust tab padding for smaller screens */
        padding-right: 10px;
    }

    .modal-body {
        padding: 15px; /* Slightly reduce padding on small screens */
    }

    .modal-body-inner {
        flex-direction: column; /* Stack image and form vertically on smaller screens */
        align-items: center; /* Center stacked items */
    }

    .modal-image {
        flex-basis: auto; /* Remove fixed base width */
        margin-bottom: 20px; /* Add space below the image */
    }

    .modal-form-content {
        width: 100%; /* Allow form content to take full width */
    }

    .form-navigation {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px; /* Space between stacked buttons */
    }
    .prev-button {
        margin-right: 0; /* Remove margin between buttons */
    }
}

@media (max-width: 768px) {
    .progress-area {
         width: calc(100% - 30px); /* Adjust width for smaller padding */
         margin: 10px 15px 0 15px;
    }
}