.modal {
    display: none; 
    position: fixed; 
    z-index: 2; 
    left: 0;
    top: 0;
    right: 0;
    width: 100%; 
    height: 100%; 
    background-color: var(--bg-color-form);
    backdrop-filter: blur(40px); /* Efecto borroso de fondo */

    .logo.logo-cont{
		max-width: 85%;
		height: 10lvh;
		object-fit: contain;
		cursor: pointer;
		display: flex;
        margin-bottom: 0;
		img{
			object-fit:contain;
			display: block;
		}
	}

    .logo-box {
        width: 70%;
        margin-inline: auto;
        max-width: 250px;
        @media (max-width:900px) {
            width: 44%;
        }
    }

	.logo-symbol{
		width: 20%;
		height: 100%;
		margin-right: 2.5%;
	}

	.logo-text{
		width: 75%;
		height: 100%;
		transition: filter 0.25s ease-in;
		filter:   brightness(calc(var(--is-dark) * 20)) ;
	}
    .or-log-in-with{
        font-size: 0.9rem;
        text-align: center;
        font-weight: 600;
          @media (max-width: 900px) {
            font-size: 0.6rem;
        }
    }

    .mini-banner{
        width: 50%;
        background-image: url("/public/images/login-form-bg.webp");
        background-repeat: no-repeat;
        background-size: cover;
        background-origin: top;
        border-radius: 0 0 2rem 2rem;
        color: #fff;
                display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 2.5%;
        @media (max-width:900px) {
           display: none;
        }
    }

    .legal-links{
        display: flex;
        justify-content: space-between;
        .terms-condition-link, .login-link{
            font-size: 0.85rem;
              font-weight: 600;
              text-decoration: none;
              color: var(--text);
            @media (max-width: 900px) {
                font-size: 0.6rem;
            }
        }

         .login-link{
              color: var(--opaque-text);
              span{
                color: var(--text);
              }
        }
    }

    .menu-item{
        text-transform: capitalize;
        padding: 0.45rem;
        white-space: pre;
        text-decoration: none;
        border-radius: 5rem;
        font-size: 1.1rem;
        font-weight:500;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.1s ease-in;
        cursor: pointer;
        color:#fff;
        background: linear-gradient(270deg, #1497DF 0%, #006692 100%);
        box-shadow: 0px 0px 23.6px 0px rgba(38, 67, 95, 0.24);
        border: none;
        @media (max-width: 1440px) {
          font-size: 0.77rem;
        }

        &:hover{
            filter: brightness(0.85);
        }
        @media (max-width:900px) {

            padding: 0.30rem;
            font-size: 0.75rem;
        }
    }

    .menu-item svg.link-icon-arrow{
      width: 2.2rem;
      height: 2.2rem;
      margin-left:0;
      fill: white;
      stroke: white;
      overflow: visible;

      & path {
        fill: white;
      }

      & circle {
        fill: #4da3ff;
        opacity: 1;
        stroke: transparent;
      }

       @media (max-width: 1440px) {
          width: 1.5rem;
          height: 1.5rem;
      }

             @media (max-width: 1440px) {
          width: 2rem;
          height: 2rem;
      }
    }

    .menu-item .empty-span{
        width: 1rem;
    }

    .empty-span{
        width: 2rem;
    }

    .join-the-construction {
        margin-top: auto;
        background-color: rgba(249, 249, 249, 0.16);
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 2rem;
        font-weight: 500;
        width: fit-content;
        margin-bottom: 2.5%;
    }

    .follow-these-simple {

        font-size: 1rem;

        font-weight: 500;
        margin-bottom: 7.5%;
       
    }
    h3 {
        font-size: 2.5rem;
        font-weight: 700;
         margin-bottom: 2.5%;
        white-space: pre;
    }

    .cards-container {
        display: flex;
        justify-content: space-between;
    }

    .card{
        width: 32%;
        background-color: rgba(255, 255, 255, 0.1);
        padding: 2.5%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        backdrop-filter: blur(20px);
        border-radius: 1rem;
        height: 140px;
    }

    .card-desc{
      font-weight: 500;
    }

    .card-num-step{
       border: 1px solid  rgba(255, 255, 255, 0.23);
       border-radius: 50%;
       width: 1.75rem;
       height: 1.75rem;
       display: grid;
       place-content: center;
       font-size: 0.9rem;
    }

    .first-card{
        background-color:rgba(255, 255, 255, 0.75) ;
        color: rgba(16, 24, 32, 1);
         .card-num-step{
                   color: rgba(16, 24, 32, 1);
                  background-color:  rgba(20, 151, 223, 1);
         }
    }
}

/* Modal Card */
.modal-content {
    will-change: opacity scale width;
    background-color: var(--bg-color-form);
    margin: auto;
    height: 92.5%;
    max-height: 764px;
    padding: 0.75%;
    border: 1px solid rgba(146, 146, 146, 0.45);
    width: 90%;
    max-width: 1173px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    position: relative;
    animation: slideDown 0.4s ease;
    backdrop-filter: blur(15px);
    @media (max-width: 900px) {
    
        backdrop-filter: blur(10px);
        box-shadow: 0px 0px 30.03px -4.48px rgba(0, 102, 146, 0.15);
    }
   .subtitle{
    text-align: center;
    color: var(--opaque-text);
    line-height: 1rem;
    @media (max-width: 900px) {
        font-size: 0.6rem;
    }
   }
    form#multiStepForm {
        height: 100%;
    }


    
    .step{
        height: 100%;
        flex-direction: column;
        padding: 2.5% 5%;
        justify-content: space-between;
        @media (max-width: 900px) {
        padding: 8% 2.5%;
        }
    }
    .step.first-step {
        flex-direction: row;
         height: 100%;
         padding: 0;
    }

    .first-input-grid{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 50%;
        padding: 1rem 3.5rem;
        height: 100%;
        @media (max-width: 900px) {
            width: 100%;
            padding-inline:1rem;
        }

        .input-group {
            display: flex;
            flex-direction: column;
            text-align: left;
            position: relative;
            margin-bottom: 2.5%;
            }

        /* .input-group.icon-input input {
            padding-right: 3.75rem;
        } */

        .input-group .input-icon {
            position: absolute;
            right: 1.25rem;
            top: 50%;
            transform: translateY(-50%);
            width: 2rem;
            height: 2rem;
            color: rgba(16, 24, 32, 0.65);
            pointer-events: none;
        }

        .input-group .input-icon svg {
            width: 100%;
            height: 100%;
        }

 
    }
       .preference-grid {
            display: flex;
            gap: 1.25%;
        }

        .preference-grid .input-group {
            width: 100% ;
          
        }

 
    span.input-icon {
    position: absolute;
    right: 5%;
    width: 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
}

span.input-icon svg rect{
    fill: none;
}

.textarea-group{

    /* margin-bottom:0.75%; */
    margin-bottom:1.25%;
}

textarea{
    border-radius: 2rem !important;
    resize: none;
    font-family: "Aventa", sans-serif;
    font-weight: 500;
    @media (max-width: 900px) {
        border-radius: 1rem !important;
        margin-bottom:1.25%;
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 100%;
    @media (max-width: 900px) {
        height: 33px;
    }
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
 background-color: rgba(249, 249, 249, 0.16);
  -webkit-transition: .4s;
  transition: .4s;
  display: flex;
  justify-content: center;

  border-radius: 2rem;
}

.slider span{
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--opaque-text);
        @media (max-width: 900px) {
       font-size: 0.77rem;
    }
}

.slider:before {
  position: absolute;
  content: "";
  height:80%;
  width: 48.5%;
  left: 1.5%;
  bottom: 10%;
  top: 10%;
  background-color: rgba(249, 249, 249, 0.16);
  box-shadow: 0px 0px 35.6px 4px rgba(16, 24, 32, 0.08);
  border-radius: 2rem;
  -webkit-transition: .4s;
  transition: .4s;
}

/* input:checked + .slider {
  background-color: rgba(249, 249, 249, 0.16);
} */

input + .slider {
  box-shadow: 0px 0px 35.6px 4px rgba(16, 24, 32, 0.08);

}

input:checked + .slider:before {
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
}

/* Rounded sliders */



.preference-grid {
    display: flex;
    justify-content: space-between;
}

@media (max-width: 900px) {
    .input-grid .divided-input,
    .preference-grid {
        flex-direction: column;
        gap: 0;
    }

    .input-grid .divided-input .input-group,
    .preference-grid .input-group,
    .preference-grid .switch ,
    .input-grid .divided-input .input-group.input-group-zip-code{
        width: 100%;
        margin-bottom: 2%;
    }
}

    .checkboxItem {
        margin-left: 5%;
        display: flex;
        align-items: center;
        column-gap: 4px;
        width: fit-content;
        line-height: 1;
        cursor: pointer;
        color: var(--opaque-text);
        font-weight: 600;
        @media (max-width: 900px) {
            font-size: 0.6rem;
            text-align: center;
            margin: auto;
            margin-top: 5%;
        }
        a{
                color: var(--opaque-text);
             @media (max-width: 900px) {
                font-size: 0.6rem;
            }
        }

    }

    .checkboxItem:not(:last-of-type) {
    margin-bottom: 16px;
    }

    .checkbox {
    appearance: none;
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 15px;
    cursor: pointer;
        border: 1px solid rgba(2, 107, 154, 1);
    background-color: rgba(2, 107, 154, 1);
        @media (max-width: 900px) {
            width: 1rem;
            height:1rem;
        }
    }

    .checkbox:checked {
    border: 1px solid rgba(2, 107, 154, 1);
    background-color: rgba(2, 107, 154, 1);
    }

    .checkbox:checked::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 3px;
    width: 10px;
    height: 5px;
    border-bottom: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    transform: rotate(-45deg);
        @media (max-width: 900px) {
            width: 0.5rem;
            height:0.15rem;
        }
    }

    .check-icon{
        width:6.625rem;
        margin: auto;
        display: block;
    }

    .success-title{
        font-size: 2.5rem;
        text-align: center;

        @media (max-width: 900px) {
            font-size: 1.3rem;
        }
    }

    .success-subtitle{
        font-size: 0.9rem;
        text-align: center;
        color: var(--opaque-text);
            @media (max-width: 900px) {
                font-size: 0.6rem;
            }
    }
    a.menu-item.success-cta{
        width: fit-content;
    margin-inline: auto;
    margin-top: 2.5rem;
    }

    .terms-link{
        text-decoration: none;
        text-align: center;
        color: var(--text);
        font-weight: 600;
        font-size: 0.9rem;
        @media (max-width: 900px) {
            font-size: 0.6rem;
        }
    }
}

