/* =========================================================
   Mind With Faz Booking — matches mindwithfaz.netlify.app
   Tokens use the same names as the original site.
   If your theme already sets these on :root, the theme wins.
   To change a colour, set it in your theme:  :root { --gold: #...; }
   ========================================================= */
:where(html) {
	--cream: #F6F2E7;
	--cream-deep: #EFE8D6;
	--forest: #1E2B21;
	--forest-soft: #2C3B2E;
	--gold: #B8863B;
	--gold-hover: #A67635;
	--gold-soft: #E7DCC2;
	--ink: #2B2820;
	--ink-soft: #6B6455;
	--lilac: #A57FB0;
	--line: #E4DCC9;
	--paper: #FFFCF6;
	--muted-day: #C9C2AE;
	--radius: 4px;
	--sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
	--serif: "Newsreader", Georgia, serif;
}

.mwfb { font-family: var(--sans); color: var(--ink); line-height: 1.7; -webkit-font-smoothing: antialiased; }
.mwfb *, .mwfb *::before, .mwfb *::after { box-sizing: border-box; }
.mwfb [hidden] { display: none !important; }
.mwfb p { margin: 0; }

/* Two-column panel: calendar left, form right */
.mwfb-form { display: grid; grid-template-columns: 400px 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .mwfb-form { grid-template-columns: 1fr; } }

/* ---------- Calendar ---------- */
.mwfb-cal {
	background: var(--cream); border: 1px solid var(--line);
	border-radius: 10px; padding: 28px; height: fit-content;
}
.mwfb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mwfb-month { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--forest); }
.mwfb .mwfb-nav {
	width: 30px; height: 30px; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	background: none; border: 1px solid var(--line); border-radius: 6px;
	color: var(--gold); font-size: 12px; cursor: pointer; transition: border-color .2s;
}
.mwfb .mwfb-nav:hover:not(:disabled) { border-color: var(--gold); background: none; }
.mwfb .mwfb-nav:disabled { opacity: .35; cursor: not-allowed; }

.mwfb-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; }
.mwfb-week span { text-align: center; font-size: 11px; color: var(--ink-soft); padding-bottom: 4px; }
.mwfb-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.mwfb .mwfb-day {
	aspect-ratio: 1 / 1; width: 100%; padding: 0;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--sans); font-size: 13px; color: var(--ink);
	background: var(--paper); border: 0; border-radius: 6px; cursor: pointer;
	transition: background .15s, color .15s;
}
.mwfb .mwfb-day.is-empty { background: transparent; cursor: default; }
.mwfb .mwfb-day:disabled { color: var(--muted-day); background: transparent; cursor: not-allowed; }
.mwfb .mwfb-day:not(:disabled):not(.is-empty):hover { background: var(--gold-soft); color: var(--ink); }
.mwfb .mwfb-day.is-today:not(.is-picked) { box-shadow: inset 0 0 0 1px var(--gold-soft); }
.mwfb .mwfb-day.is-picked { background: var(--gold); color: var(--paper); font-weight: 600; }

.mwfb-loading, .mwfb-cal-note { font-size: 12px; color: var(--ink-soft); margin-top: 16px !important; line-height: 1.5; }

