.plans {
  align-items: center;
}

.plans h2 {
  font-size: 1.8em;

  text-align: center;
}

.plans__cards {
  display: flex;
}

.plans__card {
  width: 23%;

  margin: 20px;

  background-color: hsl(0, 0%, 95%);
  box-shadow: 0px 0px 20px hsl(0, 0%, 60%);

  transition: box-shadow 0.25s;
}

.plans__card.recommended,
.plans__card:hover {
  box-shadow: 0px 0px 15px hsl(240, 76%, 40%);
}

.plans__card header {
  text-align: center;

  padding: 10px;

  color: hsl(0, 0%, 85%);
  background-color: hsl(240, 76%, 59%);

  position: relative;
}

.plans__card__recommended_text {
  position: absolute;
  top: calc(-0.5em);
  right: -2.9ch;

  padding: 1.5px 3px;

  font-size: 1.1em;

  color: white;
  background-color: hsl(240, 76%, 59%);
  box-shadow: 0px 0px 15px hsl(240, 76%, 40%);
}

.plans__card .hr {
  width: 90%;
  height: 1px;

  margin: 0 auto;

  background-color: hsl(240, 70%, 59%);
}

.plans__card h2 {
  display: inline;

  font-size: 2em;

  color: white;
}

.plans__card__features,
.plans__card__price {
  padding: 10px;
}

.plans__card__features ul {
  margin-left: 15px;
}

.plans__card__features li {
  margin-bottom: 35px;
}

.plans__card__features li:first-of-type {
  margin-top: 10px;
}

.plans__card__features li:last-of-type {
  margin-bottom: 10px;
}

.plans__card__features li::marker {
  color: hsl(240, 76%, 59%);
}

.plans__card__price {
  margin-top: 10px;

  text-align: center;
}

.plans__card__price h2 {
  color: black;
}

.plans__card__price :is(sup, sub) {
  color: hsl(0, 0%, 40%);
}

.plans__card__price .hr {
  width: 75%;

  margin: 20px auto;

  background-color: hsl(0, 0%, 80%);
}

.plans__card__price button {
  display: inline-block;

  font-size: 1.2em;

  cursor: pointer;

  color: black;
  background-color: hsla(240, 76%, 59%, 0.1);
  outline: 1px hsl(240, 76%, 59%) solid;
  border: none;
  border-radius: 2px;

  margin-top: 5px;
  padding: 10px 20px;

  transition: all 0.25s;
}

.plans__card__price :is(button:hover, button:focus) {
  color: white;
  background-color: hsl(240, 76%, 59%);
}

/* MODAL */

.plans__modal .background {
  position: fixed;
  top: 0;
  left: 0;

  background-color: rgba(0, 0, 0, 0.6);

  width: 100vw;
  height: 100vh;

  z-index: 1;
}

.plans__modal .content {
  position: fixed;
  top: 50vh;
  left: 50vw;

  padding: 20px;

  border-radius: 15px;

  background-color: white;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.6);

  transform: translate(-50%, -50%);

  z-index: 2;
}

.plans__modal h2 {
  text-align: center;
}

.plans__modal form :is(div, input[type='submit']) {
  position: relative;

  padding: 1px;
  margin-top: 20px;

  border: 1px black solid;
  border-radius: 5px;

  transition: all 0.15s;
}

.plans__modal form div.active {
  border: 1px hsl(240, 76%, 59%) solid;
}

.plans__modal form div.invalid {
  border: 1px hsl(0, 77%, 54%) solid;
}

.plans__modal div label {
  cursor: text;

  position: absolute;
  top: 50%;
  left: 5px;

  background-color: white;

  padding: 0px 5px;

  transform: translateY(-50%);

  transition: all 0.15s;
}

.plans__modal input {
  width: 100%;
  height: 30px;

  border: none;
  outline: none;

  padding: 5px;
}

.plans__modal input[type='submit'] {
  cursor: pointer;
}

.plans__modal input[type='submit']:hover {
  border: 1px hsl(240, 76%, 59%) solid;

  color: white;
  background-color: hsl(240, 76%, 59%);

  cursor: pointer;
}

.plans__modal :is(input, textarea):focus + label,
.plans__modal div.active > label {
  top: -1px;

  color: hsl(240, 76%, 59%);
  background-color: white;
}

.plans__modal div.invalid > label {
  color: hsl(0, 77%, 54%);
}