.step {
    display: none;
    opacity: 0; /* Importante para que GSAP controle el fade-in */

           
}
.register-alternatives{
    display: flex;
    justify-content: space-between;
    
    .apple-btn, .google-btn{
        cursor: pointer;
        width: 46.5%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color:rgba(213, 229, 236, 0.65) ;
        border: rgba(146, 146, 146, 0.45) 1px solid;
        font-weight: 600;
        /* box-shadow: 0px 0px 35.6px 4px rgba(16, 24, 32, 0.08); */
        font-size: 1.1rem;
        border-radius: 5rem;
        padding: 1rem;
        @media (max-width: 900px) {
            font-size: 0.8rem;
            padding: 0.5rem 1rem;
        }
        img{
            width: 1.25rem;
            margin-right: 0.5rem;
            @media (max-width: 900px) {
                width: 0.75rem;
                margin-right: 0.25rem;
            }
        }
        transition: filter 0.15s ease-in;
        &:hover{
            filter: brightness(0.8);
        }
    }
}

/* Header y Logo */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}
.logo {
    font-weight: 900;
    font-size: 1.2rem;
    color: #007bff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.form-header h2 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

/* Grid System para Inputs (Igual que la imagen) */
.input-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    @media (max-width: 1600px) {
        gap: 1.5%;
   }
}

