:root {
    --g4g27-navy: #102247;
    --g4g27-yellow: #ffdc32;
    --g4g27-pink: #f052a6;
    --g4g27-blue: #1f9fda;
    --g4g27-green: #31b58b;
    --g4g27-cream: #fffaf0;
    --g4g27-white: #ffffff;
    --g4g27-muted: #5e6b82;
}

.g4g27,
.g4g27 * {
    box-sizing: border-box;
}

.g4g27 {
    color: var(--g4g27-navy);
    font-family: inherit;
    line-height: 1.45;
}

.g4g27-fullbleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

.g4g27-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.g4g27-eyebrow {
    margin: 0 0 14px;
    color: var(--g4g27-pink);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.g4g27 h2,
.g4g27 h3,
.g4g27 h4,
.g4g27 p {
    margin-top: 0;
}

.g4g27 h2,
.g4g27 h3,
.g4g27 h4 {
    color: var(--g4g27-navy);
    font-family: inherit;
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: .98;
}

/* Awards catalogue */
.g4g27-awards__intro {
    position: relative;
    padding: 98px 0 88px;
    background: var(--g4g27-yellow);
    border-top: 2px solid var(--g4g27-navy);
    border-bottom: 2px solid var(--g4g27-navy);
}

.g4g27-awards__intro h2 {
    max-width: 790px;
    margin: 0;
    font-size: clamp(54px, 8vw, 108px);
}

.g4g27-lead {
    max-width: 700px;
    margin: 28px 0 0;
    color: #3f4e67;
    font-size: clamp(18px, 2vw, 23px);
}

.g4g27-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 38px;
}

.g4g27-filter__button {
    appearance: none;
    border: 2px solid var(--g4g27-navy);
    border-radius: 999px;
    background: var(--g4g27-white);
    color: var(--g4g27-navy);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 12px 17px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.g4g27-filter__button span {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(16,34,71,.1);
    font-size: 12px;
}

.g4g27-filter__button:hover,
.g4g27-filter__button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--g4g27-navy);
}

.g4g27-filter__button.is-active {
    background: var(--g4g27-navy);
    color: var(--g4g27-white);
}

.g4g27-filter__button.is-active span {
    background: var(--g4g27-pink);
    color: var(--g4g27-navy);
}

.g4g27-blob,
.g4g27-form-page__shape {
    position: absolute;
    border: 2px solid var(--g4g27-navy);
    pointer-events: none;
}

.g4g27-blob--blue {
    width: 300px;
    height: 145px;
    right: -45px;
    top: -38px;
    background: var(--g4g27-blue);
    border-radius: 52% 0 47% 55%;
    transform: rotate(-11deg);
}

.g4g27-blob--pink {
    width: 190px;
    height: 120px;
    left: -85px;
    bottom: -48px;
    background: var(--g4g27-pink);
    border-radius: 50%;
    transform: rotate(18deg);
}

.g4g27-spark {
    position: absolute;
    z-index: 1;
    color: var(--g4g27-pink);
    font-size: 34px;
    line-height: 1;
}

.g4g27-spark--one {
    left: 7%;
    top: 34%;
}

.g4g27-spark--two {
    right: 11%;
    bottom: 19%;
    color: var(--g4g27-blue);
    font-size: 24px;
}

.g4g27-catalogue {
    padding: 84px 0 110px;
    background: var(--g4g27-cream);
}

.g4g27-category + .g4g27-category {
    margin-top: 96px;
}

.g4g27-category[hidden],
.g4g27-award-card[hidden] {
    display: none !important;
}

.g4g27-category__heading {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(300px, 1fr);
    gap: 40px;
    align-items: end;
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--g4g27-navy);
}

.g4g27-category__heading > div > p {
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
}

