@keyframes popupFadeIn {
  0% {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.popup__background--dim{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5); 
  z-index: 9990;
  /* backdrop-filter: blur(3px); */
}

.popup__container--registro{
    position: fixed;
    display: block;
    z-index: 9999;
    top: 50%;                     
    left: 50%;
    transform: translate(-50%, -50%);
    /* opacity: 0;
    visibility: hidden; */
    background: rgba(255, 255, 255, 1);
    border-radius: 16px;
    padding: 40px;
    padding-top: 32px;
    padding-bottom: 32px;
    max-width: 500px;
    max-height: 100%;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.popup__container--registro.popup--ativo{
    visibility: visible;
    animation: popupFadeIn 0.17s ease forwards;
}

.popup__header--registro{
    text-align: center;
    margin-bottom: 40px;
}

.popup__header--registro h1{
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.3;
}

.popup__etapa-progresso--registro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.popup__etapa--registro {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.popup__etapa-icone--registro{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    /* box-shadow: rgba(0, 0, 0, 0.1) 2px 3px 3px; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 18px;
}

.popup__etapa-icone--registro .popup__etapa--registro .popup__etapa-icone-ativo--registro {
    background: #ad1ae2ff;
    color: white;
}

.popup__etapa-label--registro{
    font-size: 12px;
    text-align: center;
    opacity: 0.8;
}

.popup__etapa-conector--registro{
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.popup__formgroup--registro{
    margin-bottom: 20px;
}

.popup__form-linha--registro{
    display: flex;
    gap: 15px;
}

.popup__formgroup--registro .popup__form-linha--registro{
    flex: 1;
}

.popup__input--registro, .popup__select--registro, .popup__textarea--registro{
    width: 100%;
    padding: 15px;
    background: rgba(236, 236, 236, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: black;
    font-size: 16px;
    transition: all 0.3s ease;
}

.popup__input--registro::placeholder, .popup__select--registro option{
    color: rgba(0, 0, 0, 0.6);
}

.popup__input--registro:focus, .popup__select--registro:focus{
    outline: none;
    border-color: #5b32b4;
    background: rgba(255, 255, 255, 0.15);
}

.popup__input-celular--registro{
    display: flex;
    gap: 10px;
}

.popup__ddi--registro{
    padding-right: 1px;
    color: rgba(0, 0, 0, 0.425);
    font-size: 18px;
    margin: auto;
    flex-shrink: 1;
    position: absolute;
    padding-top: 15px;
    padding-left: 12px;
}

#tel{
    padding-left: 45px;
}

.popup__erro--registro{
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
}

.popup__checkbox--registro{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 28px 0;
}

.popup__checkbox--registro input[type="checkbox"]{
    /* width: auto;
    margin: 0;
    margin-top: 5px;
    transform: scale(1.2); */
    /* align-items: stretch; */
    appearance: none;
    margin: 0;
    margin-top: 5px;
    font: inherit;
    color:currentColor;
    width: 1.99em;
    height: 1.1em;
    border: 0.15em solid currentColor;
    border-radius: 0.15em;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
    cursor: pointer;
}

.popup__checkbox--registro input[type="checkbox"]::before{
    content: "";
    width: 0.66em;
    height: 0.66em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #ad1ae2;
    transform-origin: bottom left;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.popup__checkbox--registro input[type="checkbox"]:checked::before{
    transform: scale(1);
}

.popup__checkbox-rotulo--registro{
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

.popup__submit-btn--registro{
    width: 100%;
    padding: 16px;
    /* background: linear-gradient(135deg, #ad1ae2ff, #ac0de6ff); */
    background: #ad1ae2ff;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup__submit-btn--registro:hover{
    transform: translateY(-2px);
    /* background: linear-gradient(135deg, #601ae2ff, #5a12e0ff); */
    background: #601ae2ff;
    box-shadow: 0 5px 15px rgba(255, 157, 239, 0.4);
}

.popup__submit-btn--registro-disabled{
        width: 100%;
    padding: 16px;
    /* background: linear-gradient(135deg, #ad1ae2ff, #ac0de6ff); */
    background: rgb(104, 104, 104);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup__submit-btn--registro-disabled:hover{
    transform: translateY(-2px);
    /* background: linear-gradient(135deg, #601ae2ff, #5a12e0ff); */
    background: rgb(65, 65, 65);
    box-shadow: 0 5px 15px rgba(255, 157, 239, 0.4);
}

.success-message {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.popup__visibility--invisible{
    display: none;
}

.popup__link{
    color: #ad1ae2ff;
    text-decoration: underline;
}

.popup__link:hover{
    color:rgb(124, 13, 165);
    text-decoration: underline;
    transition: color 0.05s ease-in;
}

@media (max-width: 600px) {
    .popup__container--registro {
        padding: 20px;
        max-width: 95%;
        border-radius: 12px;
    }

    .popup__header--registro h1 {
        font-size: 20px;
    }

    .popup__etapa-progresso--registro {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .popup__form-linha--registro {
        flex-direction: column;
        gap: 15px;
    }

    .popup__input-celular--registro {
        flex-direction: column;
    }

    .popup__submit-btn--registro {
        font-size: 14px;
        padding: 14px;
    }

    .popup__etapa-conector--registro{
        display: none;
    }

    .popup__etapa-label--registro:nth-of-type(2){
        padding-bottom: 11px;
    }    
}

@media (max-width: 400px) {
    .popup__header--registro h1 {
        font-size: 18px;
    }

    .popup__container--registro {
        padding: 15px;
    }

    .popup__submit-btn--registro {
        font-size: 13px;
        padding: 12px;
    }
}

@media (max-height:720px){
    .popup__container--registro{
        overflow-y: auto;
}
}
