/* universal styles, configuration etc. */
:root {
  font-family: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings: "wdth" 87.5;
  --font-color: #66727f;
  color: var(--font-color);
  font-size: 15px;
  line-height: 1.4rem;
  --color-black: black;
  --color-white: white;
  --color-ultralightgrey: rgb(235, 236, 241);
  --color-lightgrey: rgb(180, 185, 198);
  --color-middlegrey: #545d69;
  --color-grey-transparent: hsl(207, 6%, 30%);
  --color-grey: #333333;
  --color-brightblue: #0071c7;
  --color-brightblue-transparent: #0071c7;
  --color-darkblue: rgba(0, 113, 199, 0.7);
  --color-darkblue-transparent: rgba(52, 136, 218, 0.3);
  --measure: 90ch;
  --ratio: 1.5;
  --border-thin: 1px;
  --border-color: #e3e3e3;
  --s-6: calc(var(--s-5) / var(--ratio));
  --s-5: calc(var(--s-4) / var(--ratio));
  --s-4: calc(var(--s-3) / var(--ratio));
  --s-3: calc(var(--s-2) / var(--ratio));
  --s-2: calc(var(--s-1) / var(--ratio));
  --s-1: calc(var(--s0) / var(--ratio));
  --s0: 1rem;
  --s1: calc(var(--s0) * var(--ratio));
  --s2: calc(var(--s1) * var(--ratio));
  --s3: calc(var(--s2) * var(--ratio));
  --s4: calc(var(--s3) * var(--ratio));
  --s5: calc(var(--s4) * var(--ratio));
}

h1 {
  font-size: calc(2.5 * var(--s0));
  font-weight: 600;
  line-height: var(--s3);
}

* {
  box-sizing: border-box;
}

.center {
  box-sizing: content-box;
  margin-inline: auto;
  max-inline-size: var(--measure);
  padding-inline-start: 1rem;
  padding-inline-end: 1rem;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start
}

.cluster-list {
  list-style-type: none; /* Removes default bullets */
  padding: 0; /* Removes default padding */
  gap: var(--s-2); /* Adds space between items */
  margin-left: auto;
}

.cover {
  display: flex;
  flex-direction: column;
  min-block-size: 20vh;
  padding: 1rem;
}

.cover > * {
  margin-block: 1rem;
}

.cover > :first-child:not(h1) {
  margin-block-start: 0;
}

.cover > :last-child:not(h1) {
  margin-block-end: 0;
}

.cover > h1 {
  margin-block: auto;
}

.sun {
  height: var(--s3);
  width: var(--s3);
}

.stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.stack > * + * {
  margin-block-start: var(--s0);
}

input {
  max-width: 35ch;
}

.btn {
  border-style: solid;  
  border-width: 2px;
  border-color: black;
  padding-block: var(--s-2);
  padding-inline: var(--s0);
  margin-block-start: var(--s0);
}

.btn-primary {
  color: var(--color-grey); /* Using the existing dark grey color */
  background-color: #d3d4f7;
  border: none;
  border-radius: 8px;
  text-align: center;
}

.btn-primary:hover {
  color: var(--color-grey); /* Maintain text color on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
  background-color: #c1c2f5;
}

footer > div > ul> li > a {text-decoration: none;}

.ad-red-alert > div {
  background: linear-gradient(200deg, red 20%, darkred);
}


.progress-container {
  padding: 16px 10px 10px;
  border-radius: 12px;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.progress-bars {
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.progress-step {
  position: relative;
  cursor: help;
  flex: 1;
}

.progress-step:first-child {
  flex: 0.4;
}

.progress-bar {
  height: 8px;
  border-radius: 4px;
  width: 100%;
}

.progress-bar.bg-secondary {
  background-color: #777777de !important;
}

.progress-bar.bg-success {
  background-color: #28a745 !important;
  position: relative;
  overflow: hidden;
}

.progress-bar.bg-success::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
      left: -100%;
  }
  100% {
      left: 100%;
  }
}

.progress-text {
  display: flex;
  justify-content: center;
  padding: .4em;
}

.options-container {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.question-title {
  text-align: center;
  color: #2c3e50;
  font-size: 1.7rem;
  margin-bottom: 0.2rem;
}

.benefits-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 1rem;
}

.benefits-container li {
  color: #495057;
  font-size: 1rem;
}

.benefits-list {
  list-style: none;
}

.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-control {
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}
