/* --- ESTILOS GENERALES DEL FORMULARIO --- */
.storybook-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
}

.sectionHeading {
    color: #5f56c6 !important; /* COLOR PRINCIPAL */
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 15px;
    margin-bottom: 5px;
    text-transform: uppercase;
    text-align: center;
}

.sectionSub {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

/* --- SELECTOR DE MONSTRUOS --- */
.contenedor-monstruos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.colour-option {
    position: relative;
    width: 100px;
}

.colour-option-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.colour-option-label {
    display: block;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 50%;
    padding: 5px;
    transition: all 0.3s ease;
}

.colour-option-label img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

.colour-option-label:hover img {
    transform: scale(1.08);
}

.colour-option-input:checked + .colour-option-label {
    border-color: #5f56c6;
    background-color: #eeeefe; /* COLOR SECUNDARIO */
}

.colour-option-input:checked + .colour-option-label img {
    transform: scale(1.05);
}

/* --- INPUTS DE TEXTO Y ÁREAS --- */
.main-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444444;
    font-size: 0.95rem;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    background-color: #fafafa;
    font-size: 1rem;
    color: #333333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
textarea:focus {
    border-color: #5f56c6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(95, 86, 198, 0.15);
    outline: none;
}

/* --- SELECTOR DE GÉNERO --- */
.gender-options {
    display: flex;
    gap: 25px;
    margin-top: 5px;
}

.radio-custom {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
}

.radio-custom input {
    margin-right: 8px;
    accent-color: #5f56c6;
    transform: scale(1.2);
}

/* --- BOTÓN DE ENVÍO FINAL --- */
.btn-submit {
    display: block;
    width: 100%;
    background-color: #5f56c6;
    color: #ffffff;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(95, 86, 198, 0.2);
}

.btn-submit:hover {
    background-color: #564eb4; /* COLOR HOVER */
}

.btn-submit:active {
    transform: scale(0.98);
}

/* --- INDICADOR DE PROGRESO --- */
.step-indicator {
    margin-bottom: 25px;
    text-align: center;
}

#step-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5f56c6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #eeeefe;
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #5f56c6;
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* --- NAVEGACIÓN PASO A PASO (ACORDEÓN) --- */
.form-section {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.navigation-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-next, .btn-back {
    flex: 1;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next {
    background-color: #e0e0e0;
    color: #777777;
    cursor: not-allowed;
}

.btn-next.enabled {
    background-color: #5f56c6;
    color: #ffffff;
    cursor: pointer;
}

.btn-next.enabled:hover {
    background-color: #564eb4;
}

.btn-back {
    background-color: #eeeefe;
    color: #5f56c6;
    border: 1px solid rgba(95, 86, 198, 0.2);
}

.btn-back:hover {
    background-color: rgba(95, 86, 198, 0.1);
}

/* --- ALERTAS --- */
.custom-alert {
    display: none;
    background-color: #ffeaea;
    color: #cc0000;
    padding: 12px;
    border-left: 4px solid #cc0000;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
}

/* --- ADAPTACIÓN MÓVIL --- */
@media (max-width: 480px) {
    .storybook-container {
        padding: 20px 15px;
        margin: 15px auto;
    }
    .contenedor-monstruos {
        gap: 10px;
    }
    .colour-option {
        width: 85px;
    }
    .navigation-buttons {
        flex-direction: column-reverse;
        gap: 10px;
    }
}