.choice-group {
    padding: 14px;
    border: 1px solid #aebbb1;
    border-radius: 10px;
}

.choice-group legend {
    padding: 0 6px;
    font-weight: 700;
}

.choice-group > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.choice-group label {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    background: var(--soft);
    border-radius: 8px;
    font-weight: 500;
}

.choice-group input[type="checkbox"],
.choice-group input[type="radio"] {
    width: 22px;
    min-height: 22px;
    margin: 0;
    padding: 0;
    accent-color: var(--green);
}

.choice-group label:has(input:checked) {
    color: #123d22;
    background: #e4f4e8;
    box-shadow: inset 0 0 0 2px var(--green);
}

.rating-group > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-day-feedback-form .history-panel {
    margin: 18px 0;
}

.field-day-feedback-form .choice-group {
    margin-top: 14px;
}

.field-day-feedback-form textarea {
    min-height: 90px;
}

.lottery-panel {
    text-align: center;
}

.lottery-wheel {
    position: relative;
    width: min(78vw, 260px);
    height: min(78vw, 260px);
    margin: 22px auto 16px;
    overflow: visible;
    color: white;
    background: var(--lottery-gradient);
    border: 10px solid #fff4cf;
    border-radius: 999px;
    box-shadow:
        0 18px 36px rgb(10 45 26 / 22%),
        inset 0 0 0 2px rgb(255 255 255 / 60%),
        inset 0 0 30px rgb(0 0 0 / 12%);
}

.lottery-wheel::before {
    position: absolute;
    inset: 12px;
    z-index: 1;
    pointer-events: none;
    content: "";
    border: 1px dashed rgb(255 255 255 / 65%);
    border-radius: inherit;
}

.lottery-wheel__center {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    color: #123d22;
    background: radial-gradient(circle at 35% 30%, #fff7d1 0, #f6c34b 52%, #a46a12 100%);
    border: 5px solid white;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgb(10 45 26 / 28%);
    font-weight: 900;
    transform: translate(-50%, -50%);
}

.lottery-wheel__labels {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}

.lottery-wheel__labels span {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 70px;
    color: white;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 1px 4px rgb(0 0 0 / 38%);
    transform:
        translate(-50%, -50%)
        rotate(var(--segment-angle))
        translateY(-84px)
        rotate(var(--segment-counter-angle));
}

.lottery-wheel__pointer {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    transform: rotate(0deg);
    transform-origin: 50% 50%;
}

.lottery-wheel__pointer span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 12px;
    height: calc(50% - 34px);
    min-height: 70px;
    background: linear-gradient(180deg, #101b14 0%, #263528 58%, #f6c34b 100%);
    border: 2px solid #fff7d1;
    border-radius: 999px 999px 8px 8px;
    filter: drop-shadow(0 6px 8px rgb(0 0 0 / 30%));
    transform: translate(-50%, -100%);
    transform-origin: 50% 100%;
}

.lottery-wheel__pointer span::before {
    position: absolute;
    top: -8px;
    left: 50%;
    width: 0;
    height: 0;
    content: "";
    border-right: 11px solid transparent;
    border-bottom: 18px solid #101b14;
    border-left: 11px solid transparent;
    transform: translateX(-50%);
}

.lottery-wheel__pointer span::after {
    position: absolute;
    right: -5px;
    bottom: -9px;
    left: -5px;
    height: 18px;
    content: "";
    background: #101b14;
    border: 3px solid #fff7d1;
    border-radius: 999px;
}

.lottery-wheel.is-spinning {
    animation: lottery-pulse 0.45s ease-in-out infinite alternate;
}

.lottery-wheel.is-spinning .lottery-wheel__pointer {
    animation: lottery-pointer-spin 0.45s linear infinite;
}

.lottery-wheel--result .lottery-wheel__pointer {
    animation: lottery-pointer-result 2.6s cubic-bezier(0.12, 0.8, 0.22, 1) both;
}

.lottery-prizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 14px 0 18px;
}

