#matriculacionForm {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

#matriculacionForm select {
    padding: 2px 10px !important;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Rounded indicators look better */
    background: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: #4B6BFB;
    color: white;
    transform: scale(1.1);
}

.step-indicator.completed {
    background: #4B6BFB;
    color: white;
}

.step-text {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.9rem;
    color: #666;
    transition: opacity 0.3s ease;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 4px; /* Thicker line */
    background: #E0E0E0;
    z-index: 1;
}

.progress-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #4B6BFB;
    transition: width 0.3s ease;
}

.form-step {
    display: none;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.form-step.active {
    display: block;
    opacity: 1;
}

.form-step h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}

.form-step h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    color: #444;
}

select {
    width: 100%;
    padding: 12px;
    margin: 8px 0 20px;
    border: 2px solid #E0E0E0;
    border-radius: 5px; /* Softer edges */
    background-color: white;
    transition: border-color 0.3s ease;
}

select:focus {
    border-color: #4B6BFB;
    outline: none;
}

.radio-group, .checkbox-group {
    margin: 1rem 0;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2); /* Slightly larger inputs */
}

label {
    display: block;
    margin: 10px 0;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
}

label:hover {
    color: #4B6BFB;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0 20px;
    border: 2px solid #E0E0E0;
    border-radius: 5px; /* Softer edges */
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    border-color: #4B6BFB;
    outline: none;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #E0E0E0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px; /* Softer edges */
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-back {
    background-color: #6c757d; /* A darker gray */
    color: white; /* ** FIX: White text color ** */
}

.btn-back:hover {
    background-color: #5a6268;
}

.btn-next {
    background-color: #4B6BFB;
    color: white;
}

.btn-next:hover {
    background-color: #3951C6;
    transform: translateY(-1px);
}

.btn-submit {
    background-color: #4CAF50; /* Green for submit */
    color: white;
    flex-grow: 1; /* Make it take more space */
    margin-left: 1rem;
}

.btn-submit:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}
.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#modulosContainer {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ** CHANGE: Responsive step indicators ** */
@media (max-width: 768px) {
    #matriculacionForm {
        padding: 1rem;
    }
    .step-indicators {
        margin-bottom: 3rem;
    }
    .step-indicator {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .step-text {
       display: none; /* Hide text on mobile */
    }
    .form-step h2 {
        font-size: 1.5rem;
    }
    .form-step h3 {
        font-size: 1.1rem;
    }
}