/* Nuna Brief Form — Estilo tipo Typeform: negro, blanco, Outfit, curvas */

.nuna-brief-wrap {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    color: #111;
    background: #fff;
}

/* Barra de progreso y contador */
.nuna-brief-progress-wrap {
    margin-bottom: 2rem;
}

.nuna-brief-progress {
    height: 4px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.nuna-brief-progress-bar {
    height: 100%;
    background: #111;
    border-radius: 4px;
}

.nuna-brief-step-counter {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.nuna-brief-step-counter span {
    font-weight: 600;
    color: #111;
}

/* Pantalla inicial */
.nuna-brief-start {
    text-align: center;
    padding: 3rem 1rem;
    transition: opacity 0.25s ease;
}

.nuna-brief-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.nuna-brief-subtitle {
    font-size: 1rem;
    color: #444;
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.nuna-brief-time {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 2rem;
}

/* Botones */
.nuna-brief-btn {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border: none;
}

.nuna-brief-btn-primary {
    background: #111;
    color: #fff;
}

.nuna-brief-btn-primary:hover {
    background: #333;
}

.nuna-brief-btn-back,
.nuna-brief-btn-next {
    background: transparent;
    color: #111;
}

.nuna-brief-btn-next {
    background: #111;
    color: #fff;
}

.nuna-brief-btn-next:hover {
    background: #333;
    color: #fff;
}

.nuna-brief-btn-back {
    background: #e5e5e5;
    color: #555;
}

.nuna-brief-btn-back:hover {
    background: #d0d0d0;
    color: #333;
}

/* Formulario y pasos */
.nuna-brief-form {
    min-height: 280px;
}

.nuna-brief-step {
    padding: 0.5rem 0 2rem;
}

.nuna-brief-step-inner {
    margin-bottom: 1.5rem;
}

/* Campo "Otro, especifica" que aparece en la misma pantalla */
.nuna-brief-inline-other {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.nuna-brief-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #111;
}

.nuna-brief-required {
    color: #c00;
}

.nuna-brief-input,
.nuna-brief-options {
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    color: #111;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.nuna-brief-input:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.nuna-brief-input.nuna-brief-error {
    border-color: #c00;
}

textarea.nuna-brief-input {
    min-height: 120px;
    resize: vertical;
}

.nuna-brief-select,
.nuna-brief-date {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.nuna-brief-date {
    min-height: 3rem;
}

/* Otras páginas (dinámico) */
.nuna-brief-paginas-otras {
    margin-top: 0.5rem;
}

.nuna-brief-paginas-otras-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.nuna-brief-pagina-otra-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nuna-brief-pagina-otra-row .nuna-brief-input {
    flex: 1;
}

.nuna-brief-remove-page {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
}

.nuna-brief-remove-page:hover {
    background: #e0e0e0;
    color: #111;
}

.nuna-brief-btn-add-page {
    background: #f5f5f5;
    color: #111;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}

.nuna-brief-btn-add-page:hover {
    background: #eee;
}

/* Opciones (radio / checkbox) */
.nuna-brief-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    border: none;
    background: transparent;
}

.nuna-brief-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #f8f8f8;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.nuna-brief-option:hover {
    background: #f0f0f0;
}

.nuna-brief-option input {
    margin: 0;
}

.nuna-brief-option.nuna-brief-error {
    border-color: #c00;
}

/* Consentimiento */
.nuna-brief-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 12px;
    cursor: pointer;
}

.nuna-brief-consent input {
    margin: 0.25rem 0 0;
}

.nuna-brief-consent span {
    font-size: 0.95rem;
    color: #333;
}

/* Navegación */
.nuna-brief-nav {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

@media (max-width: 640px) {
    .nuna-brief-nav {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding-bottom: 1rem;
    }
}

/* Pantalla de agradecimiento */
.nuna-brief-thanks {
    text-align: center;
    padding: 3rem 1rem;
    transition: opacity 0.3s ease;
}

.nuna-brief-thanks h2 {
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
}

.nuna-brief-thanks p {
    color: #555;
    margin: 0;
}