.lottery-prizes span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 8px 10px;
    background: #fff8df;
    border: 1px solid #f0d27c;
    border-left: 6px solid var(--segment-color);
    border-radius: 999px;
    font-size: 14px;
}

.lottery-prizes strong {
    color: #123d22;
}

.lottery-prizes em {
    color: #647267;
    font-style: normal;
}

.lottery-delivery-form {
    margin-top: 18px;
    text-align: left;
}

.lottery-phone-form {
    max-width: 360px;
    margin: 18px auto 0;
    text-align: left;
}

.lottery-phone-form .primary-button {
    width: 100%;
}

.lottery-phone-tip {
    margin: 8px 0 12px;
    color: #647267;
    font-size: 13px;
    line-height: 1.5;
}

@keyframes lottery-pointer-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes lottery-pointer-result {
    0% {
        transform: rotate(0deg);
    }

    72% {
        transform: rotate(calc(var(--lottery-final-angle) - 18deg));
    }

    86% {
        transform: rotate(calc(var(--lottery-final-angle) + 8deg));
    }

    100% {
        transform: rotate(var(--lottery-final-angle));
    }
}

@keyframes lottery-pulse {
    from {
        filter: saturate(1);
        transform: scale(1);
    }

    to {
        filter: saturate(1.25);
        transform: scale(1.025);
    }
}

.calculation-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    color: #123d22;
    background: #e4f4e8;
    border: 1px solid #b8ddc1;
    border-radius: 10px;
}

.calculation-card span {
    font-size: 13px;
}

.calculation-card strong {
    font-size: 18px;
}

.calculation-card output {
    font-variant-numeric: tabular-nums;
}

.capture-control {
    display: grid;
    gap: 8px;
    padding: 15px;
    background: #f1f7f2;
    border: 1px solid #b8d3be;
    border-radius: 12px;
    font-weight: 700;
}

.capture-control input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.capture-button {
    min-height: 52px;
    color: white;
    background: var(--green);
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
}

.capture-control small {
    color: var(--muted);
    font-weight: 500;
}

.video-capture-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.video-capture-grid figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.video-capture-grid video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #071a0f;
}

.video-capture-grid figcaption,
.video-capture-grid form {
    padding: 8px 10px;
}

.video-capture-grid button {
    color: var(--danger);
    background: transparent;
    border: 0;
    text-decoration: underline;
}

.review-link {
    color: #f5cd6c;
    font-weight: 700;
    text-decoration: none;
}

