@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root
{
	--bg: #F4F6F4;
	--paper: #FFFFFF;
	--ink: #1C2B29;
	--ink-soft: #4A5A57;
	--teal: #2F6F63;
/*	--teal-dark: #204E45;*/
	--teal-dark: #1c3230;
	--teal-tint:#e4ece9;
	--ochre:#b07d2e;
	--ochre-tint:#f4e8d3;
	--line:#d8d2c2;
	--danger:#a6443a;
	--danger-tint:#f6e6e3;
	--plum: #6E4C63;
	--border-soft: #EAEEEC;
	--focus: #1C2B29;
	--border: #DDE3E0;
	--popup_background: #343333;
	--radius:10px;
	--main_element_width: 60%;
	--main_element_margin_left: 20%;
}


body
{
	margin:0;
	background:var(--bg);
	color:var(--ink);
	font-family:'Inter',sans-serif;
	font-size:14.5px;
	line-height:1.5;
	display: inline-block;
	float: left;
	box-sizing:border-box;
	width: 100%;
}

body *:not(script, style, template)
{
	display: inline-block;
	float: left;
	box-sizing:border-box;
}

.float_right
{
	float: right;
}

.full_width
{
	width: 100%;
}

.half_left
{
	width: calc( 50% - 8px );
}
.half_right
{
	width: calc( 50% - 8px );
	margin-left: 16px;
}

.data_outer_container
{
	width: var(--main_element_width);
	margin-left: var(--main_element_margin_left);
}

.highlight_danger
{
	background: var(--danger-tint);
}




header
{
	padding:40px 24px 28px;
/*	max-width:760px;
	margin:0 auto;*/
	width: var(--main_element_width);
	margin-left: var(--main_element_margin_left);
	text-align: center;
}
.eyebrow
{
	font-family:'JetBrains Mono',monospace;
	font-size:12px;
	letter-spacing:0.08em;
	text-transform:uppercase;
	color:var(--teal-dark);
	margin-bottom:10px;
}
header h1
{
	font-family:'Source Serif 4',serif;
	font-weight:600;
	font-size:32px;
	margin:0 0 12px;
	letter-spacing:-0.01em;
}

main
{
/*	max-width:760px;*/
	margin:0 auto 80px;
	padding:0 24px;
	width: var(--main_element_width);
	margin-left: var(--main_element_margin_left);
}



label
{
	display:block;
	font-size:13px;
	font-weight:600;
	margin-top: 6px;
	margin-bottom:3px;
	color:var(--ink);
}

input[type=text], input[type=number], input[type=email], input[type=password], textarea, select
{
	width:100%;
	padding:10px 12px;
	font-family:'Inter',sans-serif;
	font-size:14.5px;
	border:1px solid var(--border);
	border-radius:7px;
	background:var(--paper);
	color:var(--ink);
	resize:vertical;
}
textarea
{min-height:64px;}
input:focus, textarea:focus, select:focus
{
	outline:2px solid var(--focus);
	outline-offset:1px;
	border-color:var(--focus);
}

h2
{
	margin-top:0;
}

