/* Contact page: same language as the project pages, kept calm and roomy */
html { --cf-bg: #F4F5F6; --cf-card: #FFFFFF; --cf-text: #121315; --cf-muted: #52555A; --cf-line: #DDE0E3; --cf-field: #F7F8F9; }
html.ch-theme-dark { --cf-bg: #08090A; --cf-card: #141619; --cf-text: #F3F4F5; --cf-muted: #A4A8AE; --cf-line: rgba(255, 255, 255, 0.12); --cf-field: #1B1D21; }

html body #___gatsby .cf { overflow: clip; background: var(--cf-bg); color: var(--cf-text); text-align: left; }
html body #___gatsby .cf :is(h1, h2, label, legend, summary, span, small, strong, dt, dd, li):not(#f1):not(#f2) { color: inherit !important; -webkit-text-fill-color: currentColor; }
html body #___gatsby .cf p:not(#f1):not(#f2) { color: var(--cf-muted) !important; -webkit-text-fill-color: var(--cf-muted); }

.cf-hero { position: relative; display: flex; align-items: flex-end; min-height: 68vh; overflow: hidden; background: #08090A; isolation: isolate; }
.cf-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cf-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(6, 7, 8, 0.6), rgba(6, 7, 8, 0.35) 35%, rgba(6, 7, 8, 0.92)); }
.cf-hero > div { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 140px 0 clamp(40px, 7vh, 80px); }
html body #___gatsby .cf .cf-hero h1:not(#f1):not(#f2) { max-width: 12em; margin: 0; font-size: clamp(40px, min(6.4vw, 11vh), 92px); font-weight: 800; line-height: 1; letter-spacing: -0.035em; color: #FFFFFF !important; }
html body #___gatsby .cf .cf-hero p:not(#f1):not(#f2) { max-width: 48ch; margin: 18px 0 0; font-size: 18px; line-height: 1.55; color: #E8EAEC !important; -webkit-text-fill-color: #E8EAEC; }

.cf-facts { display: grid; grid-template-columns: 1.3fr 1fr 1.7fr; gap: 1px; margin: 0; background: var(--cf-line); border-bottom: 1px solid var(--cf-line); }
.cf-facts > div { padding: 28px clamp(20px, 3vw, 44px); background: var(--cf-card); }
.cf-facts dt { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.cf-facts dd { margin: 0; font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
html body #___gatsby .cf .cf-facts a { color: var(--cf-text); text-decoration: none; }
html body #___gatsby .cf .cf-facts a:hover { color: #E2501A; }
.cf-social { display: flex; flex-wrap: wrap; gap: 6px 24px; }

.cf-row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 100px); align-items: start; width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding-top: clamp(80px, 10vw, 140px); scroll-margin-top: 90px; }
html body #___gatsby .cf h2:not(#f1) { margin: 0; font-size: clamp(30px, 3.8vw, 50px); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; }
.cf-side ol { margin: 36px 0 0; padding: 0; list-style: none; counter-reset: s; }
.cf-side li { display: grid; grid-template-columns: 52px 1fr; padding: 20px 0; border-top: 1px solid var(--cf-line); counter-increment: s; }
.cf-side li::before { content: '0' counter(s); grid-row: span 2; font-weight: 800; color: #E2501A; }
.cf-side strong { font-size: 17px; }
.cf-side li span { margin-top: 3px; font-size: 14.5px; opacity: 0.72; }

.cf-card { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--cf-line); border-radius: 22px; background: var(--cf-card); }
.cf-tabs { display: flex; gap: 28px; margin: 0 0 32px; padding: 0; border: 0; border-bottom: 1px solid var(--cf-line); background: none; }
html body #___gatsby .cf .cf-tabs button { margin-bottom: -1px; padding: 0 0 14px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; color: var(--cf-muted); font-size: 15px; font-weight: 800; cursor: pointer; }
html body #___gatsby .cf .cf-tabs button[aria-selected="true"] { border-bottom-color: #E2501A; color: var(--cf-text); }
.cf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 0; }
.cf-form[hidden] { display: none; }
.cf-form > * { grid-column: 1 / -1; min-width: 0; }
.cf-form > label:nth-of-type(1) { grid-column: 1; }
.cf-form > label:nth-of-type(2) { grid-column: 2; }
.cf-form label:not(.cf-chip) { display: block; font-size: 13.5px; font-weight: 700; }
.cf-form small { margin-left: 6px; font-weight: 500; opacity: 0.6; }
html body #___gatsby .cf .cf-form :is(input:not([type="checkbox"]):not(.cf-trap), textarea) { display: block; width: 100%; margin-top: 8px; padding: 13px 15px; border: 1px solid var(--cf-line); border-radius: 10px; background: var(--cf-field); color: var(--cf-text); font-size: 16px; font-weight: 400; }
html body #___gatsby .cf .cf-form :is(input, textarea):focus { border-color: #E2501A; outline: none; box-shadow: 0 0 0 3px rgba(226, 80, 26, 0.18); }
html.ch-theme-dark .cf input[type="datetime-local"] { color-scheme: dark; }
.cf-form fieldset { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.cf-form legend { margin-bottom: 10px; padding: 0; font-size: 13.5px; font-weight: 700; }
.cf-chip { position: relative; cursor: pointer; }
.cf-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cf-chip span { display: block; padding: 9px 15px; border: 1px solid var(--cf-line); border-radius: 999px; font-size: 13.5px; font-weight: 500; }
.cf-chip:hover span { border-color: #E2501A; }
html body #___gatsby .cf .cf-chip input:checked + span:not(#f1):not(#f2):not(#f3) { border-color: #C2410C; background: #C2410C; color: #FFFFFF !important; }
.cf-chip input:focus-visible + span { outline: 2px solid #E2501A; outline-offset: 2px; }
.cf-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; }
html body #___gatsby .cf .cf-form button[type="submit"]:not(#f1) { justify-self: start; grid-column: 1 / -1; padding: 15px 34px; border: 0; border-radius: 999px; background: #C2410C !important; color: #FFFFFF !important; font-size: 15.5px; font-weight: 800; cursor: pointer; }
html body #___gatsby .cf .cf-form button[type="submit"]:hover { background: #A3360A !important; }
.cf .ch-form-status { margin: -8px 0 0; font-size: 14px; }
.cf .ch-form-status:empty { display: none; }

.cf-faq details { border-bottom: 1px solid var(--cf-line); }
.cf-faq details:first-child { border-top: 1px solid var(--cf-line); }
.cf-faq summary { padding: 22px 0; font-size: 18px; font-weight: 700; cursor: pointer; }
.cf-faq details p { max-width: 64ch; margin: 0; padding: 0 0 24px; font-size: 15.5px; line-height: 1.65; }

.cf-map { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: clamp(80px, 10vw, 140px) 0; }
.cf-map-head { margin-bottom: 28px; }
.cf-map-head p { margin: 10px 0 0; font-size: 16px; }
.cf-map iframe { display: block; width: 100%; height: 420px; border: 1px solid var(--cf-line); border-radius: 22px; filter: grayscale(0.7); }
html.ch-theme-dark .cf-map iframe { filter: invert(0.9) hue-rotate(180deg) grayscale(0.7); }

/* the page is already one big invitation, so the closing banner would repeat it */
html body:has(.cf) .ch-closing { display: none; }

@media (max-width: 900px) {
    .cf-hero { min-height: 56vh; }
    .cf-facts, .cf-row { grid-template-columns: minmax(0, 1fr); }
    .cf-form > label:nth-of-type(1), .cf-form > label:nth-of-type(2) { grid-column: 1 / -1; }
    .cf-map iframe { height: 320px; }
    /* the "Book a call" tab does the floating button's job without covering the form */
    html body:has(.cf) .ch-book .ch-book-fab { visibility: hidden; }
}

/* white menu while it sits on the photo, normal again once the header gets a background */
html body:has(.cf-hero) header.header:not(.header-scrolled):not(:has(.megaMenu:hover)):not(:has(.megaMenu.is-open)) nav a.menu_links { color: #FFFFFF !important; }
html body:has(.cf-hero) header.header:not(.header-scrolled):not(:has(.megaMenu:hover)):not(:has(.megaMenu.is-open)) a[href="/"] img[src*="createhopes-logo"] { content: url("/images/createhopes-logo.webp"); }
html body:has(.cf-hero) header.header:not(.header-scrolled):not(:has(.megaMenu:hover)):not(:has(.megaMenu.is-open)) button.rounded-full { background: #FFFFFF !important; color: #0B0C0D !important; }
html body:has(.cf-hero) header.header:not(.header-scrolled):not(:has(.megaMenu:hover)):not(:has(.megaMenu.is-open)) button.rounded-full span { color: #0B0C0D !important; }
html body:has(.cf-hero) header.header:not(.header-scrolled) button[type="button"] > img { filter: brightness(0) invert(1); }
/* tighter numbered steps */
.cf-side li { grid-template-rows: auto auto; align-content: start; row-gap: 2px; line-height: 1.4; }
.cf-side li::before { line-height: 1.4; align-self: start; }
.cf-side li span { margin-top: 0; }
