:root {
    --primary: #E21E84;
    --secondary: #9D84B7;
}
body {
    font-family: 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.container {
    background: #fff;
    max-width: 450px;
    width: 100%;
    padding: 30px 20px;
    border-radius: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    position: relative;
}
.progress-bar {
    width: 100%;
    height: 14px;
    background: #ccc;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 20px;
}
.progress-fill {
    height: 100%;
    width: 33%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 30px;
    transition: width 0.3s ease;
}
h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 22px;
}
label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 500;
}
input[type="text"], input[type="email"], input[type="tel"], select {
    width: 100%;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 8px;
}
input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}
button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    padding: 12px;
    width: 48%;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}
.buttons {
    display: flex;
    justify-content: space-between;
    gap: 4%;
}
.step {
    display: none;
}
.step.active {
    display: block;
}
/* Estilos para los errores y alineación */
.form-group {
    margin-bottom: 16px;
}
.label-row {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}
.label-row label {
    flex: 1 0 160px;
    margin-bottom: 0;
}
.label-row .error-msg, .error-msg {
    color: #E21E84;
    margin-left: 10px;
    font-size: 12px;
    min-width: 110px;
    font-weight: bold;
    display: none;
}

#error-ocupacion-otra, #error-fuente-otra, #error-motivacion-otra {
    display: inline;
    float: right;
    margin-bottom: 10px;
}

#error, #telefono-error {
    color: #E21E84;
    margin-left: 10px;
    font-size: 12px;
    min-width: 110px;
    font-weight: bold;
}

#privacidad-error {
    color: #E21E84;
    margin-left: 10px;
    font-size: 12px;
    min-width: 110px;
    font-weight: bold;
    display: none;
}
/* Asegura que todos los labels con checkbox estén alineados y tengan espacio */
.form-group label input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}
.form-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
    margin: 4px 0;
    gap: 6px;
}

/* Estilos para el modal */
.modal-privacidad {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto; 
    background: rgba(0,0,0,0.5);
}
.modal-content-privacidad {
    background: #fff;
    margin: 5% auto;
    padding: 30px 20px;
    border-radius: 20px;
    max-width: 600px;
    width: 95%;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.close-modal {
    color: #E21E84;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}
.close-modal:hover {
    color: #9D84B7;
}

/* Estilos para el modal de carga */
.modal-carga {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-contenido-carga {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.preloader {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.texto-carga {
    font-size: 16px;
    color: #333;
    margin-top: 15px;
}