.input-grid .divided-input{
    width: 100%;
    display: flex;
    gap: 2.5%;
    @media (max-width: 1600px) {
        gap:1%;
   }
}

.input-grid .divided-input .input-group{
    width: 100%;
    display: flex;
   margin-bottom: 1.25%;


}
.full-width {
    grid-column: span 2;
}

/* Estilos de Input */
.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    margin-bottom: 4%;

    input, select, textarea {
        padding: 0.813rem 0.938rem;
        border-radius: 5rem; /* Bordes muy redondos como la imagen */
         border: none;
        font-size: 1.25rem;

        outline: none;
        color: var(--opaque-text);
        transition: 0.3s;
        background-color: rgba(249, 249, 249, 0.16);
        box-shadow: 0px 0px 15.6px 4px rgba(16, 24, 32, 0.08);
       &::placeholder{
          color: var(--opaque-text);
       }
       @media (max-width: 900px) {
        font-size: 0.77rem;
        padding: 0.6rem 0.7rem;
       }
    }
    select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: var(--select-arrow-icon);
        background-repeat: no-repeat;
        background-size: 24px 24px;
        background-position: right 5% center;
        padding-right: 4rem;
        cursor: pointer;
    }

    option{
        color: black;
    }
    position: relative;
    .phone-code{
        position: absolute;
        top: 10%;
        height: 80%;
        bottom: 5%;
        left: 0.5%;
        display: flex;
        align-items: center;
        background-color: rgba(249, 249, 249, 0.16);
        box-shadow: 0px 0px 35.6px 4px rgba(16, 24, 32, 0.08);
        font-size: 1.125rem;
        padding-inline: 3%;
        border-radius: 3rem;
        @media (max-width: 900px) {
          font-size: 0.77rem;
          left: 1.5%;
           bottom: 10%;
        }
    }

}

