.sfj-panel {
    padding: clamp(2rem, 5vw, 4rem) 1rem;
    background: #fff;
    color: #1e2a24;
}

.sfj-panel__inner {
    max-width: 960px;
    margin: 0 auto;
}

.sfj-panel__header {
    max-width: 720px;
    margin: 0 0 1.5rem;
}

.sfj-panel__eyebrow {
    margin: 0 0 0.5rem;
    color: #5c6f4b;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sfj-panel__title {
    margin: 0;
    color: #1b3429;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.sfj-panel__text {
    margin: 0.75rem 0 0;
    color: #425349;
    line-height: 1.65;
}

.sfj-form__fields {
    display: grid;
    gap: 1rem;
    max-width: 720px;
}

.sfj-form__fields--after-success {
    display: none;
}

.sfj-form__field {
    display: grid;
    gap: 0.4rem;
    margin: 0;
}

.sfj-form__field--honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sfj-form label {
    font-weight: 700;
}

.sfj-form input[type="text"],
.sfj-form input[type="email"],
.sfj-form input[type="file"],
.sfj-form textarea {
    width: 100%;
    border: 1px solid #b8c1b5;
    border-radius: 6px;
    padding: 0.8rem 0.9rem;
    color: #1e2a24;
    background: #fff;
    font: inherit;
}

.sfj-form textarea {
    resize: vertical;
}

.sfj-form__dropzone {
    display: grid;
    gap: 0.35rem;
    align-items: center;
    justify-items: center;
    border: 2px dashed #9eb19d;
    border-radius: 8px;
    padding: 1rem;
    background: #f7f8f5;
    text-align: center;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.sfj-form__dropzone.is-dragging {
    border-color: #2d684e;
    background: #eef6ef;
}

.sfj-form__dropzone-title {
    color: #173d2e;
    font-weight: 700;
}

.sfj-form__dropzone-text {
    color: #51645a;
    font-size: 0.95rem;
}

.sfj-form__file-preview {
    min-height: 1.4rem;
    color: #2f4037;
    font-size: 0.95rem;
}

.sfj-form__field-error {
    color: #9d2f24;
    font-size: 0.95rem;
    font-weight: 700;
}

.sfj-form__choice {
    margin: 0;
    color: #2f4037;
    line-height: 1.55;
}

.sfj-form__choice label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    font-weight: 400;
}

.sfj-form__choice input {
    margin-top: 0.25rem;
}

.sfj-button {
    justify-self: start;
    min-height: 3rem;
    border: 2px solid #2d5f46;
    border-radius: 6px;
    padding: 0.85rem 1.2rem;
    background: #2d5f46;
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.sfj-button:hover,
.sfj-button:focus {
    border-color: #1b3429;
    background: #1b3429;
    color: #fff;
}

.sfj-button--secondary {
    background: #fff;
    color: #2d5f46;
}

.sfj-button--secondary:hover,
.sfj-button--secondary:focus {
    background: #f7f8f5;
    color: #1b3429;
}

.sfj-notice {
    max-width: 720px;
    margin: 0 0 1rem;
    border-left: 4px solid;
    padding: 0.9rem 1rem;
    line-height: 1.5;
}

.sfj-notice--success {
    border-color: #2d5f46;
    background: #edf6ef;
}

.sfj-notice--error {
    border-color: #b23b2e;
    background: #fff0ed;
}

.sfj-gallery {
    background: #f7f8f5;
}

.sfj-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.sfj-gallery__item {
    overflow: hidden;
    border: 1px solid #d6ddd1;
    border-radius: 6px;
    background: #fff;
}

.sfj-gallery__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #dfe6dc;
}

.sfj-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfj-gallery__caption {
    padding: 0.9rem;
}

.sfj-gallery__name {
    margin: 0;
    color: #1b3429;
    font-size: 1rem;
    line-height: 1.3;
}

.sfj-gallery__description {
    margin: 0.45rem 0 0;
    color: #425349;
    line-height: 1.5;
}

.sfj-gallery__more {
    margin: 1.25rem 0 0;
}

.sfj-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border: 2px solid #2d5f46;
    border-radius: 6px;
    padding: 0.85rem 1.15rem;
    color: #2d5f46;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.sfj-link-button:hover,
.sfj-link-button:focus {
    border-color: #1b3429;
    color: #1b3429;
    text-decoration: none;
}

@media (max-width: 820px) {
    .sfj-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .sfj-gallery__grid {
        grid-template-columns: 1fr;
    }
}

.sfj-winner {
    background: #fff;
}

.sfj-winner__card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    gap: 1.25rem;
    align-items: center;
    border: 1px solid #d6ddd1;
    border-radius: 6px;
    overflow: hidden;
    background: #f7f8f5;
}

.sfj-winner__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #dfe6dc;
}

.sfj-winner__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfj-winner__body {
    padding: 1.25rem;
}

.sfj-winner__name {
    margin: 0;
    color: #1b3429;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.2;
}

.sfj-winner__description {
    margin: 0.65rem 0 0;
    color: #425349;
    line-height: 1.6;
}

.sfj-terms {
    background: #f7f8f5;
}

.sfj-terms__content {
    max-width: 820px;
}

.sfj-terms__content h3 {
    margin: 1.4rem 0 0.4rem;
    color: #1b3429;
    font-size: 1.15rem;
}

.sfj-terms__content p {
    margin: 0;
    color: #2f4037;
    line-height: 1.65;
}

.sfj-upload-overlay__backdrop,
.sfj-upload-overlay__close {
    display: none;
}

.sfj-js .sfj-upload-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: clamp(0.75rem, 3vw, 2rem);
    background: transparent;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.sfj-js .sfj-upload-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.sfj-upload-open #sesPodBtn,
.sfj-upload-open #sesPlayer {
    display: none !important;
}

.sfj-js .sfj-upload-overlay__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    background: rgba(10, 21, 17, 0.72);
}

.sfj-js .sfj-upload-overlay__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(860px, calc(100vh - 2rem));
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 8px;
    padding: clamp(1.1rem, 3vw, 1.6rem);
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
    isolation: isolate;
    opacity: 0;
    outline: none;
    transform: scale(0.975);
    transition: opacity 180ms ease, transform 180ms ease;
}

.sfj-js .sfj-upload-overlay.is-open .sfj-upload-overlay__dialog {
    opacity: 1;
    transform: scale(1);
}

.sfj-js .sfj-upload-overlay__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #d6ddd1;
    border-radius: 50%;
    background: #fff;
    color: #173d2e;
    font: inherit;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.sfj-upload-overlay__thanks {
    display: grid;
    gap: 0.8rem;
    max-width: 640px;
    border-left: 4px solid #2d5f46;
    padding: 1rem;
    background: #edf6ef;
}

.sfj-upload-overlay__thanks h3,
.sfj-upload-overlay__thanks p {
    margin: 0;
}

@media (max-width: 760px) {
    .sfj-winner__card {
        grid-template-columns: 1fr;
    }

    .sfj-js .sfj-upload-overlay__dialog {
        padding: 1rem;
    }
}
