article{
  h3 {
    position: relative;
    padding: .5rem 5rem;
    width: max-content;
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--main-color);
    display: block;
    text-align: center; 
    margin: 3rem auto;
    margin-inline: auto;
  }
  h3::before,
  h3::after {
    content:'';
    position: absolute;
    width: 30px;
    height: 30px;
  }
  h3::before {
    border-left: solid 1px var(--main-color);
    border-top: solid 1px var(--main-color);
    top:0;
    left: 0;
  }
  h3::after {
    border-right: solid 1px var(--main-color);
    border-bottom: solid 1px var(--main-color);
    bottom:0;
    right: 0;
  }
  h3 span:before,
  h3 span:after {
    content:'';
    position: absolute;
    width: 46px;
    height: 46px;
    rotate: 45deg;
  }
  h3 span:before {
    border-left: solid 1px var(--main-color);
    top:2px;
    left: 2px;
  }
  h3 span:after {
    border-right: solid 1px var(--main-color);
    bottom:2px;
    right: 2px;
  }
}

article{
  section{
    width: clamp(48rem, 90%, 68.75rem);
    margin: 0 auto;
    a{
      display: inline;
      color: var(--text-color);
    }
  }
}
@media (max-width: 767px){
  article{
    section{
      width: 90%;
    }
  }
}
table{
  width: 100%;
  border-collapse: collapse;
  margin: 1rem auto;
  th,td{
    padding: 1rem;
    vertical-align: top;
  } 
}


.registration__form{
  background: rgba(236,238,230,1);
  padding: 3rem;
  margin-top: 3rem;

  p:first-of-type{
    background: var(--clear-color);
    padding: 2rem;

    a{
      display: inline;
      color: var(--accent-color);
    }
  }
  form{
    margin: 3rem auto;
  }
  h4{
    text-align: center;
    width: 50%;
    margin: 0 auto 1rem;
   a{
      font-weight: normal;
      color: var(--clear-color);
      background: var(--accent-color);
      padding: .5rem 5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
    }
    a::after{
      content: "";
      background-image: url(../images/link.svg);
      background-repeat: no-repeat;
      background-size: cover;
      width: 21px;
      height: 19px;
    }
  }
}

.registration__list{
  display: grid;
  grid-template-columns: 10rem 4rem auto ;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem auto;

  .list-title{
    text-align: right;
    grid-column: 1;
  }
  .list-required{
    grid-column: 2;
    background: var(--accent-color);
    color: var(--clear-color);
    padding: .25rem .5rem;
    font-size: .9rem;
    text-align: center;
    font-style: normal;
  }
  .list-input{
    grid-column: 3;
  }
}
@media (max-width: 767px){
  .registration__list{
    .list-input{
      grid-column: 1 / -1;
      grid-row: 2;
    }
  }
  .registration__form{
    h4{
      width: 100%;
    }
  }
}

@media (max-width: 479px){
  .registration__form{
    padding: 1rem;
    margin-top: 1rem;
  
    p:first-of-type{
      padding: 1rem;
    }
    form{
      margin: 2rem auto;
    }
    h4{
      width: 100%;
      font-size: 1rem;
    }
  }
}



input,
textarea {
    -webkit-transition: all 0.5s ease-out 0s;
    -moz-transition: all 0.5s ease-out 0s;
    -ms-transition: all 0.5s ease-out 0s;
    -o-transition: all 0.5s ease-out 0s;
    transition: all 0.5s ease-out 0s;
    font-size: 1.1rem;
    border: 1px solid rgba(0,0,0,.5);
    padding: 1rem;
    box-shadow: none;
}
input[type="text"],
input[type="email"],
input[type="tel"]{
    width: 100%;
}

select{
  padding: 1rem;
  border: 1px solid rgba(0,0,0,.5);
}
textarea {
    resize: vertical;
    width: 100%;
    height: 10rem;
}
input[type="submit"] {
    padding: 1rem;
    border: 1px solid var(--main-color);
    background: transparent;
    color: var(--main-color);
    margin: 3rem auto;
    width: 50%;
    display: block;
}