.input-grid .divided-input .input-group.input-group-zip-code{
    width: 25%;
}

.input-group input.invalid,
.input-group select.invalid,
.input-group textarea.invalid,
.code-input.invalid {
    box-shadow: 0 0 0 2px rgba(217, 48, 37, 0.35), 0 0 18px rgba(217, 48, 37, 0.25), 0px 0px 35.6px 4px rgba(16, 24, 32, 0.08);
}

    .input-group-phone-code input{
        padding-left: 17.5%;
       
    }

.eye{
    position: absolute;
    right: 20px;
    cursor: pointer;
    width: 2rem;
    margin-top: 2%;
    filter: brightness( calc(var(--is-dark)*17) ) ;
    transition: opacity 0.12s ease;
     @media (max-width: 900px) {
        width: 1.25rem;
     }
}

/* Darken eye icon when password is visible */
.eye.eye--dark,
.eye--dark {
    opacity: 0.5 !important;
}

.create-an-account{
    font-weight: 600;
    font-size: 1.8rem;
    text-align: center;
       @media (max-width:900px) {
        font-size: 1.25rem;
       }
}

.control-btns {
    display: flex;
    justify-content: flex-end;
       @media (max-width:900px) {
    justify-content: space-evenly;
}
}

.back-btn{
    background-color: unset;
    border: none;
    color: rgba(89, 178, 226, 1);
    font-size: 1.125rem;
    padding-inline: 0.5rem 2rem;
    cursor: pointer;
    @media (max-width: 1440px) {
        font-size: 0.77rem;
    }
}

.step.fourth-step.resume-upload-step {
    padding-top: 0;
    padding-inline: 10%;
    @media (max-width: 900px) {
        padding-inline: 0%;
        padding-top: 8%;
    }
}

.step.fourth-step.resume-upload-step .create-an-account{
    margin-bottom: 0;
    font-size: 1.85rem;
    @media (max-width: 900px) {
        font-size: 1.375rem;
    }
}