.g4g27-category--sports .g4g27-category__heading > div > p { color: #ad7a00; }
.g4g27-category--charity-community .g4g27-category__heading > div > p { color: var(--g4g27-pink); }
.g4g27-category--social-media .g4g27-category__heading > div > p { color: var(--g4g27-blue); }

.g4g27-category__heading h3 {
    margin: 0;
    font-size: clamp(40px, 5vw, 72px);
}

.g4g27-category__description {
    margin: 0;
    color: var(--g4g27-muted);
    font-size: 18px;
}

.g4g27-award-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.g4g27-award-card {
    position: relative;
    display: flex;
    min-height: 340px;
    flex-direction: column;
    overflow: hidden;
    padding: 32px 28px 26px;
    border: 2px solid var(--g4g27-navy);
    background: var(--g4g27-white);
    box-shadow: 7px 7px 0 var(--g4g27-navy);
    transition: transform .2s ease, box-shadow .2s ease;
}

.g4g27-award-card:hover {
    transform: translate(-3px,-3px);
    box-shadow: 11px 11px 0 var(--g4g27-navy);
}

.g4g27-award-card__topline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--g4g27-yellow);
}

.g4g27-category--charity-community .g4g27-award-card__topline { background: var(--g4g27-pink); }
.g4g27-category--social-media .g4g27-award-card__topline { background: var(--g4g27-blue); }
.g4g27-award-card.is-major .g4g27-award-card__topline {
    height: 13px;
    background: linear-gradient(90deg, var(--g4g27-pink) 0 33%, var(--g4g27-yellow) 33% 66%, var(--g4g27-blue) 66% 100%);
}

.g4g27-award-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 2px 0 30px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.g4g27-award-card__meta strong {
    padding: 5px 8px;
    border: 1px solid var(--g4g27-navy);
    background: var(--g4g27-yellow);
    color: var(--g4g27-navy);
    font-size: 10px;
    letter-spacing: .05em;
}

.g4g27-category--charity-community .g4g27-award-card__meta strong { background: #ffd4e9; }
.g4g27-category--social-media .g4g27-award-card__meta strong { background: #d8f2ff; }
.g4g27-award-card.is-major .g4g27-award-card__meta strong { background: var(--g4g27-pink); }

.g4g27-award-card h4 {
    margin: 0 0 18px;
    font-size: clamp(28px, 2.8vw, 38px);
}

.g4g27-award-card > p {
    margin-bottom: 26px;
    color: var(--g4g27-muted);
    font-size: 15px;
}

.g4g27-award-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #d9dee7;
    color: var(--g4g27-navy) !important;
    font-weight: 900;
    text-decoration: none !important;
}

.g4g27-award-card__button span {
    font-size: 22px;
    transition: transform .18s ease;
}

.g4g27-award-card__button:hover span,
.g4g27-award-card__button:focus-visible span {
    transform: translateX(5px);
}

/* Form page */
.g4g27-form-page {
    position: relative;
    background: var(--g4g27-yellow);
    border-top: 2px solid var(--g4g27-navy);
}

.g4g27-form-hero {
    padding: 100px 0 110px;
}

.g4g27-form-layout {
    display: grid;
    grid-template-columns: minmax(300px, .78fr) minmax(560px, 1.22fr);
    gap: 70px;
    align-items: start;
}

.g4g27-form-copy {
    position: sticky;
    top: 40px;
    padding-top: 35px;
}

.g4g27-form-copy h2 {
    margin: 0 0 28px;
    font-size: clamp(56px, 7vw, 96px);
}

.g4g27-form-copy > p:not(.g4g27-eyebrow) {
    color: #3f4e67;
    font-size: 20px;
}

.g4g27-form-copy__note {
    display: grid;
    gap: 5px;
    margin-top: 34px;
    padding: 20px;
    border: 2px solid var(--g4g27-navy);
    background: var(--g4g27-blue);
    box-shadow: 7px 7px 0 var(--g4g27-navy);
}

.g4g27-form-copy__note strong {
    font-size: 18px;
}

.g4g27-form-copy__note span {
    color: #102247;
}

.g4g27-form-card {
    position: relative;
    padding: clamp(26px, 4vw, 50px);
    border: 2px solid var(--g4g27-navy);
    background: var(--g4g27-white);
    box-shadow: 12px 12px 0 var(--g4g27-navy);
}

.g4g27-form__section + .g4g27-form__section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 2px solid var(--g4g27-navy);
}

