.fy-project {
    --project-blue: #087fdf;
    --project-blue-dark: #0568ba;
    --project-ink: #12202b;
    --project-muted: #61707d;
    --project-line: #dce4ea;
    --project-paper: #f5f7f9;
    --project-white: #fff;
    background: var(--ink-900);
}

.fy-project__container {
    width: min(calc(100% - 48px), 1360px);
    margin-inline: auto;
}

.fy-project__intro {
    padding: 54px 0 48px;
    background:
        linear-gradient(90deg, rgba(4, 15, 24, .98) 0%, rgba(5, 20, 31, .93) 38%, rgba(6, 24, 37, .66) 58%, rgba(6, 19, 29, .28) 78%, rgba(5, 15, 23, .12) 100%),
        linear-gradient(180deg, rgba(4, 16, 25, .08), rgba(4, 15, 23, .45)),
        url('../img/projects-hero-v2.webp') center 46% / cover no-repeat;
    border-bottom: 1px solid rgba(201, 220, 235, .22);
}

.fy-project__eyebrow {
    margin: 0 0 10px;
    color: #68bbfa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.fy-project__intro h1 {
    max-width: 850px;
    margin: 0 0 13px;
    font-size: clamp(38px, 4.5vw, 64px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.fy-project__intro > .fy-project__container > p:not(.fy-project__eyebrow) {
    max-width: 780px;
    margin: 0;
    color: #bdcbd5;
    font-size: 18px;
}

.fy-project__assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 28px;
    color: #dce8ef;
    font-size: 13px;
}

.fy-project__assurances span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fy-project__assurances span::before {
    width: 7px;
    height: 7px;
    content: "";
    background: #3aafff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(58, 175, 255, .12);
}

.fy-project__workspace {
    padding: 46px 0 82px;
    color: var(--project-ink);
    background: var(--project-paper);
    color-scheme: light;
}

.fy-project__notice {
    margin-bottom: 18px;
    padding: 16px 18px;
    background: var(--project-white);
    border: 1px solid var(--project-line);
    border-left-width: 4px;
    border-radius: 8px;
}

.fy-project__notice--success {
    border-left-color: #16835a;
}

.fy-project__notice--error {
    border-left-color: #c53f48;
}

.fy-project__notice ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.fy-project__stepper {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 18px;
    overflow: hidden;
    background: #e7edf1;
    border: 1px solid #d8e1e7;
    border-radius: 10px;
}

.fy-project__step {
    min-height: 76px;
    padding: 12px 14px;
    background: transparent;
    color: #657481;
    border-right: 1px solid #d5dee5;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.fy-project__step:last-child {
    border-right: 0;
}

.fy-project__step span {
    display: block;
    margin-bottom: 4px;
    color: #84929c;
    font-size: 10px;
    letter-spacing: .12em;
}

.fy-project__step.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--project-blue), var(--project-blue-dark));
}

.fy-project__step.is-active span {
    color: #cdeaff;
}

.fy-project__form {
    overflow: hidden;
    background: var(--project-white);
    border: 1px solid var(--project-line);
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(18, 40, 56, .09);
}

.fy-project__panel {
    padding: clamp(28px, 4vw, 58px);
    border-bottom: 1px solid var(--project-line);
}

.fy-project.is-enhanced .fy-project__panel:not(.is-active) {
    display: none;
}

.fy-project__panel > header {
    max-width: 760px;
    margin-bottom: 34px;
}