.resume-upload-step {
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.resume-upload-step .logo-box {
    margin-bottom: 0.5rem;
    position: absolute;
    top: 5%;
        @media (max-width: 900px) {
            position: unset;
        }
}

.resume-upload-step .upload-illustration {
    width:30%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(30%);
    @media (max-width: 900px) {
        width: 80%;
        height: auto;
        position: absolute;
        transform: translateY(50%);
    }
    @media (max-width: 390px) {
        transform: translateY(30%);
    }

}

.push-down-on-mobile{

    @media (max-width: 900px) {
        
            margin-top: 30%;
    }
}

span.upload-link {
    @media (max-width: 900px) {
    font-size: 0.775rem;
    }
}

.resume-upload-step .upload-illustration img {
    width: 65%;
    height: auto;
}

.upload-title {
    font-size: 2rem;
    margin: 0;
}

.upload-subtitle {
    margin: 0;
    color: var(--opaque-text);
    @media (max-width: 900px) {
     font-size: 0.6rem;
     width: 65%;
     margin: auto;
    }
}

.resume-wrapper {
    @media (max-width: 900px) {
    width: 80%;
    }
}

.resume-upload-cards {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    @media (max-width: 900px) {
        justify-content: center;
    }
}

.resume-card {
    flex: 1 1 280px;
    background-color: rgba(249, 249, 249, 0.16);
    border-radius:1rem;
    overflow: clip;
  
    display: flex;
    align-items: center;

    box-shadow: 0px 0px 35.6px 4px rgba(16, 24, 32, 0.08);
}

.resume-card  .logo-symbol{
   width: 8%;
   margin-left: 2.5%;

    @media (max-width: 900px) {
        width: 12.5%;
        margin-right:1rem;
        height: 40px;
    }
}

.resume-card .file-name {
    font-weight: 600;
    margin: 0;
    text-align: left;
    @media (max-width: 900px) {
        text-align: left;
        font-size: 0.65rem;
    }
}

.resume-card .file-meta {
    font-size: 0.95rem;
    color: var(--opaque-text);
      @media (max-width: 900px) {
        text-align: left;
        font-size: 0.6rem;
    }
}

.file-card {
    background: rgba(249, 249, 249, 0.09);

}

.file-badge {
    
    background-color: rgba(2, 108, 155, 1);
    height: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    
}

.file-badge img {
    width: 2rem;
    height: auto;
   
}

.file-info{
      padding-left: 5%;
    display: flex;
    flex-direction: column;
    align-items: baseline;
}

.sales-card {
    padding: 1.75rem;
    background: linear-gradient(99.09deg, rgba(20, 151, 223, 0.4) 10.35%, rgba(0, 102, 146, 0.096) 96.89%);
    backdrop-filter: blur(92.5px);
    box-shadow: 0px 0px 35.6px 4px rgba(16, 24, 32, 0.08);

    @media (max-width: 900px) {
        padding: 1rem;
    }

}

.sales-card-icon {
    width: 48px;
    height: 48px;
}

.text-sales-card {
    display: flex;
    flex-direction: column;
    align-items: baseline;
}

.resume-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
    @media (max-width:900px) {
        display: none;
    }
}

.resume-actions-mobile {
    display: none;
    @media (max-width:900px) {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        margin-top: 1rem;
    }
}

.upload-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: rgba(20, 151, 223, 1);
    font-weight: 600;
    text-decoration: none;
}


.upload-note {
    font-size: 0.9rem;
    color: var(--opaque-text);

    @media (max-width: 900px) {
        font-size: 0.6rem;
        margin-bottom: 1rem;
        margin-top: 0.5rem;
    }
}

.resume-upload-step .control-btns {
    width: 100%;
}

label.upload-action {
    margin-right: auto;
}

label.upload-action .upload-icon{
    margin-right: auto;
    width: 1rem;
}

.upload-note{
     margin-right: auto;
}
@media (max-width: 900px) {
    .resume-upload-cards {
        flex-direction: column;
        gap: 0rem;
    }

    .resume-card {
        width: 100%;
        max-height: 66px;
    }
}

.text-span{
    padding-inline: 0.5rem;
}
/* Navegación */
.step {
    display: none; /* Ocultar pasos por defecto */
}
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}
#prevBtn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
}
#prevBtn:hover {
    text-decoration: underline;
}
#nextBtn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s;
}
#nextBtn:hover {
    background-color: #0056b3;
}

/* Indicadores de paso */
.step-dot {
    height: 8px;
    width: 8px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.5;
}
.step-dot.active {
    opacity: 1;
    background-color: #007bff;
}

/* Botón trigger (solo para demo) */
.trigger-btn { padding: 15px 30px; font-size: 1.2rem; cursor: pointer; }
.close { 
    position: absolute;
     /* right: 25px;
      top: 2%; */
    right: 1.5rem;
    top: 1.5rem;

       font-size: 3rem;
       cursor: pointer;
      background:rgba(242, 243, 244, 0.28);
      z-index: 3;
      width: 2.5rem;
      height: 2.5rem;
      aspect-ratio: 1;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      box-shadow: 0 0 9px 0px #00000008;
      .close-icon{
         width: 1.25rem;
               @media (max-width: 900px) {

            width: 0.75rem;
 
        }
      }
      .close-icon path{
        fill: var(--svg-icon-color);
      }

      @media (max-width: 900px) {
          right:15px;
    top: 15px;
    width: 1.5rem;
    height: 1.5rem;
        }
     }