.g4g27-form__section-heading {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 15px;
    align-items: start;
    margin-bottom: 26px;
}

.g4g27-form__section-heading > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--g4g27-navy);
    border-radius: 50%;
    background: var(--g4g27-pink);
    font-size: 13px;
    font-weight: 900;
}

.g4g27-form__section:nth-of-type(2) .g4g27-form__section-heading > span { background: var(--g4g27-yellow); }
.g4g27-form__section:nth-of-type(3) .g4g27-form__section-heading > span { background: var(--g4g27-blue); }
.g4g27-form__section:nth-of-type(4) .g4g27-form__section-heading > span { background: var(--g4g27-green); }

.g4g27-form__section-heading h3 {
    margin: 0 0 5px;
    font-size: 32px;
}

.g4g27-form__section-heading p {
    margin: 0;
    color: var(--g4g27-muted);
    font-size: 14px;
}

.g4g27-fields {
    display: grid;
    gap: 22px;
}

.g4g27-fields--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.g4g27-field {
    min-width: 0;
}

.g4g27-field label,
.g4g27-field legend {
    display: block;
    margin: 0 0 8px;
    color: var(--g4g27-navy);
    font-size: 13px;
    font-weight: 900;
}

.g4g27-field label > span,
.g4g27-consent strong {
    color: #ce1e70;
}

