html {
  min-height: 100vh;
}

.digiforma-page-content {
  width: 100%;
  overflow-x: hidden;
}

input.text,
input.title,
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="text"],
select,
textarea {
  background-color: #fff;
  border: 1px solid #bbb;
  padding: 2px;
  color: #4e4e4e;
}

input.digiforma-form-input {
  padding: 12px 10px;
}

label.digiforma-form-label {
  margin-bottom: 10px;
}

body {
  height: 100%;
  overflow-x: hidden;
}

.hidden {
  display: none;
}

.financing-hidden {
  display: none;
}

label:has(select[class*="financing-hidden"]) {
  display: none;
}

label:has(input[type*="hidden"]) {
  display: none;
}

.formation-body-list {
  list-style-type: "► ";
}

div.formation-info li,
div.formation-info p {
  font-size: 16px;
}

.formation-body-list ::marker {
  font-size: 14px;
}

.formation-body-objective-list {
  list-style-type: "✔ ";
}

.formation-card-details-list {
  padding-left: 18px;
  list-style-type: "► ";
}

.formation-card-details-list li {
  font-size: 16px;
}

.formation-page h1.digiforma-program-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--brand-color);
}

.infotitle {
  color: var(--brand-color);
  font-size: 28px;
  font-weight: bold;
}

.infosubtitle {
  color: var(--brand-color);
  font-size: 20px;
  font-weight: bold;
}

.header {
  color: var(--brand-text-color);
  background-color: var(--brand-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.header button {
  border: 2px solid white;
  border-radius: 4px;
  background-color: var(--brand-color);
  color: var(--brand-text-color);
  padding: 12px 24px;
  height: 100%;
}

.header button:hover {
  border: 2px solid white;
  border-radius: 4px;
  background-color: white;
  color: var(--brand-color);
  padding: 12px 24px;
  height: 100%;
}

.filter-search {
  position: relative;
  width: 60%;
}

input.filter-input {
  background: #fff;
  border: none;
  border-radius: 5px !important;
  height: 100%;
  min-width: 0;
  outline: none;
  padding: 12px 24px !important;
  width: 100%;
  width: -moz-available;
  width: -webkit-fill-available;
  width: fill-available;
}

.digiforma-container {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, 300px);
  grid-auto-rows: 1fr;
  margin-bottom: 15px;
  margin-top: 15px;
  padding: 0px 24px;
}

.program .card {
  align-items: stretch;
  border: 1px solid hsla(0, 0%, 75%, 0.314);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  box-sizing: border-box;
  transition: transform 0.2s, box-shadow 0.2s;
}

.program .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-body {
  height: 400px;
  position: relative;
  padding-bottom: 30px;
}

.thumbnail {
  object-fit: cover;
  width: 100%;
}

.card-presentation {
  margin-bottom: 12px;
}

.card-title {
  margin-top: 4px;
  margin-bottom: 4px;
  font-stretch: condensed;
  font-size: medium;
  font-weight: bold;
  color: black;
  z-index: 10;
}

.card-subtitle {
  color: darkgray;
  margin-top: 4px;
  margin-bottom: 2px;
  font-size: 14px;
}

.card-thumbnail {
  min-width: 300px;
  min-height: 200px;
  width: 300px;
  height: 200px;
}

.card-info {
  padding: 6px;
}

.card-details {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
  font-size: medium;
  position: absolute;
  bottom: 0;
  z-index: 10;
  color: black;
}

.card-desc {
  color: darkgray;
  margin-top: 4px;
  margin-bottom: 2px;
  font-size: small;
}

.detail-tag {
  align-items: center;
  display: flex;
  margin-bottom: 1em;
  margin-right: 2em;
  max-width: 100%;
  gap: 4px;
}

.details-icon {
  width: 16px;
  height: 16px;
}

.form-progress-bar {
  height: 8px;
  background: linear-gradient(
    to right,
    var(--brand-color),
    var(--brand-text-color)
  );
  border: 3px solid white;
  width: 0;
  animation: progressAnimation 0.5s ease-in-out;
}

@keyframes progressAnimation {
  from {
    width: var(--old-progress);
  }
  to {
    width: var(--progress);
  }
}

@keyframes FadeIn {
  0% {
    opacity: 0;
  }

  60% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.digiforma-form {
  display: flex;
  flex-direction: column;
}

.question-set {
  display: flex;
  flex-direction: column;
}

.question-set label {
  animation: FadeIn 0.2s linear;
  animation-fill-mode: both;
}

label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 50vw;
}

label * {
  min-width: 50vw;
  padding: 12px 10px;
  border-radius: 5px !important;
  width: 100%;
}

.question-set *:nth-child(1) {
  animation-delay: 0.1s;
}

.question-set *:nth-child(2) {
  animation-delay: 0.2s;
}

.question-set *:nth-child(3) {
  animation-delay: 0.3s;
}

.question-set *:nth-child(4) {
  animation-delay: 0.4s;
}

.question-set *:nth-child(5) {
  animation-delay: 0.5s;
}

.question-set *:nth-child(6) {
  animation-delay: 0.6s;
}

.question-set *:nth-child(7) {
  animation-delay: 0.7s;
}
.digiforma-form-container {
  background: linear-gradient(
    white,
    color-mix(in srgb, var(--brand-color) 20%, transparent)
  );
  color: black;
  align-items: center;
  justify-items: center;
  gap: 10px;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  padding-bottom: 24px;
}

.info-logo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #efefef;
  padding: 0px 6px;
  border-radius: 50%;
  color: var(--brand-color);
}

.digiforma-form-button {
  padding: 12px;
  background-color: var(--brand-color);
  color: var(--brand-text-color);
  border-radius: 12px;
  width: fit-content;
  align-self: center;
  margin-top: 18px;
}

