body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* Modern sans-serif font */
    max-width: 800px; /* Slightly more compact */
    margin: 20px auto; /* Add margin-top for better spacing */
    padding: 20px;
    background: #eef2f5; /* Lighter, modern background */
    color: #333;
    line-height: 1.6;
}

h1 {
    text-align: center;
    color: #c62828; /* Slightly darker red for impact */
    margin-bottom: 30px;
    font-size: 2.2em;
}

p {
    text-align: center;
    margin-bottom: 25px;
    color: #555;
}

form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* More pronounced, modern shadow */
}

.question {
    margin-bottom: 25px; /* Reduced spacing between questions */
    padding: 0; /* Remove padding, it's handled by form now */
}

.question label {
    display: block;
    margin: 0 0 10px; /* Tighter spacing */
    font-weight: 600; /* Bolder label */
    color: #444;
    font-size: 1.1em;
}

select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px; /* Rounded corners */
    background-color: #f8f8f8;
    font-size: 1em;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%20viewBox%3D%220%200%20292.4%20292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%20197.973L146.2%2057.173%205.4%20197.973H287z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus {
    border-color: #c62828;
    outline: none;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.2);
}

/* Styling for radio buttons not wrapped in an extra div */
.question input[type="radio"] {
    /* Hide default radio button */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    top: 3px; /* Adjust vertical alignment */
    margin-right: 8px; /* Space between radio and label */
    transition: border-color 0.2s ease;
}

.question input[type="radio"]:checked {
    border-color: #c62828; /* Accent color when checked */
}

.question input[type="radio"]:checked::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #c62828; /* Inner dot color */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.question label[for^="single"],
.question label[for^="multiple"],
.question label[for^="jeune"],
.question label[for^="senior"] { /* Labels for radio buttons */
    display: inline-flex; /* Allow label and radio to be inline */
    align-items: center; /* Vertically align text with radio */
    font-weight: normal; /* Normal weight for radio labels */
    margin: 0 15px 0 0; /* Reset margin and add right margin for spacing between options */
    cursor: pointer;
    font-size: 1em;
}
.question br {
    display: none; /* Hide <br> tags used for line breaks in radio buttons */
}


button[type="submit"] {
    background: #c62828;
    color: white;
    padding: 14px 25px; /* Slightly reduced padding */
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    width: 100%;
    margin-top: 30px; /* Increased margin-top */
    transition: background 0.3s ease, transform 0.2s ease; /* Smooth transition */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

button[type="submit"]:hover {
    background: #a52121; /* Darker red on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#result {
    display: none; /* Hide by default */
    margin-top: 30px;
    padding: 25px; /* Adjusted padding */
    background: #e8f5e8;
    border-radius: 12px;
    border-left: 6px solid #4CAF50; /* Slightly thicker border */
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.visa-type {
    font-size: 2em; /* Larger font size */
    font-weight: 700; /* Bolder */
    color: #1a73e8; /* Modern blue */
    margin: 0 0 15px; /* Adjusted margin */
}

.details {
    background: #f7f7f7; /* Lighter background for details */
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0; /* Adjusted margin */
    border: 1px solid #eee;
}

.lien {
    color: #c62828;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.lien:hover {
    text-decoration: underline;
    color: #9c2121;
}

/* New styles from user's latest HTML */
.cout {
    background: #fff3e0;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    font-weight: bold;
    color: #d88000; /* A more prominent color for cost */
    border: 1px solid #ffcc80;
}
.cout small {
    font-weight: normal;
    color: #777;
}

.reset-btn {
    background: #546e7a; /* A neutral, modern grey */
    color: white;
    margin-top: 20px; /* Adjusted margin */
    padding: 12px 20px; /* Slightly more padding */
    font-size: 1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease, transform 0.2s ease;
}

.reset-btn:hover {
    background: #455a64; /* Darker grey on hover */
    transform: translateY(-1px);
}

.full-width-text {
    width: 100%;
    margin-bottom: 20px; /* Add some space below the paragraph */
    padding: 0 15px; /* Add some horizontal padding for better readability */
    box-sizing: border-box; /* Include padding in the width calculation */
    text-align: center; /* Center the text */
}

.full-width-text p {
    margin-bottom: 0; /* Remove default paragraph margin if it's the last child in the div */
    text-align: justify; /* Ensure the text inside the paragraph is justified */
    color: #333; /* Make sure the text color is consistent */
}