#form-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; }

form {
  width: 90%;
  max-width: 500px; }
  form #form-title {
    margin-top: 0;
    font-weight: 400;
    text-align: center; }
  form #debt-amount-slider {
    display: flex;
    flex-direction: row;
    align-content: stretch;
    position: relative;
    width: 100%;
    height: 50px;
    user-select: none; }
  form #debt-amount-slider::before {
    content: " ";
    position: absolute;
    height: 2px;
    width: 100%;
    width: calc(100% * (4 / 5));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000; }
  form #debt-amount-slider input, form #debt-amount-slider label {
    box-sizing: border-box;
    flex: 1;
    user-select: none;
    cursor: pointer; }
  form #debt-amount-slider label {
    display: inline-block;
    position: relative;
    width: 20%;
    height: 100%;
    user-select: none; }
  form #debt-amount-slider label::before {
    content: attr(data-debt-amount);
    position: absolute;
    left: 50%;
    padding-top: 10px;
    transform: translate(-50%, 45px);
    font-size: 14px;
    letter-spacing: 0.4px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0.85;
    transition: all 0.15s ease-in-out; }
  form #debt-amount-slider label::after {
    content: " ";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    cursor: pointer;
    transition: all 0.15s ease-in-out; }
  form #debt-amount-slider label:hover::after {transform: translate(-50%, -50%) scale(1.25); }
  form #debt-amount-slider input {display: none; }
  form #debt-amount-slider input:checked + label::before {font-weight: 800; opacity: 1; }
  form #debt-amount-slider input:checked + label::after {border-width: 4px; transform: translate(-50%, -50%) scale(0.75); }
  form #debt-amount-slider input:checked ~ #debt-amount-pos {opacity: 1; }
  form #debt-amount-slider input:checked:nth-child(1) ~ #debt-amount-pos {left: 12.5%; }
  form #debt-amount-slider input:checked:nth-child(3) ~ #debt-amount-pos {left: 37.5%; }
  form #debt-amount-slider input:checked:nth-child(5) ~ #debt-amount-pos {left: 62.5%; }
  form #debt-amount-slider input:checked:nth-child(7) ~ #debt-amount-pos {left: 87.5%; }
  form #debt-amount-slider #debt-amount-pos {
    display: block;
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #f00;
    border-radius: 50%;
    transition: all 0.15s ease-in-out;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    opacity: 0;
    z-index: 2; }
  form:valid #debt-amount-slider input + label::before {
    transform: translate(-50%, 45px) scale(0.9);
    transition: all 0.15s linear; }
  form:valid #debt-amount-slider input:checked + label::before {
    transform: translate(-50%, 45px) scale(1.1);
    transition: all 0.15s linear; }

* {
  box-sizing: border-box;
}

/* Create three equal columns that floats next to each other */
.column {
  float: left;
  width: 30%;
  padding: 10px;
  height: 360px; /* Should be removed. Only for demonstration */
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* buy plan buttons */
button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
button:disabled {
  background-color: #aaaaaa;
  cursor: not-allowed;
}
button:hover {
  background-color: #0056b3;
}

dialog {
  border: none;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 400px;
  background-color: white;
}
dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}
#closeDialogBtn {
  background-color: #dc3545;
  color: white;
  margin-left: 10px;
}

#myCustomDialog {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s; /* Fade out opacity, then hide visibility */
}

#myCustomDialog.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0s ease-in, visibility 0s linear 0s;  /* Right away in opacity, then show visibility */
  /* transition: opacity 0.5s ease-in, visibility 0s linear 0s; */
  /* Fade in opacity, then show visibility */
}
