/*------------------------------------*\
 * #IMPORTS
 * Import external stylesheets here.
\*------------------------------------*/
@import url(/css/all.css);

/* Global Stylings */
label {
  display: block;
  margin-bottom: 0.5rem;
}

input,
select {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border-bottom: 1px solid #ccc;
  border-top: 0;
  border-left: 0;
  border-right: 0;
}
input:focus,
select:focus,
a:focus {
  outline: none !important;
  box-shadow: none !important;
}

.width-50 {
  width: 20%;
}

.ml-auto {
  margin-left: auto;
}

.text-center {
  text-align: center;
}

/* Progressbar */
.progressbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  counter-reset: step;
  margin: 2rem 0 4rem;
}

.progressbar::before,
.progress {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  width: 100%;
  background-color: #dcdcdc;
  z-index: -1;
}

.progress {
  background-color: var(--primary-color);
  width: 0%;
  transition: 0.3s;
}

.progress-step {
  width: 2.1875rem;
  height: 2.1875rem;
  background-color: #dcdcdc;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.progress-step::before {
  counter-increment: step;
  content: counter(step);
}

.progress-step::after {
  content: attr(data-title);
  position: absolute;
  top: calc(100% + 0.5rem);
  font-size: 0.85rem;
  color: #666;
}

.progress-step-active {
  background-color: var(--bg);
  color: #f3f3f3;
}

/* Form */
.form {
  width: clamp(320px, 100%, 1200px);
  margin: 20px auto;
  border: 1px solid #ccc;
  border-radius: 0.35rem;
  padding: 1.5rem;
}

.form-step {
  display: none;
  transform-origin: top;
  animation: animate 0.5s;
}

.form-step-active {
  display: block;
}

.input-group {
  margin: 2rem 0;
}
.btn-next.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes animate {
  from {
    transform: scale(1, 0);
    opacity: 0;
  }
  to {
    transform: scale(1, 1);
    opacity: 1;
  }
}

/* Button */
.btns-group {
  display: flex;
  justify-content: space-between;
}

.btn2 {
  padding: 0.8rem 1rem !important;
  display: block;
  text-decoration: none;
  background-color: var(--bg);
  color: #f3f3f3;
  text-align: center;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: 0.3s;
  width: 30%;
}
.btn2:hover {
  /* box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--primary-color); */
  color: white;
  outline: none;
  text-decoration: none;
}
.input-error {
  border-bottom: 1px solid red;
}

.message-container {
  background-color: #f8d7da;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  display: none;
}

.message-container .message {
  font-size: 16px;
}

.country-error-banner {
  background-color: #ffe0e0;
  border: 1px solid #ff7b7b;
  color: #8a1f1f;
  padding: 20px;
  margin: 20px auto;
  border-radius: 8px;
  max-width: 600px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', sans-serif;
}

.banner-content h4 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #b30000;
}

.banner-content p {
  margin: 0;
  font-size: 1rem;
}

.banner-content strong {
  color: #b30000;
}

/* New and modified styles for checkbox and agreement */
.checkbox-agreement-group {
  display: flex; /* Use flexbox to align the items horizontally */
  align-items: flex-start; /* Align items to the start of the cross axis (top) */
  gap: 10px; /* Add some space between the checkbox and the text */
  margin: 2rem 0; /* Add margin for spacing similar to input-group */
}

.checkbox-agreement-group input[type='checkbox'] {
  width: auto; /* Allow the checkbox to take its natural width */
  margin-top: 4px; /* Adjust as needed to visually align with text */
  /* Remove any conflicting padding or width from previous styles */
  padding: 0;
  display: block; /* Ensure it behaves as a block element within flex */
}

.checkbox-agreement-group .agreement-text {
  display: block; /* Ensure the label spans multiple lines if needed */
  margin-bottom: 0; /* Remove default label margin */
  /* Adjust font size or line height if needed for better readability */
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Remove or adjust these if they were causing issues */
.custom-checkbox {
  /* background-color: #b30000; */ /* This was likely causing an unintended red background */
  display: flex; /* Keep flex if you want to use it for other elements within this custom-checkbox */
  width: 100%;
  padding: 0 !important;
}

@media (min-width: 992px) {
  .btn2 {
    width: 20%;
  }
}
@media screen and (max-width: 900px) {
  .progress-step {
    width: 1.1875rem;
    height: 1.1875rem;
    background-color: #dcdcdc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  .progress-step::before {
    counter-increment: step;
    content: counter(step);
  }

  .progress-step::after {
    content: attr(data-title);
    position: absolute;
    top: calc(100% + 0.5rem);
    font-size: 0.85rem;
    color: grey !important;
  }

  .progress-step-active {
    background-color: var(--bg);
    color: #f3f3f3;
  }
  .progress-step::after {
    content: '';
  }
}