body {
    font-family: system-ui, sans-serif;
    background: var(--primary-background);
    margin: 0;
    opacity: 1;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 90;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

body.nav-open::after {
    opacity: 1;
}

h1 {
    color: white;
    font-size: 2.0rem;
    font-weight: 700;
}

h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 400;
}

label {
    color: white;
    font-size: 1.0rem;
    font-weight: 400;
}

p {
    color: white;
}

button,
textarea,
input {
    background-color: var(--secondary-element-colour);
    font-size: 1.0rem;
    border-radius: var(--primary-border-radius);
    padding: 8px;
    border: 0px solid var(--primary-border-colour);
    color: white;
    font-family: system-ui, sans-serif;
}

textarea:hover,
input:hover {
    background-color: var(--secondary-element-hover-colour);
}

textarea::placeholder input::placeholder {
    color: #999;
}

.input-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

html {
    scroll-behavior: smooth;
}

/* Full custom approach: build your own checkbox look from scratch */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25em;
    height: 1.25em;
    /* unchecked border color */
    border-radius: 4px;
    background-color: var(--secondary-element-colour);
    /* unchecked fill */
    cursor: pointer;
    position: relative;
    transition: background-color 0.15s, border-color 0.15s;
}

input[type="checkbox"]:hover {
    background-color: var(--secondary-element-hover-colour);
}

input[type="checkbox"]:checked {
    background-color: var(--success-colour);
}

/* checkmark drawn with a pseudo-element */
input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 0.35em;
    top: 0.15em;
    width: 0.3em;
    height: 0.55em;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}

.pill-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--primary-border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pill-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.video-overlay h3 {
    color: #ffffff;
    max-width: 800px;
    margin: 0 0 0.75rem;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.video-overlay p {
    color: #ffffff;
    max-width: 800px;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.image-section {
    width: 100%;
}

.image-wrap {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
    line-height: 0;
}

.image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* darken whole image a bit, a bit more at the bottom */
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.8) 20%,
            rgba(0, 0, 0, 0.35) 60%,
            rgba(0, 0, 0, 0.25) 100%);
}

.image-section-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 3rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-overlay p {
    color: #ffffff;
    text-align: center;
    max-width: 800px;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.5;
}

.image-overlay h3 {
    color: #ffffff;
    text-align: center;
    max-width: 800px;
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
}