.home-return-link {
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.anomaly-action {
    margin-bottom: 18px;
}

.anomaly-item {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.anomaly-item div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.anomaly-item span,
.anomaly-item small {
    color: var(--muted);
}

.anomaly-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}

.anomaly-thumbs img {
    width: 110px;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
}

.review-actions {
    display: grid;
    gap: 18px;
    padding: 24px;
    margin: 24px 0;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.review-actions h2 {
    margin: 0;
}

.reject-form {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.locked-note.rejected {
    color: #7c5a00;
    background: #fff2c7;
}

.stage-dots i.rejected {
    background: #d87b72;
}

.status.regional_approved,
.status.data_submitted,
.status.data_regional_approved,
.status.hq_approved,
.status.published {
    color: #17622d;
    background: #e4f4e8;
}

.status.rejected,
.status.data_rejected {
    color: #8c2d25;
    background: #ffedeb;
}

.apply-demo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 24px;
    margin-bottom: 24px;
    color: white;
    background: linear-gradient(135deg, var(--dark), var(--green));
    border-radius: 18px;
}

.apply-demo-banner h2,
.apply-demo-banner p {
    margin: 4px 0;
}

.apply-demo-banner p {
    color: rgb(255 255 255 / 72%);
}

.status.pending {
    color: #7c5a00;
    background: #fff2c7;
}

.field-day-status-panel {
    padding: 18px;
}

.status-flow {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 14px 0 0;
    list-style: none;
}

.status-flow li {
    position: relative;
    padding: 12px 12px 12px 38px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8faf7;
}

.status-flow li::before {
    position: absolute;
    top: 14px;
    left: 13px;
    width: 14px;
    height: 14px;
    content: "";
    border: 2px solid #cfd8cf;
    border-radius: 999px;
    background: white;
}

.status-flow li.done {
    border-color: #b9dcc0;
    background: #eef8f0;
}

.status-flow li.done::before {
    border-color: #1f7a3a;
    background: #1f7a3a;
}

.status-flow li.current {
    border-color: var(--green);
    background: #f1f8e6;
    box-shadow: 0 8px 20px rgb(30 91 56 / 10%);
}

.status-flow li.current::before {
    border-color: var(--green);
    background: var(--green);
}

.status-flow li strong,
.status-flow li small {
    display: block;
}

.status-flow li strong {
    font-size: 15px;
    color: var(--ink);
}

.status-flow li small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

.status-current {
    margin: 14px 0 0;
}

@media (min-width: 760px) {
    .status-flow {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .status-flow li {
        padding: 14px;
    }

    .status-flow li::before {
        position: static;
        display: block;
        margin-bottom: 10px;
    }
}

.status.approved {
    color: #17622d;
    background: #e4f4e8;
}

.landing-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.landing-action {
    padding: 28px;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 12px 30px rgb(10 45 26 / 7%);
}

.landing-action.primary {
    color: white;
    background: linear-gradient(135deg, var(--dark), var(--green));
}

.landing-action > span {
    color: var(--gold);
    font-weight: 800;
}

.landing-action h2 {
    margin: 18px 0 6px;
}

.landing-action p {
    margin: 0;
    color: var(--muted);
}

.landing-action.primary p {
    color: rgb(255 255 255 / 72%);
}

.status-query-panel {
    max-width: 620px;
    padding: 24px;
    margin: 28px 0 60px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.application-hint {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.application-hint a {
    color: var(--green);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 680px) {
    .apply-demo-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .choice-group > div {
        grid-template-columns: 1fr;
    }

    .calculation-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .video-capture-grid {
        grid-template-columns: 1fr;
    }
}

.site-card-actions,
.site-task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.current-collection-stage {
    display: grid;
    width: min(520px, 100%);
    min-height: 174px;
    place-content: center;
    padding: 26px;
    margin: 0 auto 20px;
    color: white;
    background: linear-gradient(135deg, #174b2a, #2f7a42);
    border: 3px solid var(--gold);
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 16px 36px rgb(23 75 42 / 22%);
}

.current-collection-stage small {
    color: #ffe08a;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.current-collection-stage strong {
    margin: 4px 0;
    font-size: clamp(30px, 7vw, 44px);
    line-height: 1.2;
}

.current-collection-stage span {
    color: rgb(255 255 255 / 82%);
}

.current-collection-stage.completed {
    color: var(--green);
    background: #edf5ee;
    border-color: #9bc5a4;
    box-shadow: none;
}

.current-collection-stage.completed small,
.current-collection-stage.completed span {
    color: var(--muted);
}

.stage-row.current {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgb(239 185 62 / 22%);
}

.site-card-actions > a,
.site-task-actions > a {
    flex: 1 1 180px;
    text-align: center;
}

.site-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.site-info-grid .wide {
    grid-column: 1 / -1;
}

.field-help {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.location-panel {
    border: 1px solid rgb(32 105 58 / 22%);
    background: #f3f8f1;
}

.location-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.location-heading h2,
.location-heading p {
    margin: 0;
}

.location-heading p,
.location-status {
    color: var(--muted);
}

.location-status.error {
    color: #a12828;
}

@media (max-width: 680px) {
    .site-info-grid {
        grid-template-columns: 1fr;
    }

    .site-info-grid .wide {
        grid-column: auto;
    }

    .location-heading {
        align-items: stretch;
        flex-direction: column;
    }
}
