/* ===================================== */
/* 1. ESTILOS BASE Y CONTENEDOR PRINCIPAL */
/* ===================================== */

#mtz-zodiac-game-container {
    max-width: 650px; /* Reducimos un poco el ancho para mayor enfoque */
    margin: 30px auto;
    padding: 30px 20px;
    background: linear-gradient(145deg, #ffffff 0%, #f7f7f7 100%); /* Fondo degradado suave */
    border-radius: 15px; /* Bordes más redondeados */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 0 10px rgba(233, 30, 99, 0.3); /* Sombra elegante */
    font-family: 'Georgia', serif; /* Fuente con un toque de elegancia */
}

/* Títulos del formulario */
#mtz-form-area h2 {
    text-align: center;
    color: #880e4f; /* Color púrpura oscuro místico */
    font-size: 1.8em;
    margin-bottom: 30px;
    border-bottom: 2px solid #f8bbd0;
    padding-bottom: 10px;
}

/* ===================================== */
/* 2. ESTILOS DE ENTRADA Y FORMULARIO */
/* ===================================== */

#mtz-zodiac-form label {
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: bold;
    color: #4a148c; /* Púrpura profundo */
    font-size: 1.1em;
}

#mtz-zodiac-form input[type="text"],
#mtz-zodiac-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#mtz-zodiac-form input[type="text"]:focus,
#mtz-zodiac-form select:focus {
    border-color: #e91e63; /* Borde rosa al enfocar */
    box-shadow: 0 0 5px rgba(233, 30, 99, 0.5);
    outline: none;
}

/* Estilo para los placeholders (texto de ejemplo) */
#mtz-zodiac-form input::placeholder {
    color: #b0a6ae;
    font-style: italic;
}

/* ===================================== */
/* 3. RADIO BUTTONS (PREGUNTA 4) - MEJORADA */
/* ===================================== */

.radio-group {
    display: flex; /* Mantiene los hijos (.radio-option) en línea */
    gap: 30px;     /* Espacio entre la opción "Sí" y "No" */
    margin-top: 10px;
    margin-bottom: 10px;
}

.radio-group .radio-option {
    display: flex; 
    align-items: center; 
    cursor: pointer;
}

.radio-group input[type="radio"] {
    /* Estilos del radio button */
    margin-right: 8px;
    margin-top: 0;
    margin-bottom: 0;
    /* Para hacerlo más visible en algunos navegadores */
    width: 1.2em;
    height: 1.2em;
    accent-color: #e91e63; /* Cambia el color nativo del checkmark a rosa */
}

.radio-group label {
    /* Sobrescribe estilos de label para la opción */
    display: inline;
    font-weight: normal;
    margin: 0;
    cursor: pointer;
    color: #333; /* Color de texto más neutral */
    font-size: 1em;
}

/* ===================================== */
/* 4. BOTONES (CTA) */
/* ===================================== */

/* ===================================== */
/* 4. BOTONES (CTA) - OPTIMIZADOS MÓVIL  */
/* ===================================== */

#mtz-submit-btn, #mtz-reset-btn {
    width: 100%;
    display: block;
    padding: 15px 10px; /* Reducimos padding lateral */
    margin-top: 30px;
    background: linear-gradient(90deg, #e91e63 0%, #ff6384 100%); 
    color: white;
    border: none;
    border-radius: 10px; 
    font-size: 1.2rem; /* Usamos rem para mejor escala */
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;

    /* LLAVES PARA EVITAR DESBORDE EN MÓVIL */
    white-space: normal;    /* Permite que el texto salte de línea */
    word-wrap: break-word;  /* Corta palabras si es necesario */
    line-height: 1.4;       /* Espaciado si el texto se pone en 2 líneas */
    box-sizing: border-box; /* Crucial: el padding no suma al ancho total */
}

#mtz-submit-btn:hover, #mtz-reset-btn:hover {
    background: linear-gradient(90deg, #ff6384 0%, #e91e63 100%);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.6);
    transform: translateY(-2px);
}

/* Ajustes específicos para pantallas muy estrechas (móviles) */
@media (max-width: 480px) {
    #mtz-submit-btn, #mtz-reset-btn {
        font-size: 1rem;    /* Bajamos un poco el tamaño de letra */
        padding: 12px 8px;  /* Botón un poco más compacto */
        letter-spacing: 0.5px;
    }

    #mtz-form-area h2 {
        font-size: 1.4em;   /* Título un poco más pequeño en móvil */
    }
}
/* ===================================== */
/* 5. ESTILOS DE RESULTADOS (OUTPUT) */
/* ===================================== */

#mtz-results-area {
    padding: 10px 0;
}

#mtz-results-area h2 {
    color: #e91e63;
    font-size: 2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#mtz-results-area h3 {
    text-align: center;
    color: #4a148c;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.result-box, .result-ritual {
    padding: 25px;
    margin-top: 20px;
    border-left: 5px solid #e91e63; /* Línea de color como elemento de diseño */
    border-radius: 10px;
    background-color: #fff9fc; /* Fondo muy claro, casi blanco-rosado */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.result-box strong {
    color: #e91e63; /* Resaltar las categorías (Piedra, Color, Aroma) */
}

/* Estilo para el ritual (el texto grande) */
#res_ritual_text {
    line-height: 1.6;
    color: #333;
    font-style: italic;
    font-size: 1.05em;
}

/* Notas de consejo */
.advice-note {
    font-style: normal;
    color: #880e4f;
    text-align: center;
    margin-top: 20px;
    border-top: 1px dashed #f8bbd0;
    padding-top: 10px;
}

/* ===================================== */
/* 6. RESPONSIVIDAD (ADAPTACIÓN A MÓVILES) */
/* ===================================== */

@media (max-width: 600px) {
    #mtz-zodiac-game-container {
        margin: 10px;
        padding: 15px;
        border-radius: 0; /* Menos bordes redondeados en pantallas pequeñas */
        box-shadow: none; /* Quitamos la sombra para un diseño más limpio en móvil */
    }

    #mtz-form-area h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    #mtz-submit-btn, #mtz-reset-btn {
        padding: 12px;
        font-size: 1.1em;
        margin-top: 25px;
    }
    
    .radio-group {
        /* Se adapta si el espacio es muy reducido (opcional: quitaría el gap) */
        gap: 15px;
    }
}
@media (max-width: 480px) {
    .radio-group {
        flex-direction: column; /* En móviles muy pequeños, se ponen uno debajo de otro */
        gap: 10px;
    }
}