/*
 * Meetings: the public booking page (httpdocs/modules/meeting.php + meeting-runtime.js). A copy of the HubSpot booking
 * page the client used: progress steps, logo, then a card with the month on the accent colour and the times beside it.
 * --mt-accent and --mt-font come from the page's Look settings.
 */
:root {
	--mt-accent: #20205C;
	--mt-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--mt-page: #F5F8FA;
	--mt-ink: #33475B;
	--mt-ink-soft: #516F90;
	--mt-line: #CBD6E2;
	--mt-link: #0091AE;
	--mt-step: #FF7A59;
	--mt-pick: #CBD6E2;
	--mt-error: #D94C53;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.mt-body { font-family: var(--mt-font); color: var(--mt-ink); background: var(--mt-page); font-size: 14px; line-height: 1.5;
	-webkit-font-smoothing: antialiased; }
body.mt-embed { background: transparent; }
.mt-page { max-width: 882px; margin: 0 auto; padding: 32px 16px 48px; }
.mt-embed .mt-page { padding: 8px 0; }
button { font-family: inherit; }
.mt-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* progress */
.mt-steps { display: flex; justify-content: center; margin: 0 auto 12px; width: 360px; max-width: 100%; position: relative; }
.mt-steps::before { content: ''; position: absolute; top: 11px; left: 70px; right: 70px; height: 2px; background: var(--mt-line); }
.mt-step { flex: 1; text-align: center; position: relative; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--mt-ink); }
.mt-step i { display: block; width: 24px; height: 24px; margin: 0 auto 6px; border-radius: 50%; border: 2px solid var(--mt-line); background: #fff; }
.mt-step.is-on i { border-color: var(--mt-step); }
.mt-step.is-done i { border-color: var(--mt-step); background: var(--mt-step); }

/* logo */
.mt-logo { text-align: center; margin: 4px 0 24px; }
.mt-logo img { max-height: 84px; max-width: 280px; }
.mt-brand { text-align: center; font-size: 20px; font-weight: 600; margin: 4px 0 24px; }

/* the card */
.mt-card { display: flex; background: #fff; border-radius: 3px; box-shadow: 0 1px 24px rgba(45, 62, 80, .12); min-height: 670px; overflow: hidden; }
.mt-card-note { min-height: 0; padding: 40px 32px; justify-content: center; }
.mt-closed { margin: 0; font-size: 16px; text-align: center; }
.mt-left { flex: 0 0 50%; background: var(--mt-accent); color: #fff; padding: 48px 0 32px; text-align: center; }
.mt-right { flex: 1; padding: 32px; min-width: 0; display: flex; flex-direction: column; }
.mt-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; background: #E5F5F8; color: var(--mt-ink); display: flex;
	align-items: center; justify-content: center; font-size: 30px; font-weight: 300; }
.mt-avatars { display: flex; justify-content: center; margin-bottom: 14px; }
.mt-avatars .mt-avatar { width: 56px; height: 56px; font-size: 22px; margin: 0 -6px; border: 3px solid var(--mt-accent); }
.mt-left h1 { font-size: 24px; font-weight: 300; margin: 0 24px 4px; line-height: 1.3; }
.mt-welcome { margin: 8px 32px 0; font-size: 14px; opacity: .85; white-space: pre-line; }

/* month */
.mt-month { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0 24px; }
.mt-month strong { font-size: 22px; font-weight: 600; min-width: 170px; }
.mt-nav { background: none; border: 0; color: #fff; font-size: 22px; width: 32px; height: 32px; cursor: pointer; border-radius: 50%; line-height: 1; }
.mt-nav:disabled { opacity: .35; cursor: default; }
.mt-nav:not(:disabled):hover { background: rgba(255, 255, 255, .12); }
.mt-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 8px; row-gap: 4px; }
.mt-dow { font-size: 14px; font-weight: 700; letter-spacing: .04em; padding-bottom: 14px; }
.mt-day { height: 50px; display: flex; align-items: center; justify-content: center; }
.mt-day span, .mt-day button { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.mt-day span { color: rgba(255, 255, 255, .45); }
.mt-day button { background: none; border: 0; color: #fff; font-weight: 700; cursor: pointer; }
.mt-day button:hover { background: rgba(255, 255, 255, .14); }
.mt-day button.is-on { background: #fff; color: var(--mt-accent); font-weight: 400; }
.mt-day button:focus-visible, .mt-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* right column */
.mt-h { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.mt-section { margin-bottom: 26px; }
.mt-where { display: flex; align-items: center; gap: 8px; }
.mt-where svg { flex: none; }
.mt-lengths { display: flex; border: 1px solid var(--mt-line); border-radius: 3px; overflow: hidden; }
.mt-lengths button { flex: 1; border: 0; border-left: 1px solid var(--mt-line); background: #fff; color: var(--mt-ink); height: 32px; font-size: 13px; cursor: pointer; }
.mt-lengths button:first-child { border-left: 0; }
.mt-lengths button.is-on { background: var(--mt-pick); }
.mt-lengths.is-one button { cursor: default; }
.mt-showing { margin: 0 0 10px; font-size: 16px; }
.mt-zone { display: inline-flex; align-items: center; gap: 6px; position: relative; color: var(--mt-link); font-weight: 600; margin: 4px 0 14px 12px; max-width: calc(100% - 12px); }
.mt-zone select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; padding: 0 18px 0 0; cursor: pointer;
	max-width: 100%; text-overflow: ellipsis; }
.mt-zone::after { content: ''; position: absolute; right: 2px; top: 50%; margin-top: -2px; border: 5px solid transparent; border-top-color: currentColor; pointer-events: none; }
.mt-times { flex: 1; overflow-y: auto; max-height: 430px; padding: 2px 4px 2px 4px; }
.mt-time { display: block; width: 100%; height: 50px; margin-bottom: 8px; border: 1px solid var(--mt-line); border-radius: 3px; background: #fff;
	color: var(--mt-accent); font-size: 16px; cursor: pointer; }
.mt-time:hover, .mt-time:focus-visible { border-color: var(--mt-accent); box-shadow: 0 0 0 1px var(--mt-accent); outline: none; }
.mt-empty { color: var(--mt-ink-soft); font-size: 15px; margin: 8px 0; }
.mt-loading { color: var(--mt-ink-soft); }
.mt-banner { background: #FDEDEE; color: #8A1F27; border-radius: 3px; padding: 10px 12px; margin-bottom: 14px; }

/* your info */
.mt-form { max-width: 520px; margin: 0 auto; width: 100%; }
.mt-summary { border-bottom: 1px solid #EAF0F6; padding-bottom: 16px; margin-bottom: 20px; }
.mt-summary p { margin: 2px 0; }
.mt-field { margin-bottom: 16px; }
.mt-field label, .mt-field .mt-label { display: block; font-weight: 600; margin-bottom: 6px; }
.mt-field label i, .mt-field .mt-label i { color: var(--mt-error); font-style: normal; }
.mt-field input[type=text], .mt-field input[type=email], .mt-field input[type=tel], .mt-field select, .mt-field textarea {
	width: 100%; height: 40px; border: 1px solid var(--mt-line); border-radius: 3px; background: #F5F8FA; padding: 9px 10px; font: inherit; color: var(--mt-ink); }
.mt-field textarea { height: 96px; resize: vertical; }
.mt-field input:focus, .mt-field select:focus, .mt-field textarea:focus { outline: none; border-color: rgba(0, 208, 228, .5); box-shadow: 0 0 4px 1px rgba(0, 208, 228, .3), 0 0 0 1px #00D0E4; background: #fff; }
.mt-field.has-error input, .mt-field.has-error select, .mt-field.has-error textarea { border-color: var(--mt-error); }
.mt-err { color: var(--mt-error); font-size: 13px; margin-top: 4px; }
.mt-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.mt-check input { margin-top: 3px; }
.mt-two { display: flex; gap: 12px; }
.mt-two .mt-field { flex: 1; min-width: 0; }
.mt-guest { display: flex; gap: 8px; margin-bottom: 8px; }
.mt-guest input { flex: 1; }
.mt-linkbtn { background: none; border: 0; color: var(--mt-link); font-weight: 600; cursor: pointer; padding: 0; font-size: 14px; }
.mt-note { font-size: 12px; color: var(--mt-ink-soft); margin: 12px 0; }
.mt-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.mt-actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 20px; }
.mt-btn { background: var(--mt-step); color: #fff; border: 1px solid var(--mt-step); border-radius: 3px; height: 40px; padding: 0 24px; font-size: 14px; font-weight: 600; cursor: pointer; }
.mt-btn:disabled { opacity: .6; cursor: default; }
.mt-btn-quiet { background: #EAF0F6; color: #506E91; border-color: #CBD6E2; }
.mt-btn-danger { background: var(--mt-error); border-color: var(--mt-error); }

/* booked / manage */
.mt-done { text-align: center; padding: 56px 32px; flex: 1; }
.mt-done h2 { font-size: 28px; font-weight: 300; margin: 12px 0 18px; }
.mt-done .mt-big { font-size: 16px; margin: 4px 0; }
.mt-tick { width: 64px; height: 64px; border-radius: 50%; background: #E5F8F6; display: inline-flex; align-items: center; justify-content: center; }
.mt-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0 10px; }
.mt-links a { color: var(--mt-link); font-weight: 600; text-decoration: none; border: 1px solid var(--mt-line); border-radius: 3px; padding: 8px 14px; }
.mt-links a:hover { border-color: var(--mt-link); }
.mt-manage-links { margin-top: 18px; font-size: 14px; }
.mt-done a:not(.mt-btn) { color: var(--mt-link); }
.mt-manage-links a { color: var(--mt-link); font-weight: 600; }

@media (max-width: 760px) {
	.mt-page { padding: 20px 12px 32px; }
	.mt-card { flex-direction: column; min-height: 0; }
	.mt-left { flex-basis: auto; padding: 28px 0 18px; }
	.mt-day, .mt-day span, .mt-day button { height: 42px; }
	.mt-day span, .mt-day button { width: 42px; }
	.mt-right { padding: 22px 16px; }
	.mt-times { max-height: none; }
	.mt-two { flex-direction: column; gap: 0; }
	.mt-done { padding: 36px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
	.mt-time, .mt-day button, .mt-links a { transition: border-color .12s, box-shadow .12s, background-color .12s; }
}
.mt-banner-top { max-width: 850px; margin: 0 auto 14px; text-align: center; }