.g4g27-field input[type="text"],
.g4g27-field input[type="email"],
.g4g27-field input[type="tel"],
.g4g27-field input[type="url"],
.g4g27-field select,
.g4g27-field textarea {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 13px 14px;
    border: 2px solid var(--g4g27-navy);
    border-radius: 0;
    outline: none;
    background: #fffefa;
    color: var(--g4g27-navy);
    font: inherit;
    font-size: 16px;
    box-shadow: none;
    transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.g4g27-field textarea {
    resize: vertical;
}

.g4g27-field input:focus,
.g4g27-field select:focus,
.g4g27-field textarea:focus {
    background: #fff8c9;
    box-shadow: 4px 4px 0 var(--g4g27-pink);
    transform: translate(-1px,-1px);
}

.g4g27-field--radios {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.g4g27-field--radios label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 7px 20px 0 0;
    font-weight: 700;
}

.g4g27-field input[type="radio"],
.g4g27-consent input[type="checkbox"] {
    accent-color: var(--g4g27-pink);
}

.g4g27-field__help,
.g4g27-privacy {
    margin: 8px 0 0;
    color: var(--g4g27-muted);
    font-size: 12px;
}

.g4g27-g4g-only-note {
    display: inline-block;
    padding: 8px 10px;
    border: 1px solid var(--g4g27-navy);
    background: #fff0a8;
    color: var(--g4g27-navy);
    font-weight: 800;
}

.g4g27-g4g-only-note[hidden] {
    display: none;
}

.g4g27-upload {
    position: relative;
}

.g4g27-upload > input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.g4g27-upload__box {
    display: grid;
    gap: 7px;
    padding: 28px;
    border: 2px dashed var(--g4g27-navy);
    background: #effaff;
    cursor: pointer;
}

.g4g27-upload__box:hover,
.g4g27-upload > input[type="file"]:focus + .g4g27-upload__box {
    background: #d9f3ff;
}

.g4g27-upload__box strong {
    font-size: 17px;
}

.g4g27-upload__box span {
    color: var(--g4g27-muted);
    font-size: 13px;
}

.g4g27-upload__selection {
    margin-top: 7px;
    color: var(--g4g27-navy) !important;
    font-weight: 900;
}

.g4g27-consent {
    margin-top: 34px;
    padding: 18px;
    border: 2px solid var(--g4g27-navy);
    background: #fff8c9;
}

.g4g27-consent label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.g4g27-consent input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.g4g27-submit {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 24px;
    padding: 18px 21px;
    border: 2px solid var(--g4g27-navy);
    border-radius: 0;
    background: var(--g4g27-navy);
    color: var(--g4g27-white);
    cursor: pointer;
    font: inherit;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 6px 6px 0 var(--g4g27-pink);
    transition: transform .18s ease, box-shadow .18s ease;
}

.g4g27-submit:hover,
.g4g27-submit:focus-visible {
    transform: translate(-2px,-2px);
    box-shadow: 9px 9px 0 var(--g4g27-pink);
}

.g4g27-submit span {
    font-size: 24px;
}

.g4g27-alert {
    display: grid;
    gap: 5px;
    margin-bottom: 30px;
    padding: 18px 20px;
    border: 2px solid var(--g4g27-navy);
}

.g4g27-alert--success { background: #ccf4e5; }
.g4g27-alert--error { background: #ffd8e9; }
.g4g27-alert strong { font-size: 18px; }
.g4g27-alert span { color: #34435c; }

.g4g27-closed {
    padding: 30px;
    border: 2px solid var(--g4g27-navy);
    background: #fff8c9;
}

.g4g27-closed h3 {
    margin-bottom: 12px;
    font-size: 38px;
}

.g4g27-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.g4g27-form-page__shape--one {
    width: 280px;
    height: 140px;
    right: -55px;
    top: -40px;
    border-radius: 55% 0 48% 56%;
    background: var(--g4g27-blue);
    transform: rotate(-12deg);
}

.g4g27-form-page__shape--two {
    width: 190px;
    height: 190px;
    left: -85px;
    bottom: 25%;
    border-radius: 45% 56% 48% 60%;
    background: var(--g4g27-pink);
    transform: rotate(25deg);
}

.g4g27-form-page__spark {
    position: absolute;
    left: 7%;
    top: 17%;
    color: var(--g4g27-pink);
    font-size: 34px;
}

.g4g27-form-page__footer {
    height: 70px;
    border-top: 2px solid var(--g4g27-navy);
    background: var(--g4g27-green);
}

@media (max-width: 980px) {
    .g4g27-award-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .g4g27-form-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .g4g27-form-copy {
        position: relative;
        top: auto;
        max-width: 740px;
        padding-top: 0;
    }
}

@media (max-width: 720px) {
    .g4g27-inner {
        width: min(100% - 24px, 1180px);
    }

    .g4g27-awards__intro,
    .g4g27-form-hero {
        padding: 68px 0 76px;
    }

    .g4g27-awards__intro h2,
    .g4g27-form-copy h2 {
        font-size: clamp(48px, 15vw, 72px);
    }

    .g4g27-category__heading {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .g4g27-award-grid,
    .g4g27-fields--two {
        grid-template-columns: 1fr;
    }

    .g4g27-award-card {
        min-height: 0;
    }

    .g4g27-catalogue {
        padding: 62px 0 80px;
    }

    .g4g27-category + .g4g27-category {
        margin-top: 72px;
    }

    .g4g27-form-card {
        padding: 24px 18px;
        box-shadow: 7px 7px 0 var(--g4g27-navy);
    }

    .g4g27-filter {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .g4g27-filter__button {
        padding: 11px 12px;
        font-size: 13px;
    }

    .g4g27-blob--blue,
    .g4g27-form-page__shape--one {
        width: 170px;
        height: 92px;
    }

    .g4g27-blob--pink,
    .g4g27-form-page__shape--two {
        opacity: .55;
    }
}

@media (prefers-reduced-motion: reduce) {
    .g4g27 *,
    .g4g27 *::before,
    .g4g27 *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