/* ---------- Time slots ---------- */
.mwfb-times { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.mwfb-times-title {
	font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase;
	color: var(--gold); font-weight: 600; margin-bottom: 10px !important;
}
.mwfb-slot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mwfb .mwfb-slot {
	border: 1px solid var(--line); background: var(--paper);
	padding: 8px 14px; border-radius: 18px;
	font-family: var(--sans); font-size: 13px; line-height: 1.2; color: var(--ink);
	cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.mwfb .mwfb-slot:hover:not(:disabled) { border-color: var(--gold); background: var(--paper); color: var(--ink); }
.mwfb .mwfb-slot.is-picked, .mwfb .mwfb-slot.is-picked:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.mwfb .mwfb-slot:disabled { color: var(--muted-day); background: transparent; text-decoration: line-through; cursor: not-allowed; }

/* ---------- Form ---------- */
.mwfb-details { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.mwfb-note {
	font-size: 12.5px; color: var(--gold); font-weight: 600;
	letter-spacing: .5px; text-transform: uppercase; margin-bottom: 22px !important;
}
.mwfb-summary {
	background: var(--forest); color: var(--cream);
	border-radius: 6px; padding: 12px 16px; font-size: 13px; margin-bottom: 18px !important;
}

.mwfb .mwfb-section { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.mwfb .mwfb-section legend {
	display: block; width: 100%; padding: 0 0 10px; margin-bottom: 14px;
	font-family: var(--serif); font-size: 15.5px; font-weight: 500; color: var(--forest);
	border-bottom: 1px solid var(--line);
}
.mwfb-row { display: flex; gap: 16px; }
@media (max-width: 560px) { .mwfb-row { flex-direction: column; gap: 0; } }

.mwfb .mwfb-field { display: block; flex: 1 1 0%; margin-bottom: 14px; font-size: 12px; color: var(--ink-soft); }
.mwfb .mwfb-field-small { flex: 0 0 100px; }
@media (max-width: 560px) { .mwfb .mwfb-field-small { flex-basis: auto; } }
.mwfb .mwfb-field input, .mwfb .mwfb-field select, .mwfb .mwfb-field textarea {
	display: block; width: 100%; margin-top: 6px;
	border: 1px solid var(--line); background: var(--paper); border-radius: 6px;
	padding: 10px 12px; font-family: var(--sans); font-size: 13.5px; line-height: 1.4;
	color: var(--ink); box-shadow: none; height: auto;
}
.mwfb .mwfb-field input:focus, .mwfb .mwfb-field select:focus, .mwfb .mwfb-field textarea:focus {
	outline: none; border-color: var(--gold); box-shadow: none;
}
.mwfb .mwfb-field textarea { resize: vertical; min-height: 96px; margin-bottom: 0; }
.mwfb-count { display: block; text-align: right; font-size: 11px; color: var(--ink-soft); margin-top: -10px; }

.mwfb .mwfb-consent { padding-top: 4px; }
.mwfb-consent-text { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 14px !important; }
.mwfb .mwfb-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink); cursor: pointer; }
.mwfb .mwfb-check input { margin: 3px 0 0; accent-color: var(--gold); flex: none; }

.mwfb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mwfb .cf-turnstile { margin: 0 0 16px; }

.mwfb-error {
	background: #F8E9E4; color: #8A2E1C; border: 1px solid #EBCFC5;
	border-radius: 6px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px !important;
}

/* Button = .btn .btn-gold .btn-large */
.mwfb .mwfb-submit {
	display: inline-flex; align-items: center; justify-content: center;
	width: 100%; margin: 4px 0 0; padding: 18px 40px; border: 0;
	border-radius: var(--radius); background: var(--gold); color: var(--paper);
	font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .3px;
	text-transform: none; line-height: 1.2; white-space: normal; cursor: pointer;
	transition: transform .25s, box-shadow .25s, background .25s;
}
.mwfb .mwfb-submit:hover:not(:disabled) {
	background: var(--gold-hover); color: var(--paper);
	box-shadow: 0 10px 24px -8px rgba(184, 134, 59, .55); transform: translateY(-1px);
}
.mwfb .mwfb-submit:disabled { opacity: .5; cursor: not-allowed; }
.mwfb-small { font-size: 11.5px; color: var(--ink-soft); text-align: center; margin-top: 12px !important; }

/* ---------- Done ---------- */
.mwfb-done {
	grid-column: 1 / -1; background: var(--cream); border: 1px solid var(--line);
	border-radius: 10px; padding: 40px 32px; text-align: center;
}
.mwfb-done-title { font-family: var(--serif); font-size: 22px; color: var(--forest); margin-bottom: 6px !important; }
.mwfb-done a { color: var(--gold); }

/* Focus + motion */
.mwfb button:focus-visible, .mwfb input:focus-visible, .mwfb select:focus-visible,
.mwfb textarea:focus-visible, .mwfb a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.mwfb *, .mwfb *::before, .mwfb *::after { transition: none !important; transform: none !important; }
}
