:root {
    --MBM-orange: #ff6600;
    --MBM-white: #ffffff;
    --MBM-dark: #1a1a1a;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--MBM-white); /* Light background */
    color: var(--MBM-dark); /* Dark text */
    line-height: 1.6;
    overflow-x: hidden;
}



.form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9f9f9; /* Slightly off-white background */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--MBM-dark);
    text-align: center;
}

p {
    margin-bottom: 1rem;
    text-align: center;
    color: #333; /* Slightly lighter dark text */
}

form fieldset {
    border: none;
    margin-bottom: 1.5rem;
    padding: 0;
}

form legend {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--MBM-orange); /* MBM orange */
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--MBM-dark); /* Dark text */
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form textarea {
    width: 100%;
    border: 1px solid #ccc; /* Light border */
    border-radius: 4px;
    background-color: var(--MBM-white); /* Light input background */
    color: var(--MBM-dark); /* Dark input text */
    font-size: 1rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

form input[type="number"] {
    width: auto;
}

form input[type="checkbox"] {
    margin-right: 0.5rem;
}

form textarea {
    resize: vertical;
}

form button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: var(--MBM-orange); /* MBM orange */
    color: var(--MBM-white); /* White text on button */
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #e55a00; /* Slightly darker orange */
}

.note {
    font-size: 0.9rem;
    color: #666; /* Neutral gray for notes */
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

a {
    color: var(--MBM-orange); /* MBM orange */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.legend {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    text-align: left;
}

.required-orange {
    color: var(--MBM-orange);
    font-weight: bold;
}

.required-dark {
    color: var(--MBM-dark);
    font-weight: bold;
}

.personal-data .row {
    display: flex;
    margin-bottom: 1rem;
}

.personal-data .row label {
    flex: 1;
    font-weight: 500;
}

.personal-data .row input {
    flex: 2;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: var(--MBM-white);
    color: var(--MBM-dark);
}

.compact-personal-data {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.compact-personal-data label {
    flex-basis: 100%; /* Ensure labels take full width */
    font-weight: 500;
    color: var(--MBM-dark);
}

.compact-personal-data input {
    flex: 1 1 200px; /* Allow inputs to grow, shrink, and have a minimum width of 200px */
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: var(--MBM-white);
    color: var(--MBM-dark);
}

.compact-personal-data input::placeholder, textarea::placeholder, input::placeholder {
    color: #666; /* Neutral gray for placeholders */
    padding: 0.5rem;
    font-style: italic;
}

form input[type="number"]::placeholder {
    color: #666; /* Neutral gray for placeholders */
    font-style: italic;
}

@media screen and (max-width: 768px) {
    .compact-personal-data {
        flex-direction: column; /* Stack fields on small screens */
    }

    .compact-personal-data input {
        flex: none; /* Ensure full width for inputs on small screens */
    }
}



.footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--MBM-dark);
    color: var(--MBM-white); /* Light text for copyright and "Webdesign by" */
}

.footer a {
    color: var(--MBM-white);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .divider {
    color: var(--MBM-orange);
    margin: 0 0.5rem;
}
