:root {
    --mifiao-purple: #4f4b8b;
    --mifiao-orange: #ff6b2b;
    --background-gray: #f5f5f5;
    --text-gray: #666666;
    --border-gray: #e0e0e0;
    --placeholder-gray: #999;
}
 
body {
    background-color: var(--background-gray);
    font-family: 'Rubik', sans-serif !important;
    margin: 0;
    padding: 16px;
    color: var(--text-gray);
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header Styles */
.header {
    padding: 24px 0;
    text-align: center;
}

.logo {
    width: 140px; 
    
}

.phone-number {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 16px;
    display: block; 
}

/* Main Content Styles */
.main-content {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.main-title {
    color: var(--mifiao-purple);
    font-size: 28px;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.3;
}

/* Benefits Styles */
.benefits {
    margin: 32px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.benefit-item .checkmark {
    color: #4CAF50;
    font-size: 20px;
    margin-right: 12px;
}

.benefit-text {
    font-size: 16px;
    color: var(--text-gray);
}

/* Button Styles */
.btn {
    height: 48px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--mifiao-purple);
    border: none;
    position: relative;
}

 
.back-button {
    color: var(--mifiao-purple);
    font-size: 14px;
    border: 1px solid var(--mifiao-purple);
    background: none;
    padding: 8px 16px;
    border-radius: 16px;
    margin-bottom: 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.back-button i {
    font-size: 12px;
}

.btn-default{
  border:1px solid #ccc;
  color: #999;
}

.back-button:hover {
    color: var(--mifiao-purple);
    text-decoration: none;
}

.btn-create {
    background: var(--mifiao-purple);
    color: white;
    border: none;
    height: 48px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

 
/* Form Container and Steps */
.form-container {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    max-width: 400px;
    margin: 24px auto;
}

.step-indicator {
    text-align: center;
    margin-bottom: 32px;
    align-items: center;
    justify-content: center;
}


 


.step-number {
  width: 32px;
  height: 32px;
  font-size: 16px;
  margin-top: 8px;
    border:1px solid var(--mifiao-purple);
    color: var(--mifiao-purple);
    border-radius: 50%;
    /* display: flex;  */
    align-items: center;
    justify-content: center;
    display: block;
    
    justify-content: center; 
    font-size: 18px;
    font-weight: 500;
    display: block;
    clear: both;
    margin: 0 auto;
    margin-top: 10px;
    line-height: 30px;
}

.step-indicator h5 {
    color: #666666;
    font-size: 16px;
    font-weight: normal;
    margin: 0;
}

.checked i {
  font-size: 1rem; 
  color: #fff; 
  background-color: #627f41;
  padding:5px;
  border-radius: 100%;
}


h2 {
    color: var(--mifiao-purple);
    font-size: 20px;
    font-weight: 100;  
    text-align: center;
    line-height: 1.3;
    margin-bottom: 24px;
}

/* Form Controls */
.form-control {
    height: 48px;
    border-radius: 16px;
    border: 1px solid var(--border-gray);
    padding: 0 16px;
    font-size: 16px;
    width: 100%;
}

.form-control::placeholder {
    color: var(--text-gray);
}
.error-step-1{font-size: 12px; display: none;}
.form-select {
    height: 48px;
    border-radius: 16px;
    border: 1px solid var(--border-gray);
    padding: 0 16px;
    font-size: 16px;
    width: 100%;
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234f4b8b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 12px;
    padding-right: 48px;
}
.step-inactive{
  background-color: #ccc;
  border-color: #ccc;
  color: #fff;
}
.form-select:focus {
    border-color: var(--mifiao-purple);
    box-shadow: 0 0 0 0.25rem rgba(79, 75, 139, 0.25);
}

.text-muted {
    color: var(--text-gray) !important;
    font-size: 14px;
    margin-top: 8px;
    display: block;
}

/* Loan Details */
.loan-details {
    background: var(--background-gray);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.daily-amount {
    font-size: 32px;
    color: var(--mifiao-purple);
    text-align: center;
    font-weight: 500;
    margin-bottom: 24px;
}

.confirm-titles{
  color: var(--mifiao-purple);
}

/* Form Check */
.form-check {
    margin: 16px 0;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-gray);
    margin-right: 8px;
}

.form-check-label {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-gray);
}

.form-check-terms{
  display: grid;
  align-items: center;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  text-align: left;
}

/* Signature Pad */
.signature-pad {
    width: 100%;
    height: 180px;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    margin-bottom: 8px;
}

#clear-signature {
    color: var(--mifiao-purple);
    font-size: 14px;
    text-decoration: none;
    padding: 0;
}

/* Alerts */
.alert {
    background: #FFF3CD;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    color: #856404;
    margin: 24px 0;
}

.is-invalid {
  border: 2px solid #dc3545 !important;
} 
/* Invalid Feedback */
.invalid-feedback {
    color: #dc3545;
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

/* Search Bar */
.search-container {
    position: relative;
    margin-top: 16px;
}

.search-input {
    width: 100%;
    padding: 16px;
    padding-right: 48px;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-gray);
}

.search-button {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.status-badge.pending { background-color: #ffd700; color: #000; }
.status-badge.approved { background-color: #4CAF50; color: white; }
.status-badge.rejected { background-color: #f44336; color: white; }
.status-badge.processing { background-color: #2196F3; color: white; }

/* Form Steps */
.step {
    display: none;
}

.step.active {
    display: block;
}

.step-indicator {
    /* display: flex; */
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}


/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.btn-back {
    color: var(--mifiao-purple);
    background: none;
    border: 1px solid var(--mifiao-purple);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
}

.btn-next {
    background: var(--mifiao-purple);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    flex: 1;
}

.details-grid .row {
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.details-grid .row:last-child {
    margin-bottom: 0;
}

/* Loan Details */
.loan-details {
    background: var(--background-gray);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.daily-amount {
    font-size: 32px;
    color: var(--mifiao-purple);
    text-align: center;
    font-weight: 500;
    margin-bottom: 24px;
}



 
.lf-progress {
    -webkit-appearance: none;
    -moz-apperance: none;
    width: 100%;
    /* margin: 0 10px; */
    height: 4px;
    border-radius: 3px;
    cursor: pointer;
  }
  .lf-progress:focus {
    outline: none;
    border: none;
  }
  .lf-progress::-moz-range-track {
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
  }
  .lf-progress::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    height: 13px;
    width: 13px;
    border: 0;
    border-radius: 50%;
    background: #0fccce;
    cursor: pointer;
  }
  .lf-progress::-moz-range-thumb {
    -moz-appearance: none !important;
    height: 13px;
    width: 13px;
    border: 0;
    border-radius: 50%;
    background: #0fccce;
    cursor: pointer;
  }
  .lf-progress::-ms-track {
    width: 100%;
    height: 3px;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    color: transparent;
  }
  .lf-progress::-ms-fill-lower {
    background: #ccc;
    border-radius: 3px;
  }
  .lf-progress::-ms-fill-upper {
    background: #ccc;
    border-radius: 3px;
  }
  .lf-progress::-ms-thumb {
    border: 0;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: #0fccce;
    cursor: pointer;
  }
  .lf-progress:focus::-ms-fill-lower {
    background: #ccc;
  }
  .lf-progress:focus::-ms-fill-upper {
    background: #ccc;
  }
  .lf-player-container :focus {
    outline: 0;
  }
  .lf-popover {
    position: relative;
  }
  
  .lf-popover-content {
    display: inline-block;
    position: absolute;
    opacity: 1;
    visibility: visible;
    transform: translate(0, -10px);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
  }
  
  .lf-popover-content.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(0, 0px);
  }
  
  .lf-player-btn-container {
    display: flex;
    align-items: center;
  }
  .lf-player-btn {
    cursor: pointer;
    fill: #999;
    width: 14px;
  }
  
  .lf-player-btn.active {
    fill: #555;
  }
  
  .lf-popover {
    position: relative;
  }
  
  .lf-popover-content {
    display: inline-block;
    position: absolute;
    background-color: #ffffff;
    opacity: 1;
  
    transform: translate(0, -10px);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
    padding: 10px;
  }
  
  .lf-popover-content.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(0, 0px);
  }
  
  .lf-arrow {
    position: absolute;
    z-index: -1;
    content: '';
    bottom: -9px;
    border-style: solid;
    border-width: 10px 10px 0px 10px;
  }
  
  .lf-left-align,
  .lf-left-align .lfarrow {
    left: 0;
    right: unset;
  }
  
  .lf-right-align,
  .lf-right-align .lf-arrow {
    right: 0;
    left: unset;
  }
  
  .lf-text-input {
    border: 1px #ccc solid;
    border-radius: 5px;
    padding: 3px;
    width: 60px;
    margin: 0;
  }
  
  .lf-color-picker {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 90px;
  }
  
  .lf-color-selectors {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .lf-color-component {
    display: flex;
    flex-direction: row;
    font-size: 12px;
    align-items: center;
    justify-content: center;
  }
  
  .lf-color-component strong {
    width: 40px;
  }
  
  .lf-color-component input[type='range'] {
    margin: 0 0 0 10px;
  }
  
  .lf-color-component input[type='number'] {
    width: 50px;
    margin: 0 0 0 10px;
  }
  
  .lf-color-preview {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-left: 5px;
  }
  
  .lf-preview {
    height: 60px;
    width: 60px;
  }
  
  .lf-popover-snapshot {
    width: 150px;
  }
  .lf-popover-snapshot h5 {
    margin: 5px 0 10px 0;
    font-size: 0.75rem;
  }
  .lf-popover-snapshot a {
    display: block;
    text-decoration: none;
  }
  .lf-popover-snapshot a:before {
    content: '⥼';
    margin-right: 5px;
  }
  .lf-popover-snapshot .lf-note {
    display: block;
    margin-top: 10px;
    color: #999;
  }
  .lf-player-controls > div {
    margin-right: 5px;
    margin-left: 5px;
  }
  .lf-player-controls > div:first-child {
    margin-left: 0px;
  }
  .lf-player-controls > div:last-child {
    margin-right: 0px;
  }
 
  .lf-progress {
    -webkit-appearance: none;
    -moz-apperance: none;
    width: 100%;
    /* margin: 0 10px; */
    height: 4px;
    border-radius: 3px;
    cursor: pointer;
  }
  .lf-progress:focus {
    outline: none;
    border: none;
  }
  .lf-progress::-moz-range-track {
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
  }
  .lf-progress::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    height: 13px;
    width: 13px;
    border: 0;
    border-radius: 50%;
    background: #0fccce;
    cursor: pointer;
  }
  .lf-progress::-moz-range-thumb {
    -moz-appearance: none !important;
    height: 13px;
    width: 13px;
    border: 0;
    border-radius: 50%;
    background: #0fccce;
    cursor: pointer;
  }
  .lf-progress::-ms-track {
    width: 100%;
    height: 3px;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    color: transparent;
  }
  .lf-progress::-ms-fill-lower {
    background: #ccc;
    border-radius: 3px;
  }
  .lf-progress::-ms-fill-upper {
    background: #ccc;
    border-radius: 3px;
  }
  .lf-progress::-ms-thumb {
    border: 0;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: #0fccce;
    cursor: pointer;
  }
  .lf-progress:focus::-ms-fill-lower {
    background: #ccc;
  }
  .lf-progress:focus::-ms-fill-upper {
    background: #ccc;
  }
  .lf-player-container :focus {
    outline: 0;
  }
  .lf-popover {
    position: relative;
  }
  
  .lf-popover-content {
    display: inline-block;
    position: absolute;
    opacity: 1;
    visibility: visible;
    transform: translate(0, -10px);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
  }
  
  .lf-popover-content.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(0, 0px);
  }
  
  .lf-player-btn-container {
    display: flex;
    align-items: center;
  }
  .lf-player-btn {
    cursor: pointer;
    fill: #999;
    width: 14px;
  }
  
  .lf-player-btn.active {
    fill: #555;
  }
  
  .lf-popover {
    position: relative;
  }
  
  .lf-popover-content {
    display: inline-block;
    position: absolute;
    background-color: #ffffff;
    opacity: 1;
  
    transform: translate(0, -10px);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
    padding: 10px;
  }
  
  .lf-popover-content.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(0, 0px);
  }
  
  .lf-arrow {
    position: absolute;
    z-index: -1;
    content: '';
    bottom: -9px;
    border-style: solid;
    border-width: 10px 10px 0px 10px;
  }
  
  .lf-left-align,
  .lf-left-align .lfarrow {
    left: 0;
    right: unset;
  }
  
  .lf-right-align,
  .lf-right-align .lf-arrow {
    right: 0;
    left: unset;
  }
  
  .lf-text-input {
    border: 1px #ccc solid;
    border-radius: 5px;
    padding: 3px;
    width: 60px;
    margin: 0;
  }
  
  .lf-color-picker {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 90px;
  }
  
  .lf-color-selectors {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .lf-color-component {
    display: flex;
    flex-direction: row;
    font-size: 12px;
    align-items: center;
    justify-content: center;
  }
  
  .lf-color-component strong {
    width: 40px;
  }
  
  .lf-color-component input[type='range'] {
    margin: 0 0 0 10px;
  }
  
  .lf-color-component input[type='number'] {
    width: 50px;
    margin: 0 0 0 10px;
  }
  
  .lf-color-preview {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-left: 5px;
  }
  
  .lf-preview {
    height: 60px;
    width: 60px;
  }
  
  .lf-popover-snapshot {
    width: 150px;
  }
  .lf-popover-snapshot h5 {
    margin: 5px 0 10px 0;
    font-size: 0.75rem;
  }
  .lf-popover-snapshot a {
    display: block;
    text-decoration: none;
  }
  .lf-popover-snapshot a:before {
    content: '⥼';
    margin-right: 5px;
  }
  .lf-popover-snapshot .lf-note {
    display: block;
    margin-top: 10px;
    color: #999;
  }
  .lf-player-controls > div {
    margin-right: 5px;
    margin-left: 5px;
  }
  .lf-player-controls > div:first-child {
    margin-left: 0px;
  }
  .lf-player-controls > div:last-child {
    margin-right: 0px;
  }
  input[type=range] {
    -webkit-appearance: none; /* Eliminar estilo por defecto en navegadores WebKit */
    width: 100%; 
    margin: 20px 0;
  }
  
  /* Estilo de la pista (track) del range */
  input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    /* background: linear-gradient(90deg,  #ffcc99,#ff9966); */
    background: #574F91;
    border-radius: 10px;
    border: none;
  }
  input[type=range]::-moz-range-track {
    width: 100%;
    height: 8px;
    /* background: linear-gradient(90deg, #ffcc99,#ff9966); */
    background: #574F91;
    border-radius: 10px;
    border: none;
  }
  input[type=range]::-ms-track {
    width: 100%;
    height: 8px;
    background: transparent;
    border-color: transparent;
    color: transparent;
  }
  
  /* Estilo del pulgar (thumb) del range */
  input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    background: #323232;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    margin-top: -6px; /* Ajusta la posición vertical del thumb */
  }
  input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    background: #323232;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
  }
  input[type=range]::-ms-thumb {
    height: 20px;
    width: 20px;
    background: #323232;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(255, 216, 216, 0.2);
    cursor: pointer;
  }
  
  /* Ajustes para el focus */
  input[type=range]:focus {
    outline: none;
  }
  input[type=range]:focus::-webkit-slider-runnable-track {
    /* background: linear-gradient(90deg,  #fff1e4,#919191); */
    background: #574F91;
  }
  input[type=range]:focus::-moz-range-track {
    /* background: linear-gradient(90deg, #fff1e4,#919191); */
    background: #574F91;;
  } 