:root { interpolate-size: allow-keywords; }
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}
*, *:before, *:after {
    box-sizing: inherit;
}

:target {
    scroll-margin-top: 4rem;
}

/* Site Header */

.site-header {
    position: fixed;
    /* 1. Define the default fallback position using your calc */
    --header-top: calc(var(--wp-admin--admin-bar--height, 0px) + 1.25rem);

    top: var(--header-top);
    width: 100%;
    z-index: 20;
}

.site-header.is-unlocked {
    position: absolute;
    /* Handled dynamically by JS via the --header-top variable */
}

.site-header__inner {
    background: rgba(10, 10, 46, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
    padding: .75rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header a.site-header__logo {
    display: block;
    max-width: 84px;
    margin-left: .5rem;
}

.site-header a.site-header__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.site-header__nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-header__nav ul li a { color: white; text-decoration: none; }
.site-header__nav ul li a:not(.wp-block-button__link):hover { color: var(--wp--preset--color--pale-lavender); text-decoration: underline; }
.site-header__nav ul li.is-active a { color: var(--wp--preset--color--pale-lavender); }

.site-header__nav ul li:not(.site-navigation__button) {
    display: none;
}

@media all and (min-width: 1024px) {
    .site-header__nav ul li:not(.site-navigation__button) {
        display: inline-block;
    }
}

.site-main > :first-child {
    padding-top: 9.25rem !important;
}

/* Site Footer */

.site-footer {
    background: var(--wp--preset--color--haiti);
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.site-footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;
}

.site-footer__logo {
    display: block;
    max-width: 168px;
}

.site-footer__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-footer hr {
    width: 100%;
    height: 1px !important;
    border: 0;
    background: rgba(255, 255, 255, 0.2);
    margin: 3rem 0 1.5rem;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.site-footer ul li {
    padding: 0.25rem 0;
}

.site-footer ul li a {
    color: var(--wp--preset--color--blue-chalk);
    font-size: 0.875rem;
    opacity: .5;
}

.site-footer ul li a:hover {
    color: var(--wp--preset--color--pale-lavender);
}

.site-footer p {
    color: var(--wp--preset--color--blue-chalk);
    font-size: 0.875rem;
    opacity: .5;
    text-align: center;
    margin-top: 0;
}

@media all and (min-width: 1024px) {

    .site-footer {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .site-footer__bottom {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: flex-start;
        gap: 4rem;
        width: 100%;
    }


    .site-footer ul { display: flex; align-items: center; justify-content: flex-end; text-align: right; gap: 1.5rem; flex-shrink: 0; flex-grow: 1; }
    .site-footer ul li {
        padding: 0;
    }
    .site-footer p { flex: 0 1 auto; flex-shrink: 1; text-align: left; margin-top: .25rem; }
}

@media all and (min-width: 1280px) {
    .site-footer__bottom {
        gap: 12rem;
    }
}

/* Forms */

.gform_wrapper {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.gform_wrapper .ginput_container input[type="text"],
.gform_wrapper .ginput_container input[type="email"],
.gform_wrapper .ginput_container textarea
{
    background: none;
    border: 2px solid rgba(12, 11, 13, 0.2);
    border-radius: 0;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    outline: none;
}

.gform_wrapper .ginput_container textarea {
    font-family: var(--wp--preset--font-family--roboto);
}

.gform_wrapper .ginput_container input[type="text"]:focus,
.gform_wrapper .ginput_container input[type="email"]:focus,
.gform_wrapper .ginput_container textarea:focus
{
    outline: none;
    border-color: #311266;
}

.gform_wrapper fieldset {
    border: none;       /* 🚫 Kills the default border */
    margin: 0;          /* Kills the default browser spacing */
    padding: 0;         /* Kills the default inner spacing */
    min-width: 0;       /* ⚠️ Crucial: Fixes a weird Chrome/Safari bug where fieldsets layout-break flexboxbox */
}

.gform_wrapper legend {
    /* Completely hides it from view, but keeps it readable for screen readers (Accessibility win) */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gfield {
    margin-bottom: 1.5rem;
}

.gfield_label {
    display: block;
    font-size: 1rem;
    color: var(--wp--preset--color--violet);
    font-weight: 400;
    margin-left: 2px;
    margin-bottom: .5rem;
    line-height: 1.4;
}

.gfield_label .gfield_required { margin-left: .15rem; font-size: 0.75rem; color: #C0213A; }

.gform_wrapper .ginput_container input[type="checkbox"] {
    background: none;
    border: 2px solid var(--wp--preset--color--violet);
}

.gform_wrapper .gfield_consent_label {
    font-size: 0.875rem !important;
    margin-left: .25rem;
}

.gform_wrapper .gfield_consent_label a {
    color: var(--wp--preset--color--electric-violet);
}

.gform_footer,
.gform_page_footer {
    display: flex;
    justify-content: center;
    margin-block-start: 3rem !important
}

.gform-theme.gform-theme--framework.gform_wrapper .button:where(:not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):hover,
.gform-theme.gform-theme--framework.gform_wrapper .gform-theme-button:where(:not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):hover,
.gform-theme.gform-theme--framework.gform_wrapper :where(:not(.mce-splitbtn)) > button:not([id*="mceu_"]):not(.mce-open):where(:not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):hover,
.gform-theme.gform-theme--framework.gform_wrapper button.button:where(:not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):hover,
.gform-theme.gform-theme--framework.gform_wrapper input:is([type="submit"],
[type="button"],
[type="reset"]).button:where(:not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):hover,
.gform-theme.gform-theme--framework.gform_wrapper input:is([type="submit"], [type="button"], [type="reset"]):where(:not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):hover,
.gform-theme.gform-theme--framework.gform_wrapper input[type="submit"].button.gform_button:where(:not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):hover {
    --gf-local-bg-color: #6225CC !important;
}

/* checkbox */

.gform_wrapper input[type="checkbox"] {
    -webkit-appearance: none; /* For Safari/Chrome fallback */
    appearance: none;         /* 🚫 Disables the default browser checkbox look */
    background-color: #fff;
    margin: 0;

    /* 📐 The Sizing & Border */
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB; /* Your default border color */
    border-radius: 0px;        /* Pure square sharpness */

    /* Setup for centering the custom checkmark */
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    vertical-align: middle;
}

/* 🎯 The Checked State */
.gform_wrapper input[type="checkbox"]:checked {
    border-color: #6225CC;     /* Changes border color when checked */
    background-color: #6225CC; /* Optional: Fills the box with your color */
}

/* 🪝 The Custom Checkmark (Built with a CSS pseudo-element) */
.gform_wrapper input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;  /* Left side of the checkmark */
    border-bottom: 2px solid #fff;/* Bottom side of the checkmark */
    transform: rotate(-45deg) translate(1px, -1px); /* Rotates lines into a checkmark shape */

    /* Hide the checkmark by default using scale */
    transform-origin: center;
    scale: 0;
    transition: scale 0.1s ease-in-out;
}

/* Show the checkmark when the input is actually checked */
.gform_wrapper input[type="checkbox"]:checked::before {
    scale: 1;
}

/* ♿ Don't forget our focus rule from earlier! */
.gform_wrapper input[type="checkbox"]:focus {
    outline: none;
    border-color: #6225CC;
}

.gform_wrapper .gform_button {
    background-color: #7B2FFF;
    border-radius: 0px;
    border-width: 0;
    color: #ffffff;
    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: 600;
    letter-spacing: inherit;
    line-height: inherit;
    padding-top: .5rem;
    padding-right: 1.25rem;
    padding-bottom: .5rem;
    padding-left: 1.25rem;
    text-decoration: none;
    text-transform: inherit;
    cursor: pointer;
}

.gform_wrapper .gform_button:hover {
    background-color: #6225CC;
    color: #ffffff;
}

.gform_validation_errors {
    display: none;
}

.gfield_validation_message {
    margin-left: 2px;
    margin-top: .25rem;
    font-size: 0.875rem;
    color: #C0213A;
}

.gform_wrapper .ginput_container input:invalid,
.gform_wrapper .ginput_container textarea:invalid,
.gform_wrapper .ginput_container input[aria-invalid="true"],
.gform_wrapper .ginput_container textarea[aria-invalid="true"] {
    border-color: #C0213A;
}