/* --- General Body & Layout --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.header h2 {
    color: #0056b3;
    margin-bottom: 5px;
}

/* --- Forms & Inputs --- */
.form-step, fieldset {
    border: none;
    padding: 0;
    margin-bottom: 25px;
}

legend {
    font-size: 1.4em;
    font-weight: 600;
    color: #0056b3;
    padding-bottom: 10px;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="file"],
input[type="date"], /* AMENDMENT: Added this to style the date picker */
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
    border-color: #007bff;
    outline: none;
}

button, .button-primary {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

button:hover, .button-primary:hover {
    background-color: #0056b3;
}

/* --- Special Components --- */
.radio-choice {
    display: block;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
}

/* --- Thank You Page --- */
.thank-you-note {
    text-align: center;
}

.registration-id {
    font-size: 2.5em;
    font-weight: 700;
    color: #28a745;
    background-color: #e9f5ec;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    margin: 10px 0;
}

.important-note {
    font-size: 1.1em;
    color: #dc3545;
}

/* --- Modals --- */
.modal {
    /* Styles for notification pop-ups */
}

/* --- Style for inline room occupants --- */
.room-occupants-inline {
    display: flex;
    gap: 20px; /* Adds space between the fields */
    align-items: flex-end; /* Aligns items to the bottom */
}
.room-occupants-inline .occupant-form {
    flex: 1; /* Allows fields to share the space */
    margin-bottom: 0;
}
.room-occupants-inline .occupant-form .form-fields,
.room-occupants-inline .room-option-container .form-fields {
    margin-bottom: 0;
}
/* Adjusts the width of the dropdown container */
.room-occupants-inline .room-option-container {
    flex-basis: 220px; /* Give the select dropdown a fixed base width */
    flex-grow: 0;
}