/*
 * Plugin Name: NewTR Quiz Styles
 * Description: Stylesheet for the NewTR Quiz plugin.
 * Version: 1.0
 */
/* --- Contenedor Principal --- */
#newtr-quiz-root {
    max-width: 800px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* --- Tarjetas de Preguntas --- */
.newtr-q-card {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.newtr-q-card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.newtr-q-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #1a1a1a;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* --- Imágenes --- */
.q-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    display: block;
}

/* --- Opciones (Radio Buttons) --- */
.newtr-opts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newtr-opts label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.newtr-opts label:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.newtr-opts input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

/* --- Botones --- */
.newtr-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto;
    background: #ef7434;
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease;
}

.newtr-btn:hover {
    opacity: 50%;
}

.cta-btn {
    display: inline-block;
    background: #ef7434;
    color: #fff !important;
    padding: 7px 28px;
    text-decoration: none;
    border-radius: 60px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 0 #b02a2c;
}

.cta-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #b02a2c;
}

/* --- Área de Resultados --- */
#newtr-res-wrap {
    margin-top: 40px;
    padding: 30px;
    background: #f0f6fb;
    border-radius: 15px;
    border: 1px solid #d0e4f5;
}

#newtr-res-content h2 {
    margin-top: 0;
}
 
/* --- Formulario de Contacto --- */
#newtr-contact-form {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    border: 1px solid #eee;
}

#newtr-contact-form input {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.err-mark {
    background: #d63638;
    color: #fff;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 5px;
    vertical-align: middle;
}

.newtr-error-field {
    border: 2px solid #d63638 !important;
    background-color: #fff8f8 !important;
}

/* --- Texto Post-Pregunta --- */
.post-txt {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dotted #ccc;
}

/* --- Mensajes de Estado --- */
#ntr-status {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
}