:root {
  --primary-color: #711227;
  --secundar-color: #E2CFD3;
  --text-color: #3828de;
  --button-color01: #ffff;
}

* {
  box-sizing: border-box;  
}

body {
  font-family: Montserrat, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
}
/* Global Stylings */
label {
  display: block;
  margin-bottom: 0.5rem;
}

input {
  display: block;
  width: 100%;
  padding: 0.75rem;
  /* border: 1px solid rgb(145, 96, 96); */
  /* border-radius: 0.25rem; */
}
/* ---------------------------- Adaugat */
.input-group a{
  color: var(--text-color);
  font-size: 1rem;
  padding: .25em;
}
h1{
  color: var(--primary-color);
}

/* ---------------------- Button ------------------------------------ */
.button {
  width: 100%;
  display: flex;
  margin-top: 30px;
  justify-content: space-around;
}
.button a{
  background-color: #711227;
  color: var(--button-color01);
  border: none;  
  padding: 15px 10px;
  text-align: center;
  text-decoration: none; 
  font-size: 15px;
  margin: 0 15px;
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  justify-content: space-between;
  width: 120px;
}
.button a:hover {
  background-color: var(--secundar-color);
  color: var(--button-color01);
  box-shadow: 0 8px 10px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19)
}

.btns-group {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.btn {
  background-color: #711227;
  color: white;
  border: none;  
  padding: 15px 10px;
  text-align: center;
  text-decoration: none; 
  font-size: 15px;
  /* margin: 0 15px; */
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  justify-content: space-between;
  width: 120px;
}
.btn:hover {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--secundar-color);
}
/* animatie buton loader */
.loader{
  pointer-events: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #fff;
  animation: an1 1s ease infinite;
 
}
@keyframes an1 {
  0%{
    transform: rotate(0turn);
  }
  100%{
    transform: rotate(1turn);
  }
}
button:disabled{
  border-radius: 8px;
  background: rgb(215, 214, 214);
  cursor: not-allowed;
  color: rgb(160, 157, 157);
}
/* ---------------------- END Button ------------------------------------ */
.container p{
  text-align: left;
  justify-content: space-between;
}
[type="checkbox"]{
  opacity: 0;
  margin: 3px 53px 3px 4px;
  appearance: auto;
}
[type="checkbox"] + label{
  position: relative;
  padding-left: 50px;
  cursor: pointer;
  display: inline-block;
  color: rgb(85, 3, 3);
  line-height: 25px;
}
[type="checkbox"] + label::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  outline: 2px solid #aaa;
  background: rgb(255, 255, 255);
}
[type="checkbox"]:checked + label::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  outline: 2px solid rgb(85, 3, 3);
  background: rgb(255, 254, 254);
}
[type="checkbox"]:checked + label::after{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  background-image: url(trans-check.png);
  background-size: contain;
  background: contain;
  transform: scale(1);
  opacity: 1;
  transition: all .3 ease;
}
[type="checkbox"]:not(:checked) + label::after{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  background-image: url(trans-check.png);
  background-size: contain;
  background: contain;
  transform: scale(0);
  opacity: 0;
}

.flex > label {
  font-weight: bold;
  font-size: 1em;
  color: rgb(41, 2, 2);
}

.flex > input {
  border: 1px solid rgb(199, 193, 193);
  border-radius: .25em;
  font-size: 1rem;
  padding: .25em;
}
.block w-full text-center text-grey-darkest mb-6{
  margin: 0;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: center;
}
.bg-green-100{
  color: #3828de;
  font-size: 1rem;
  padding: .25em;
}

/* ----------------------------- Final Adaugat */

.width-50 {
  width: 50%;
}

.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;
  transition: 0.9s;
  /* border: 1px solid rgb(167, 7, 7); */
}

.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.75rem;
  color: #666;
}

.progress-step-active {
  background-color: var(--primary-color);
  color: #fff;
  transition: 0.9s;
}

/* Form */
.form {
  width: clamp(320px, 30%, 430px);
  margin: 0 auto;
  border: 3px solid var(--primary-color);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 8px 10px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.form-step {
  display: none;
  transform-origin: top;
  animation: animate 0.5s;
}

.form-step-active {
  display: block;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  gap: .25rem;
}

.textarea{
  resize: none;
  width: 100%;
  height: 100px;
  font-size: 18px;
  font-family: sans-serif;
  padding: 10px;
  box-sizing: border-box;
  border: solid 2px darkgray;
}

.counter-container{
  display: flex;
  justify-content: space-between;
  padding: 0 5px;
}

.counter-container p{
  font-size: 14px;
  color: gray;
}

.total-counter{
  color: slateblue;

}

.remaining-counter{
  color: orange;
}

@keyframes animate {
  from {
    transform: scale(1, 0);
    opacity: 0;
  }
  to {
    transform: scale(1, 1);
    opacity: 1;
  }
}

