/* Gravity Forms: form 7, field 1. Keep native radios for submission and keyboard use. */
#input_7_1.star-rating {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
}

#input_7_1.star-rating .gchoice {
    position: relative;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
}

#input_7_1.star-rating input[type="radio"],
#input_7_1.star-rating .star-rating__text {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

#input_7_1.star-rating label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 48px;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 5px;
    cursor: pointer;
    touch-action: manipulation;
}

#input_7_1.star-rating label::before,
#input_7_1.star-rating label::after {
    content: none;
    display: none;
}

#input_7_1.star-rating .star-rating__star {
    color: #b1b1b1;
    font-family: Arial, sans-serif;
    font-size: 40px;
    line-height: 1;
    transition: .3s;
}

#input_7_1.star-rating .is-filled .star-rating__star {
    color: #fcc200;
}

#input_7_1.star-rating input:focus-visible + label {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

#input_7_1.star-rating input:disabled + label {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Gravity Forms: form 7, field 7. Colours follow values, including an optional 0. */
#field_7_7 .ginput_container_radio {
    display: grid;
    width: 100%;
    max-width: 800px;
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
    margin-top: 20px;
}

#field_7_7 .ginput_container_radio::before,
#field_7_7 .ginput_container_radio::after {
    grid-row: 2;
    font-size: 16px;
    line-height: 1.4;
}

#field_7_7 .ginput_container_radio::before {
    content: "Helemaal niet waarschijnlijk";
    grid-column: 1;
}

#field_7_7 .ginput_container_radio::after {
    content: "Zeer waarschijnlijk";
    grid-column: 2;
    text-align: right;
}

#input_7_7 {
    display: flex;
    flex-flow: row wrap;
    grid-column: 1 / -1;
    grid-row: 1;
    gap: 12px;
}

#input_7_7 .gchoice {
    position: relative;
    flex: 1 0 44px;
    margin: 0;
    padding: 0;
    min-width: 0;
}

#input_7_7 input[type="radio"] {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

#input_7_7 label {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 56px;
    margin: 0;
    padding: 8px 4px;
    border: 2px solid transparent;
    border-radius: 7px;
    background: #f5292d;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
}

#input_7_7 label::before,
#input_7_7 label::after {
    content: none;
    display: none;
}

#input_7_7 input[value="0"] + label {
    background: #f5292d;
}

#input_7_7 input[value="1"] + label {
    background: #ff3e43;
}

#input_7_7 input[value="2"] + label {
    background: #ff6745;
}

#input_7_7 input[value="3"] + label {
    background: #ff8935;
}

#input_7_7 input[value="4"] + label {
    background: #ffa722;
}

#input_7_7 input[value="5"] + label {
    background: #ffbf00;
}

#input_7_7 input[value="6"] + label {
    background: #e1c600;
}

#input_7_7 input[value="7"] + label {
    background: #b4ce00;
}

#input_7_7 input[value="8"] + label {
    background: #98cf00;
}

#input_7_7 input[value="9"] + label {
    background: #76cc00;
}

#input_7_7 input[value="10"] + label {
    background: #20b000;
}

@media (hover: hover) {
    #input_7_7 input:not(:disabled) + label:hover {
        border-color: #333;
    }
}

#input_7_7 input:checked + label {
    border-color: #333;
    box-shadow: inset 0 0 0 2px #fff;
}

#input_7_7 input:focus-visible + label {
    outline: 2px solid #333;
    outline-offset: 3px;
}

#input_7_7 input:disabled + label {
    opacity: 0.45;
    cursor: not-allowed;
}
