.privacy-nudge,
.result-notice,
.privacy-image-warning {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    border-radius: 1rem;
    padding: 1rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(24, 99, 88, 0.16);
    box-shadow: 0 10px 30px rgba(38, 70, 83, 0.08);
}

.privacy-nudge p,
.result-notice p,
.privacy-image-warning p {
    margin: 0.2rem 0 0;
}

.privacy-nudge__icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(10, 124, 124, 0.1);
}

.privacy-image-warning {
    background: rgba(255, 248, 230, 0.92);
    border-color: rgba(177, 122, 12, 0.22);
}

.upload-consent {
    display: grid;
    grid-template-columns: 1.35rem 1fr;
    gap: 0.8rem;
    align-items: start;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(10, 124, 124, 0.08);
    border: 1px solid rgba(10, 124, 124, 0.16);
    margin-top: 1rem;
}

.upload-consent__checkbox {
    appearance: none;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0.18rem 0 0;
    border: 2px solid rgba(10, 124, 124, 0.55);
    border-radius: 0.3rem;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.upload-consent__checkbox:checked {
    background: #0A7C7C;
    border-color: #0A7C7C;
}

.upload-consent__checkbox:checked::after {
    content: "";
    position: absolute;
    left: 0.32rem;
    top: 0.08rem;
    width: 0.32rem;
    height: 0.65rem;
    border: solid #fff;
    border-width: 0 0.14rem 0.14rem 0;
    transform: rotate(45deg);
}

.upload-consent__checkbox:focus-visible {
    outline: 3px solid rgba(255, 126, 91, 0.35);
    outline-offset: 2px;
}

.upload-consent__checkbox.input-validation-error {
    border-color: #b83232;
    box-shadow: 0 0 0 4px rgba(184, 50, 50, 0.12);
}

.upload-consent__label {
    margin: 0;
    line-height: 1.45;
    font-weight: 700;
    cursor: pointer;
}

.upload-consent-error {
    display: none;
}

.upload-consent-error:not(:empty) {
    display: block;
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(184, 50, 50, 0.10);
    border: 1px solid rgba(184, 50, 50, 0.28);
    color: #7a1f1f;
    font-weight: 700;
    line-height: 1.4;
}

.upload-consent-error:not(:empty)::before {
    content: "⚠️ ";
}

/* Slightly stronger validation treatment for the upload consent row. */
.upload-consent:has(.input-validation-error) {
    border-color: rgba(184, 50, 50, 0.35);
    background: rgba(184, 50, 50, 0.06);
}

@media (max-width: 560px) {
    .upload-consent {
        grid-template-columns: 1.25rem 1fr;
        gap: 0.7rem;
    }

    .upload-consent__label {
        font-size: 0.98rem;
    }
}