.digiforma-form-ending {
  max-width: 50vw;
}

select {
  background-color: white;
}

.digiforma-form option {
  padding: 12px;
}

.formation-page {
  display: flex;
  flex-direction: row;
  padding: 28px 13vw;
  gap: 28px;
  background-color: #efefef;
}

@media screen and (max-width: 768px) {
  .formation-page {
    flex-direction: column;
    padding: 12px;
  }
}

.formation-page h1 {
  font-size: 20px;
  font-weight: bold;
}

.formation-page h2 {
  font-size: 16px;
  font-weight: bold;
}

.formation-main-info label {
  max-width: 200px;
  min-width: auto;
}

.formation-main-info select {
  max-width: 150px;
  min-width: auto;
}

.formation-main-info {
  flex: 1 1 0;
  background-color: white;
}

.formation-info {
  flex: 4 1 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.formation_price {
  font-size: 16px;
}

#other-trainee {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: fit-content;
  justify-content: flex-start;
}

#other-trainee input {
  width: fit-content;
  min-width: 50px;
}

.infobloc {
  background-color: white;
  padding: 18px;
  position: relative;
}

.formation-card-thumbnail {
  width: 100%;
}

.formation-card-info {
  padding: 8px;
  min-width: 250px;
}

.formation-card-details {
  display: flex;
  flex-direction: column;
}

.formation-card-details .detail-tag {
  font-size: 16px;
}

.programs-filter {
  padding: 24px 48px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

.programs-filter label {
  flex: 1;
  min-width: auto;
  font-size: 14px;
  justify-content: center;
  align-items: center;
  text-align: left;
}

.programs-filter label * {
  min-width: 150px;
}

.is-error {
  font-size: 18px;
  color: darkred;
}

.formation-info .card-tags {
  font-size: 14px;
}

.card-tags {
  display: flex;
  flex-direction: row;
  gap: 6px 12px;
  max-width: 100%;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  border: 2px solid color-mix(in srgb, var(--brand-color) 70%, black 30%);
  color: var(--brand-text-color);
  border-radius: 12px;
  background-color: var(--brand-color);
  padding: 4px 6px;
}

.question-set a {
  color: var(--brand-color);
  font-size: 14px;
}

.session-list-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.session-list-container form {
  width: 100%;
  min-width: 100%;
  background-color: #f9f9f9;
  color: var(--brand-color);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border-radius: 12px;
}

.session-list-container form:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.program-list-button {
  padding: 12px;
  border-radius: 12px;
  border-color: transparent;
  width: 100%;
  min-width: 100%;
  align-self: center;
  gap: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.program-list-button * {
  margin: 0;
}

.intra-button {
  padding: 6px;
  font-size: 18px;
  margin: 6px 0px 12px 0px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.intra-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.digiforma-form-label:has(> input[type="checkbox"]) {
  position: relative;
}

.digiforma-form-label span {
  margin: 0;
  padding: 0;
}

.digiforma-form-label:has(> input[type="checkbox"]) > input[type="checkbox"] {
  position: absolute;
  left: 0%;
  bottom: 0px;
  transform: translate(-50%, -50%);
}

.digiforma-form-label:has(> input[type="checkbox"]) {
  padding-bottom: 24px;
}

.digiforma-form-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100vw;
  background-color: var(--brand-color);
  color: var(--brand-text-color);
  height: 200px;
}

.digiforma-form-header p {
  padding: 0;
  margin: 0;
}

.digiforma-sirene-lookup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
  border: 1px solid lightgrey;
  width: 100%;
  padding: 12px;
}

.digiforma-sirene-lookup label {
  font-size: 16px;
}

.digiforma-sirene-lookup label input,
.digiforma-sirene-lookup label button {
  all: unset;
}

.digiforma-sirene-lookup label input {
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid lightgrey;
  background-color: white;
  margin-left: 6px;
}

.digiforma-sirene-lookup label button {
  padding: 6px 12px;
  background-color: var(--brand-color);
  color: var(--brand-text-color);
  border-radius: 12px;
  cursor: pointer;
  margin: 6px 0px 0px 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.digiforma-sirene-lookup label button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card button:hover {
  transform: none;
  box-shadow: none;
}

button {
  transition: transform 0.2s, box-shadow 0.2s;
}

.digiforma-sirene-lookup p {
  font-size: 16px;
}

.digiforma-sirene-lookup address {
  font-weight: bold;
  font-size: 16px;
}

#api-sirene-lookup-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#api-sirene-lookup-results div {
  background-color: white;
  padding: 12px;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid lightgrey;
  cursor: pointer;
}

#api-sirene-lookup-results div:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.filter-btn {
  padding: 10px 20px;
  fill: var(--brand-color);
  color: white;
  border: none;
  cursor: pointer;
  min-width: 48px;
  max-width: 48px;
  width: 48px;
  position: absolute;
  right: 0px;
  top: 0px;
}

.filter-btn svg {
  min-width: auto;
  padding: 0;
}

.filter-btn:hover {
  fill: gray;
}

/* Hide the checkbox that will control the popup */
#filter-toggle {
  display: none;
}

.filter-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 10;
}

#filter-toggle:checked + .filter-popup {
  display: flex;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}

.popup-content label,
.popup-content select {
  width: 100%;
  max-width: none;
}

.popup-content h3 {
  margin-top: 0;
}

.close-btn {
  background: var(--brand-color);
  color: white;
  padding: 5px 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
}

.close-btn:hover {
  background-color: color-mix(in srgb, var(--brand-color) 70%, black 30%);
}

.formation-card-sessions {
  position: relative;
}
