.oshc-stage-panels {
    --stage-sticky-padding-top: 12px;
    --stage-sticky-padding-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #30302F;
}

.oshc-stage-panels.is-sticky {
    position: fixed;
    z-index: 19;
    margin-top: 0;
    padding: var(--stage-sticky-padding-top) 0 var(--stage-sticky-padding-bottom);
}

.oshc-stage-panels.is-sticky::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: calc(0px - var(--stage-left, 0px));
    width: 100vw;
    background: #FCF7EE;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

div.gform_wrapper.gravity-theme .oshc-stage-panels.is-sticky {
    padding-bottom: var(--stage-sticky-padding-bottom);
}

div.gform_wrapper.gravity-theme .oshc-focus-area .gfield_radio {
    border-color: transparent;
}

/* Long answer statements use one row each, independently of stage reference cards. */
div.gform_wrapper.gravity-theme .gfield.oshc-statement-question {
    grid-column: 1 / -1;
}

div.gform_wrapper.gravity-theme .oshc-statement-question .gfield_radio {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
}

div.gform_wrapper.gravity-theme .oshc-statement-question .gfield_radio .gchoice {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start !important;
    gap: 12px;
    padding: 0;
    margin: 0;
}

div.gform_wrapper.gravity-theme .oshc-statement-question .gfield-choice-input {
    position: relative;
    order: 0;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    transform: none;
}

div.gform_wrapper.gravity-theme .oshc-statement-question .gfield_radio label {
    order: 1;
    flex: 1;
    min-width: 0;
    max-width: none;
    margin: 0 !important;
    padding: 0;
    line-height: 1.5;
    text-align: left !important;
}

div.gform_wrapper.gravity-theme .gform_page:has([data-oshc-stage-panels]) .tip-panel {
    border-color: transparent;
}

body:has(.oshc-stage-panels.is-sticky) .header--simple .header__main::after {
    display: none;
}

.oshc-stage-panels__panel {
    min-width: 0;
    border-top: 6px solid var(--stage-colour);
    border-radius: 10px;
    background: #fff;
}

.oshc-stage-panels__panel:not([open]) {
    align-self: start;
}

.oshc-stage-panels__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 20px 16px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.oshc-stage-panels__heading::-webkit-details-marker {
    display: none;
}

.oshc-stage-panels__arrow {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-right: 2px solid #008080;
    border-bottom: 2px solid #008080;
    transform: rotate(45deg);
}

.oshc-stage-panels__panel[open] .oshc-stage-panels__arrow {
    transform: rotate(225deg);
}

.oshc-stage-panels__content {
    padding: 0 16px 20px;
}

.oshc-stage-panels__content p {
    margin: 0 0 20px;
    font-size: inherit;
    line-height: inherit;
}

.oshc-stage-panels__content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px), screen and (max-width: 812px) and (orientation: landscape) {
    .oshc-stage-panels {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
