@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body {
    /* Restore background image */
    background-image: url('../background.png'); 
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    /* background-color: #ffffff; Remove white background color */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 0; /* Keep vertical padding */
}

.container {
    max-width: 500px; /* Match image proportion */
    width: 90%;
    margin: 40px 20px; /* Increased top/bottom margin */
    padding: 45px; /* Generous padding like image */
    background-color: rgba(255, 255, 255, 0.9); /* Keep semi-transparent white */
    border-radius: 10px; /* Slightly less rounded */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Softer shadow */
    text-align: center;
}

h1 {
    color: #343a40; /* Dark grey/almost black */
    margin-bottom: 40px;
    font-weight: 700;
    font-size: 2em; /* Adjusted size */
}

.form-group {
    margin-bottom: 30px; /* Increased spacing */
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px; /* Standard space below label */
    font-weight: 600; /* Slightly bolder labels */
    color: #495057; /* Softer dark grey */
    font-size: 0.9em;
}

/* Label for radio groups */
.form-group > label:first-child {
    margin-bottom: 15px; /* More space below group label */
    font-weight: 700; /* Bold for main group labels */
}


.form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da; /* Lighter border */
    border-radius: 8px; /* Match image rounding */
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="text"]:focus {
    border-color: #8a6d5f; /* Use button color for focus */
    box-shadow: 0 0 0 2px rgba(138, 109, 95, 0.2); /* Subtle focus ring */
    outline: none;
}

/* --- Simplified Radio Button Styling --- */

.form-group .radio-options label {
    display: inline-block; /* Horizontal layout */
    margin-right: 25px; /* Space between options */
    font-weight: 400; /* Regular weight */
    color: #495057;
    cursor: pointer;
    font-size: 0.95em;
    position: relative;
    padding-left: 0; /* Remove padding for custom radio */
}

.form-group input[type="radio"] {
    opacity: 1; /* Show default radio */
    position: static; /* Use default positioning */
    margin-right: 6px; /* Space between radio and text */
    vertical-align: middle; /* Align radio with text */
    /* Optional: scale slightly if needed */
    /* transform: scale(1.1); */
}

/* Remove the custom radio styles */
.radio-label::before,
.radio-label::after {
    display: none;
}

/* Remove the span wrapper styling if it exists */
.form-group .radio-options label span.radio-label {
    display: inline; /* Let span behave normally */
    margin: 0;
    padding: 0;
}

/* --- End Radio Button Styling --- */


/* --- File Input Styling --- */
.form-group input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da; /* Consistent border */
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.9em;
    background-color: #ffffff; /* White background for input */
    cursor: pointer;
    color: #495057; /* Standard text color */
}

/* Style the button part of the file input (keep it simple) */
.form-group input[type="file"]::file-selector-button {
    font-family: inherit;
    font-size: 0.9em;
    padding: 6px 12px;
    margin: -3px 10px -3px -5px; /* Adjust margin slightly */
    border: 1px solid #adb5bd;
    border-radius: 4px;
    background-color: #e9ecef;
    color: #495057;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-group input[type="file"]::file-selector-button:hover {
    background-color: #dee2e6;
}

/* --- End File Input Styling --- */


button[type="submit"] {
    display: inline-block;
    width: auto;
    min-width: auto; /* Remove min-width */
    padding: 12px 35px; /* Adjust padding to match image */
    background-color: #8a6d5f; /* Match image color */
    color: white;
    border: none;
    border-radius: 50px; /* Fully rounded pill shape */
    cursor: pointer;
    font-size: 1em;
    font-weight: 500; /* Medium weight */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button[type="submit"]:hover {
    background-color: #745a50; /* Darker shade */
    transform: translateY(-1px); /* Subtle lift */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.flashes {
    list-style: none;
    padding: 12px 18px;
    margin-bottom: 25px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    text-align: left;
    font-size: 0.9em;
}

.flashes li {
    margin: 0;
}

#meal-choice-group {
    display: none;
}

/* Styling for dynamically added guest blocks */
.guest-block {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #fdfdfd; /* Very light grey background for block */
}

.guest-block h4 {
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    color: #6c757d;
}

.guest-block hr {
    display: none; /* Hide the <hr> added in JS, use border instead */
}

/* Language Switcher Styles */
.language-switcher {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 0.9em;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lang-link {
    color: #007bff; /* Standard link blue */
    text-decoration: none;
    padding: 0 3px;
}

.lang-link.active {
    color: #343a40; /* Darker color for active/non-link language */
    font-weight: bold;
    text-decoration: none;
}

.lang-link:not(.active):hover {
    text-decoration: underline;
}

/* Admin Link Container Style */
.admin-link-container {
    margin-top: 30px;
    text-align: center;
    font-size: 0.85em;
}

.admin-link-container a {
    color: #6c757d; /* Muted grey color */
    text-decoration: none;
}

.admin-link-container a:hover {
    color: #343a40;
    text-decoration: underline;
}
