.yc-poll {
    box-sizing: border-box;
    width: 100%;
    margin: 28px 0;
    padding: 24px;
    border: 1px solid var(--yc-poll-border-color, #e5e7eb);
    border-radius: 14px;
    background: var(--yc-poll-background-color, #ffffff);
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
    text-align: center;
    overflow: hidden;
}

.yc-poll [hidden] {
    display: none !important;
}

.yc-poll__question {
    margin: 0 0 18px;
    color: var(--yc-poll-question-color, #222222) !important;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.02em;
}

.yc-poll__buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.yc-poll__button,
.yc-poll__button:visited {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding: 14px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--yc-poll-button-color, #173b74) !important;
    color: var(--yc-poll-button-text-color, #ffffff) !important;
    font: inherit;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 800;
    text-decoration: none !important;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.16);
    transition: transform .14s ease, filter .14s ease, box-shadow .14s ease, opacity .14s ease;
    cursor: pointer;
}

.yc-poll__button:hover,
.yc-poll__button:focus,
.yc-poll__button:active {
    color: var(--yc-poll-button-text-color, #ffffff) !important;
    text-decoration: none !important;
}

.yc-poll__button:hover,
.yc-poll__button:focus {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(0,0,0,.20);
}

.yc-poll__button:active {
    transform: translateY(0);
}

.yc-poll__email-step,
.yc-poll__success-step {
    animation: ycPollReveal .22s ease-out both;
}

.yc-poll__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #d71920;
    color: #fff;
    font-size: clamp(16px, 2.1vw, 20px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: .055em;
}

.yc-poll__cta {
    margin: 0 auto 18px;
    max-width: 700px;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.025em;
}

.yc-poll__selected {
    display: none;
}

.yc-poll__email-form {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.yc-poll__email {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 12px 13px;
    border: 1px solid #aeb6bf;
    border-radius: 9px;
    background: #fff;
    color: #1f2328;
    font: inherit;
    font-size: 16px;
    line-height: 1.3;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
}

.yc-poll__email:focus {
    outline: 2px solid #2271b1;
    outline-offset: 1px;
    border-color: #2271b1;
}

.yc-poll__email[aria-invalid="true"] {
    border-color: #b42318;
}

.yc-poll__submit {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 55px;
    margin-top: 10px;
    padding: 13px 18px;
    border: 0;
    border-radius: 9px;
    background: #d71920;
    color: #fff;
    font: inherit;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(0,0,0,.16);
    transition: transform .14s ease, filter .14s ease, opacity .14s ease;
}

.yc-poll__submit:hover,
.yc-poll__submit:focus {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.yc-poll__submit:disabled {
    opacity: .68;
    cursor: wait;
    transform: none;
}

.yc-poll__privacy {
    margin: 8px 0 0;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

.yc-poll__error {
    min-height: 18px;
    margin-top: 6px;
    color: #ffb4b4;
    -webkit-text-fill-color: #ffb4b4;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
}

.yc-poll__email-step {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.yc-poll__email-step .yc-poll__email {
    color: #1f2328;
    -webkit-text-fill-color: #1f2328;
}

.yc-poll__email-step .yc-poll__email::placeholder {
    color: #6b7280;
    -webkit-text-fill-color: #6b7280;
    opacity: 1;
}

.yc-poll__success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #16803a;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
}

.yc-poll__success-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.02em;
}

.yc-poll__success-subtitle {
    margin: 5px 0 18px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
}

.yc-poll__results {
    display: grid;
    gap: 15px;
    max-width: 620px;
    margin: 0 auto;
    text-align: left;
}

.yc-poll__result-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 6px;
}

.yc-poll__result-label {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 800;
}

.yc-poll__result-percent {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
}

.yc-poll__result-track {
    height: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.yc-poll__result-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--yc-result-color, #173b74);
    transition: width .55s ease;
}

.yc-poll__total-votes {
    margin-top: 14px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
}

/* Force all final results text to remain readable on dark poll backgrounds,
   even when the active WordPress theme applies its own text colors. */
.yc-poll .yc-poll__success-step,
.yc-poll .yc-poll__success-step .yc-poll__success-title,
.yc-poll .yc-poll__success-step .yc-poll__success-subtitle,
.yc-poll .yc-poll__success-step .yc-poll__result-label,
.yc-poll .yc-poll__success-step .yc-poll__result-percent,
.yc-poll .yc-poll__success-step .yc-poll__total-votes {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

@keyframes ycPollReveal {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .yc-poll {
        padding: 18px;
        border-radius: 12px;
    }

    .yc-poll__buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .yc-poll__button,
    .yc-poll__button:visited {
        width: 100%;
        min-height: 56px;
        font-size: 17px;
    }
}

/* Strong theme-override protection for sites that force button/link colors. */
.yc-poll .yc-poll__buttons .yc-poll__button,
.yc-poll .yc-poll__buttons .yc-poll__button:hover,
.yc-poll .yc-poll__buttons .yc-poll__button:focus,
.yc-poll .yc-poll__buttons .yc-poll__button:active {
    color: var(--yc-poll-button-text-color, #ffffff) !important;
    -webkit-text-fill-color: var(--yc-poll-button-text-color, #ffffff) !important;
    background-color: var(--yc-poll-button-color, #173b74) !important;
}

.yc-poll .yc-poll__submit,
.yc-poll .yc-poll__submit:hover,
.yc-poll .yc-poll__submit:focus,
.yc-poll .yc-poll__submit:active {
    background: #d71920 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* v1.5.2: extra protection against aggressive theme typography rules. */
.yc-poll .yc-poll__success-step *:not(.yc-poll__result-track):not(.yc-poll__result-bar) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}
