.pt-test {
    max-width: 680px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Intro ── */
.pt-intro {
    text-align: center;
    padding: 40px 24px;
}
.pt-intro h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    line-height: 1.3;
}
.pt-intro p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 8px;
}
.pt-time {
    font-size: 0.9rem !important;
    color: #888 !important;
    margin-bottom: 28px !important;
}

/* ── Buttons — override agresivo para evitar que el tema los pise ── */
button.pt-btn-start,
.pt-btn-start {
    background-color: var(--theme-palette-color-1, #9b4f8e) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 40px !important;
    font-size: 1.1rem !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    display: inline-block !important;
    transition: background-color .2s, transform .1s !important;
    opacity: 1 !important;
}
button.pt-btn-start:hover,
.pt-btn-start:hover {
    background-color: #7a3a6e !important;
    color: #fff !important;
    opacity: 1 !important;
    transform: translateY(-1px) !important;
}

.pt-btn-wa {
    display: inline-block;
    background-color: #25d366 !important;
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color .2s;
}
.pt-btn-wa:hover {
    background-color: #1da851 !important;
    color: #fff !important;
}

button.pt-btn-prev,
button.pt-btn-next {
    background-color: transparent !important;
    border: 2px solid var(--theme-palette-color-1, #9b4f8e) !important;
    color: var(--theme-palette-color-1, #9b4f8e) !important;
    padding: 10px 28px !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: background-color .2s !important;
}
button.pt-btn-next {
    background-color: var(--theme-palette-color-1, #9b4f8e) !important;
    color: #fff !important;
}
button.pt-btn-prev:hover { background-color: #f5f5f5 !important; }
button.pt-btn-next:hover { background-color: #7a3a6e !important; }

/* ── Progress ── */
.pt-progress-bar {
    width: 100%;
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    margin-bottom: 16px;
    overflow: hidden;
}
.pt-progress-fill {
    height: 100%;
    background: var(--theme-palette-color-1, #9b4f8e);
    border-radius: 3px;
    transition: width .4s ease;
    width: 10%;
}
.pt-counter {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

/* ── Questions ── */
.pt-questions {
    padding: 24px 0;
}
.pt-question-wrap .pt-q-text {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.5;
}
button.pt-option {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    background-color: #fff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    margin-bottom: 10px !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: border-color .15s !important;
    color: #333 !important;
}
button.pt-option:hover {
    border-color: var(--theme-palette-color-1, #9b4f8e) !important;
    background-color: #fff !important;
    color: #000 !important;
}
button.pt-option.selected {
    border-color: var(--theme-palette-color-1, #9b4f8e) !important;
    background-color: var(--theme-palette-color-1, #9b4f8e) !important;
    color: #fff !important;
}
button.pt-option.selected:hover {
    background-color: var(--theme-palette-color-1, #9b4f8e) !important;
    color: #fff !important;
}

/* ── Nav ── */
.pt-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

/* ── Capture form ── */
.pt-capture {
    padding: 32px 24px;
    text-align: center;
}
.pt-capture h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.pt-capture > p {
    color: #555;
    margin-bottom: 28px;
}
.pt-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 420px;
    margin: 0 auto;
}
.pt-form input {
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 13px 16px !important;
    font-size: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color .2s !important;
    outline: none !important;
    font-family: inherit !important;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
    background-color: #fff !important;
}
.pt-form input:focus {
    border-color: var(--theme-palette-color-1, #9b4f8e) !important;
}
.pt-form input:-webkit-autofill,
.pt-form input:-webkit-autofill:hover,
.pt-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #333 !important;
    -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}
button.pt-btn-submit {
    background-color: var(--theme-palette-color-1, #9b4f8e) !important;
    color: #fff !important;
    border: none !important;
    padding: 15px !important;
    border-radius: 50px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color .2s !important;
    margin-top: 4px !important;
}
button.pt-btn-submit:hover {
    background-color: #7a3a6e !important;
}
.pt-form-note {
    font-size: 0.8rem !important;
    color: #aaa !important;
    margin-top: 4px !important;
}
.pt-form-error {
    color: #c0392b;
    font-size: 0.9rem;
    display: none;
    margin-top: -6px;
}

/* ── Result ── */
.pt-result {
    text-align: center;
    padding: 32px 24px;
}
.pt-semaforo {
    font-size: 4rem;
    margin-bottom: 12px;
}
.pt-result h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    line-height: 1.4;
}
.pt-result p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.pt-cta-box {
    background: #f9f4f8;
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}
.pt-cta-text {
    margin-bottom: 16px !important;
    font-size: 1rem !important;
}

/* ── Utilities ── */
.pt-hidden { display: none !important; }
.pt-step { display: block; }

/* ── Selector ── */
.pt-selector-wrap {
    max-width: 720px;
    margin: 0 auto;
}
.pt-selector-title {
    text-align: center;
    font-size: 1.7rem;
    margin-bottom: 10px;
}
.pt-selector-sub {
    text-align: center;
    color: #666;
    margin-bottom: 32px;
    font-size: 1rem;
}
.pt-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
@media (max-width: 600px) {
    .pt-cards { grid-template-columns: 1fr; }
}
.pt-card {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}
.pt-card:hover {
    border-color: var(--theme-palette-color-1, #9b4f8e);
    box-shadow: 0 8px 24px rgba(155,79,142,.15);
    transform: translateY(-3px);
}
.pt-card.active {
    border-color: var(--theme-palette-color-1, #9b4f8e);
    background: #fdf5fc;
}
.pt-card-emoji { font-size: 2.8rem; line-height: 1; }
.pt-card h3 { font-size: 1.1rem; font-weight: 700; color: #222; margin: 0; line-height: 1.3; }
.pt-card p  { font-size: 0.9rem; color: #666; margin: 0; line-height: 1.5; }
.pt-card-pill {
    background: var(--theme-palette-color-1, #9b4f8e);
    color: #fff;
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 4px;
}

/* ── Test dentro del selector ── */
.pt-test-hidden { display: none !important; }
.pt-test {
    border-top: 2px solid #f0e6ef;
    padding-top: 32px;
    margin-top: 8px;
}
button.pt-back {
    background: none !important;
    border: none !important;
    color: var(--theme-palette-color-1, #9b4f8e) !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
}
button.pt-back:hover { opacity: .7 !important; }

/* ── Botones post-resultado ── */
button.pt-btn-retry,
button.pt-btn-other,
button.pt-btn-finish {
    background: none !important;
    border: none !important;
    color: #888 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    margin-top: 12px !important;
    text-decoration: underline !important;
    display: inline-block !important;
    margin-right: 16px !important;
}
button.pt-btn-other {
    color: var(--theme-palette-color-1, #9b4f8e) !important;
}
button.pt-btn-finish {
    color: #555 !important;
    font-weight: 600 !important;
}