.fy-project__panel > header > span {
    color: var(--project-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.fy-project__panel h2 {
    margin: 5px 0 8px;
    font-size: clamp(27px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.fy-project__panel > header p {
    margin: 0;
    color: var(--project-muted);
}

.fy-project__grid {
    display: grid;
    gap: 20px;
}

.fy-project__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fy-project__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fy-project label > span,
.fy-project__choices legend {
    display: block;
    margin-bottom: 7px;
    color: #394a56;
    font-size: 13px;
    font-weight: 750;
}

.fy-project input,
.fy-project select,
.fy-project textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    background: #fff;
    color: var(--project-ink);
    border: 1px solid #cbd6de;
    border-radius: 7px;
    outline: none;
}

.fy-project textarea {
    min-height: 160px;
    resize: vertical;
}

.fy-project input:focus,
.fy-project select:focus,
.fy-project textarea:focus {
    border-color: var(--project-blue);
    box-shadow: 0 0 0 3px rgba(8, 127, 223, .12);
}

.fy-project__wide-field {
    display: block;
    margin-bottom: 28px;
}

.fy-project__wide-field small {
    display: block;
    margin-top: 7px;
    color: var(--project-muted);
}

.fy-project__choices {
    margin: 0 0 28px;
    padding: 0;
    border: 0;
}

.fy-project__choices > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.fy-project__choices label {
    position: relative;
}

.fy-project__choices input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.fy-project__choices label > span {
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px;
    background: #f7f9fa;
    border: 1px solid var(--project-line);
    border-radius: 8px;
    cursor: pointer;
}

.fy-project__choices input:checked + span {
    color: #055fa8;
    background: #eef8ff;
    border-color: #44a2e8;
    box-shadow: inset 3px 0 var(--project-blue);
}

.fy-project__choices input:focus-visible + span {
    outline: 3px solid rgba(8, 127, 223, .22);
}

.fy-project__choices .icon {
    color: var(--project-blue);
}

.fy-project__upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.fy-project__upload {
    display: grid;
    min-height: 190px;
    align-content: center;
    padding: 28px;
    text-align: center;
    background: #f8fafb;
    border: 1px dashed #9eb0bd;
    border-radius: 10px;
}

.fy-project__upload strong {
    font-size: 17px;
}

.fy-project__upload > span {
    margin: 4px 0 15px;
    color: var(--project-muted);
    font-size: 13px;
}

.fy-project__upload input {
    min-height: auto;
    padding: 8px;
    background: #fff;
}

.fy-project__upload output {
    display: block;
    margin-top: 10px;
    color: #395364;
    font-size: 12px;
}

.fy-project__existing-media {
    margin-bottom: 24px;
    padding: 16px 18px;
    background: #f2f7fa;
    border-radius: 8px;
}

.fy-project__existing-media ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.fy-project__review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fy-project__review-grid article {
    min-height: 112px;
    padding: 20px;
    background: #f6f8fa;
    border: 1px solid var(--project-line);
    border-radius: 8px;
}

.fy-project__review-grid span,
.fy-project__review-grid strong {
    display: block;
}

.fy-project__review-grid span {
    margin-bottom: 7px;
    color: var(--project-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fy-project__review-note {
    margin-top: 18px;
    padding: 20px;
    background: #edf7fe;
    border-left: 3px solid var(--project-blue);
}

.fy-project__review-note p {
    margin: 6px 0 0;
    color: #486071;
}

.fy-project__consent {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 11px;
    margin-top: 22px;
}

.fy-project__consent input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.fy-project__consent > span {
    margin: 0;
    font-weight: 500;
}

.fy-project__panel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--project-line);
}

.fy-project__panel-actions--final > div {
    display: flex;
    gap: 10px;
}

.fy-project__button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 19px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 750;
}

.fy-project__button--primary {
    color: #fff;
    background: linear-gradient(180deg, #1697f9, var(--project-blue-dark));
}

.fy-project__button--secondary,
.fy-project__button--ghost {
    color: #263844;
    background: #fff;
    border-color: #bfcbd4;
}

.fy-project__button--ghost {
    color: #076dbd;
    border-color: #49a0df;
}

.fy-project__form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px clamp(28px, 4vw, 58px);
    color: var(--project-muted);
    background: #f3f6f8;
    font-size: 12px;
}

.fy-project__draft-link {
    padding: 0;
    color: #0872c5;
    background: transparent;
    font-weight: 750;
}

@media (max-width: 900px) {
    .fy-project__stepper {
        grid-template-columns: 1fr;
    }

    .fy-project__step {
        min-height: 50px;
        border-right: 0;
        border-bottom: 1px solid #d5dee5;
    }

    .fy-project__step span {
        display: inline;
        margin-right: 7px;
    }

    .fy-project__grid--3,
    .fy-project__choices > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fy-project__container {
        width: min(calc(100% - 28px), 1360px);
    }

    .fy-project__intro {
        padding: 38px 0 34px;
    }

    .fy-project__workspace {
        padding: 24px 0 50px;
    }

    .fy-project__grid--2,
    .fy-project__grid--3,
    .fy-project__choices > div,
    .fy-project__upload-grid,
    .fy-project__review-grid {
        grid-template-columns: 1fr;
    }

    .fy-project__panel {
        padding: 25px 20px;
    }

    .fy-project__panel-actions,
    .fy-project__panel-actions--final,
    .fy-project__form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .fy-project__panel-actions--final > div {
        flex-direction: column;
    }
}
