/* BLOG_POLL_PUBLIC_UX_V2 */

.saluts-poll-runtime {
    margin-top: 44px;
}

.saluts-poll-form {
    display: grid;
    gap: 22px;
}

.saluts-poll-question {
    margin: 0;
    padding: 26px;
    border: 1px solid #E4E6E8;
    border-radius: 20px;
    background: #FFFFFF;
}

.saluts-poll-question legend {
    width: 100%;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 7px;
    padding: 0;
    color: #4D4D4F;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
}

.saluts-poll-question-number {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #4FD1C5;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 900;
}

.saluts-poll-question-title {
    padding-top: 2px;
}

.saluts-poll-required {
    padding-top: 7px;
    color: #96989C;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.saluts-poll-question-hint {
    margin:
        0 0 18px
        46px;
    color: #777A7D;
    font-size: 14px;
    font-weight: 700;
}

.saluts-poll-options {
    display: grid;
    gap: 10px;
}

.saluts-poll-option {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    padding: 11px 15px;
    border: 1px solid #DFE1E4;
    border-radius: 14px;
    background: #FFFFFF;
    cursor: pointer;
    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

.saluts-poll-option:hover {
    border-color: #4FD1C5;
    background: rgba(79, 209, 197, .035);
}

.saluts-poll-option:has(
    input[data-poll-option]:checked
) {
    border-color: #4FD1C5;
    background: rgba(79, 209, 197, .07);
    box-shadow:
        0 0 0 3px
        rgba(79, 209, 197, .10);
}

.saluts-poll-option
input[type="radio"],
.saluts-poll-option
input[type="checkbox"] {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    accent-color: #4FD1C5;
}

.saluts-poll-own {
    flex-wrap: wrap;
}

.saluts-poll-own-input,
.saluts-poll-text {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #DFE1E4;
    border-radius: 13px;
    background: #FFFFFF;
    color: #4D4D4F;
    font: inherit;
}

.saluts-poll-text {
    min-height: 130px;
    resize: vertical;
}

.saluts-poll-own-input:focus,
.saluts-poll-text:focus {
    outline: none;
    border-color: #4FD1C5;
    box-shadow:
        0 0 0 3px
        rgba(79, 209, 197, .12);
}

.saluts-poll-scale-buttons {
    display: grid;
    grid-template-columns:
        repeat(5, 1fr);
    gap: 10px;
}

.saluts-poll-scale-button {
    position: relative;
    cursor: pointer;
}

.saluts-poll-scale-button input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.saluts-poll-scale-button span {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DFE1E4;
    border-radius: 14px;
    background: #FFFFFF;
    color: #4D4D4F;
    font-weight: 900;
    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

.saluts-poll-scale-button:hover span {
    border-color: #4FD1C5;
}

.saluts-poll-scale-button
input:checked + span {
    border-color: #4FD1C5;
    background: rgba(79, 209, 197, .08);
    box-shadow:
        0 0 0 3px
        rgba(79, 209, 197, .14);
}

.saluts-poll-scale-labels {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
    color: #737579;
    font-size: 13px;
}

.saluts-poll-scale-labels span:last-child {
    text-align: right;
}

.saluts-poll-question-error,
.saluts-poll-global-error {
    margin-top: 11px;
    color: #C94F4D;
    font-size: 13px;
    font-weight: 800;
}

.saluts-poll-submit {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    background: #FC6967;
    color: #FFFFFF;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.saluts-poll-submit:hover {
    filter: brightness(.98);
}

.saluts-poll-submit:disabled {
    opacity: .55;
    cursor: default;
}

.saluts-poll-preview-note {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #F5F5F6;
    color: #707276;
    font-size: 13px;
}


/* completion */

html.saluts-poll-modal-open,
html.saluts-poll-modal-open body {
    overflow: hidden;
}

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

.saluts-poll-complete {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px;
}

.saluts-poll-complete-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(39, 42, 45, .58);
    backdrop-filter: blur(8px);
}

.saluts-poll-complete-card {
    position: relative;
    width: min(960px, 100%);
    min-height: 500px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
    border-radius: 28px;
    background: #4D4D4F;
    box-shadow:
        0 30px 100px
        rgba(0, 0, 0, .28);
}

.saluts-poll-complete-media,
.saluts-poll-complete-media img,
.saluts-poll-complete-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.saluts-poll-complete-media img {
    object-fit: cover;
}

.saluts-poll-complete-shade {
    background:
        linear-gradient(
            90deg,
            rgba(37, 39, 42, .91) 0%,
            rgba(37, 39, 42, .76) 43%,
            rgba(37, 39, 42, .28) 100%
        );
}

.saluts-poll-complete-content {
    position: relative;
    z-index: 2;
    width: min(620px, 78%);
    box-sizing: border-box;
    padding: 54px;
    color: #FFFFFF;
}

.saluts-poll-complete-copy h2 {
    margin: 0 0 16px;
    color: #FFFFFF;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
}

.saluts-poll-complete-copy p {
    margin: 0;
    color: rgba(255, 255, 255, .96);
    font-size: 18px;
    line-height: 1.55;
}

.saluts-poll-complete-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.saluts-poll-complete-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 21px;
    border-radius: 13px;
    text-decoration: none;
    font-weight: 800;
}

.saluts-poll-complete-button.is-primary {
    background: #FC6967;
    color: #FFFFFF;
}

.saluts-poll-complete-button.is-secondary {
    border:
        1px solid
        rgba(255, 255, 255, .72);
    background:
        rgba(255, 255, 255, .10);
    color: #FFFFFF;
    backdrop-filter: blur(8px);
}

.saluts-poll-complete-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border:
        1px solid
        rgba(255, 255, 255, .46);
    border-radius: 50%;
    background:
        rgba(0, 0, 0, .20);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.saluts-poll-complete-close:hover,
.saluts-poll-complete-button:hover {
    transform: translateY(-1px);
}

@media (max-width: 720px) {

    .saluts-poll-question {
        padding: 19px;
    }

    .saluts-poll-question legend {
        grid-template-columns: 32px 1fr;
    }

    .saluts-poll-required {
        grid-column: 2;
        padding-top: 0;
    }

    .saluts-poll-question-hint {
        margin-left: 44px;
    }

    .saluts-poll-scale-buttons {
        gap: 6px;
    }

    .saluts-poll-scale-button span {
        min-height: 48px;
    }

    .saluts-poll-complete {
        padding: 12px;
    }

    .saluts-poll-complete-card {
        min-height: min(620px, calc(100vh - 24px));
        border-radius: 22px;
    }

    .saluts-poll-complete-shade {
        background:
            linear-gradient(
                0deg,
                rgba(37, 39, 42, .95) 0%,
                rgba(37, 39, 42, .78) 57%,
                rgba(37, 39, 42, .28) 100%
            );
    }

    .saluts-poll-complete-content {
        width: 100%;
        padding: 32px 24px;
    }

    .saluts-poll-complete-copy p {
        font-size: 16px;
    }

    .saluts-poll-complete-actions {
        display: grid;
    }

    .saluts-poll-complete-button {
        width: 100%;
    }
}
