/* General layout and spacing */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #f0f2f5;
  color: #333;
}

header {
  background: #d3cece;
  color: rgb(7, 7, 7);
  padding: 1em;
  text-align: center;

  /* add this so the select can be absolutely positioned relative to the header */
  position: relative;
}

#languageSwitcher {
  position: absolute;
  top: 50%;                  /* vertically center in the header */
  right: 1em;                /* distance from the right edge */
  transform: translateY(-50%);

  width: 6rem;               /* adjust as needed to fit “Français” */
  padding: 0.25rem;
  font-size: 0.9rem;
}


.container {
  max-width: 800px;
  margin: 2em auto;
  background: white;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
  border-bottom: 2px solid #eee;
  padding-bottom: 0.25em;
  margin-bottom: 1em;
}

label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.5em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Table formatting */
table {
  width: 100%;
  margin-bottom: 1em;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #ccc;
  padding: 0.5em;
  text-align: left;
}

th {
  background: #f4f4f4;
}

/* Buttons */
button {
  background: #f5a83a;
  color: rgb(7, 7, 7);
  border: none;
  padding: 0.75em 1.5em;
  border-radius: 4px;
  cursor: pointer;
  margin: 1.75em 1em;
}

.button:hover {
  background: #f5a83a;
}

/* Progress bar */
.progress-bar {
  width: 100%;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1em;
}

.progress-bar-inner {
  height: 20px;
  background: #f5a83a ;
  width: 0;
  transition: width 0.3s ease;
}

/* ✅ FIX: Align checkboxes and radios nicely beside their labels */
.option-block {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-bottom: 1.5em;
}

.option-block label {
  font-weight: normal;
  display: inline-flex;
  align-items: center;
}

.option-block input[type="radio"],
.option-block input[type="checkbox"] {
  margin-right: 0.5em;
  vertical-align: middle;
}

.checkbox-group.disabled {
  opacity: 0.5;
  pointer-events: none;
}

#navContainer {
  display: flex;
  justify-content: flex-start; /* or flex‑start, flex‑end, as you prefer */
  gap: 1rem;               /* the space between each button */
}

.step {
  display: none;
}
.step.active {
  display: block;
}

.logo {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: 70px;
  height: auto;
}