button
{
	font-family:'Inter',sans-serif;
	font-weight:600;
	font-size:14.5px;
	padding:13px 22px;
	border-radius:8px;
	border:1px solid transparent;
	cursor:pointer;
	transition:opacity 0.15s ease;
}
button:hover
{opacity:0.88;}
.btn-primary
{background:var(--teal-dark);color:#fff;}
.btn-secondary
{background:transparent;color:var(--teal-dark);border-color:var(--teal-dark);}
btn-secondary:hover
{background: var(--teal-tint);}

.hint
{
	font-size:12.5px;
	color:var(--ink-soft);
	margin:1px 0 8px 7px;
} 


.status-msg
{
	font-size:13.5px;
	margin-top:10px;
	min-height:18px;
	color:var(--ink-soft);
}
.status-msg.error
{color:#9B3B3B;}
.status-msg.ok
{color:var(--teal-dark);}

.done-screen
{
	max-width:560px;
	margin:80px auto;
	text-align:center;
	padding:0 24px;
}
.done-screen .mark
{
	width:52px;height:52px;border-radius:50%;
	background:var(--teal);color:#fff;
	display:flex;align-items:center;justify-content:center;
	margin:0 auto 20px;font-size:24px;
}
.done-screen h2
{font-family:'Source Serif 4',serif;font-size:24px;margin-bottom:10px;}
.done-screen p
{color:var(--ink-soft);font-size:15px;}
.hidden
{display:none !important;}

.info-icon
{
	float:right;
	justify-content:center;
	width:15px;
	height:15px;
	border-radius:50%;
	background:var(--teal-tint);
	color:var(--teal-dark);
	font-size:10.5px;
	font-weight:700;
	font-style:italic;
	font-family:'Source Serif 4',serif;
	cursor:pointer;
	margin-left:5px;
	margin-top:2px;
	vertical-align:middle;
	border:1px solid var(--teal);
	line-height:1;
	padding:0;
}
.info-icon:hover
{
	background:var(--teal);
	color:#fff;
	cursor: pointer;
}
.info-note
{
	display:none;
	background:var(--ochre-tint);
	border-left:3px solid var(--ochre);
	padding:8px 10px;
	border-radius:0 6px 6px 0;
	font-size:12px;
	color:var(--ink-soft);
	margin:2px 0 10px;
}

.open
{
	display: block;
}


.section
{
	background:var(--paper);
	border:1px solid var(--border);
	border-radius:10px;
	margin-top:14px;
	overflow:hidden;
	padding: 8px 22px;
	height: auto;
}

.section-head
{
	margin-top: 0.83em;
	width:100%;
}
.section-head:hover
{
	cursor: pointer;
}
.section-num
{
	font-family:'JetBrains Mono',monospace;
	font-size:12px;
	color:var(--paper);
	background:var(--teal);
	width:24px;height:24px;
	border-radius:50%;
	display:flex;
	align-items:center;
	justify-content:center;
	flex-shrink:0;
	margin: 0.45em;
}
.dropdown_arrow
{
	display:inline-block;
	float:left;
	margin: 0.7em;
	transition:transform 0.2s ease;
	color:var(--ink-soft);
	flex-shrink:0;
	width: 16px;
	height: 16px;
}

.section_open .dropdown_arrow{transform:rotate(180deg);}

.section-body
{
	max-height:0;
	overflow:hidden;
	transition:max-height 0.25s ease;
	padding:0 22px;
}
.section_open .section-body
{
	max-height:6000px;/* Just needs to be taller than any section's content (the signup form with organisation questions is long). */
	padding:0 22px 22px;
}



.popup_background
{
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: var(--popup_background);
	opacity: 0.7;
}
.popup_body
{
	position: fixed;
	background: var(--bg);
	border:1px solid var(--border);
	border-radius:10px;
	padding: 0 14px 14px 14px;
	max-height: 80vh;
	overflow-y: auto;

	scrollbar-width: none;
	-ms-overflow-style: none;
}
.popup_body::-webkit-scrollbar
{
	display: none;
}

.loading_icon
{
	height:50px;
	width:50px;
	border-radius:25px;
	z-index:10;
	animation: spin 2s linear infinite;
	opacity: 1.0;
}
@keyframes spin
{
	from {transform: rotate(0deg);}
	to {transform: rotate(360deg);}
}


/* Navigation tabs under the header bar (nav_bar.jsp): links styled like the .tab-btn buttons above. */
.nav_bar
{
	width: var(--main_element_width);
	margin-left: var(--main_element_margin_left);
	padding-left: 24px;
}
.nav_bar .tab-btn
{
	width: calc( ( 100% - 48px ) / 3 );
	margin-bottom: 0;
	text-align: center;
	padding: 10px 0;
	font-weight:600;
	color:var(--ink-soft);
	border-bottom: 1px solid var(--teal);
	border-top: 1px solid var(--teal);
	border-radius: 10%;
	font-size:13.5px;
}
.tab-btn.active
{
	color:var(--ochre);
	border-bottom-color:var(--ochre);
	border-top-color:var(--ochre);
}

.back-to-top
{
    display: block;
    position: fixed;
    left: calc( 100vw - ( var(--main_element_margin_left) / 2 ) );
    top: 10vh;
}

