/* Grade House Booking — a manila booking card (punched hole, price, what's
 * included, step tracker) beside the booking form on a white panel. The form
 * is WPForms (modern markup): restyled through its own CSS variables, which
 * its Stripe card field reads as well. Selectors carry .gh.book and the
 * container element so they outrank WPForms' own rules. */

.gh.book { --book-line: #D3D0C6; background: var(--gh-paper); }
.gh .book__in { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

/* booking card */
.gh .book__card { position: sticky; top: calc(var(--gh-hdr) + 24px); display: grid; gap: 22px; padding: 44px 32px 32px; background: var(--gh-card-2); color: #3F3522; clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%); }
.gh .book__card .punch { top: 18px; left: 18px; }
.gh .book__ct { font: 600 15px/1.3 var(--gh-head); color: var(--gh-card-line); letter-spacing: 0; }
.gh .book__price { display: grid; gap: 4px; margin-top: -10px; }
.gh .book__amount { font: 600 64px/1 var(--gh-head); letter-spacing: -.04em; color: var(--gh-ink); }
.gh .book__pnote { font-size: 15px; color: #5E5440; }
.gh .book__inc { display: grid; gap: 10px; padding-top: 20px; border-top: 1px dashed rgba(63, 53, 34, .35); }
.gh .book__inc li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.5; }
.gh .book__inc li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px; border-left: 2px solid var(--gh-blue); border-bottom: 2px solid var(--gh-blue); transform: rotate(-45deg); }
.gh .book__steps { display: grid; gap: 0; padding-top: 20px; border-top: 1px dashed rgba(63, 53, 34, .35); counter-reset: none; }
.gh .book__step { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 15.5px; color: #6E6450; transition: color .2s; }
.gh .book__step + .book__step::before { content: ""; position: absolute; left: 13px; top: -7px; height: 14px; width: 1.5px; background: rgba(63, 53, 34, .3); }
.gh .book__num { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1.5px solid currentColor; border-radius: 50%; font: 600 13px/1 var(--gh-sans); }
.gh .book__step.is-on { color: var(--gh-ink); font-weight: 600; }
.gh .book__step.is-on .book__num { border-color: var(--gh-blue); background: var(--gh-blue); color: #fff; }
.gh .book__step.is-done { color: var(--gh-ink); }
.gh .book__step.is-done .book__num { border-color: var(--gh-ink); background: var(--gh-ink); color: var(--gh-card-2); }
.gh .book__note { padding-top: 20px; border-top: 1px dashed rgba(63, 53, 34, .35); font-size: 14.5px; line-height: 1.55; }
.gh .book__note .tlink { color: var(--gh-ink); }

/* form panel */
.gh .book__form { padding: clamp(28px, 3.4vw, 48px); background: var(--gh-white); border: 1px solid var(--gh-line); border-radius: 2px; scroll-margin-top: calc(var(--gh-hdr) + 16px); }
.gh .book__ft { font: 600 clamp(26px, 2.4vw, 34px)/1.1 var(--gh-head); letter-spacing: var(--gh-track); color: var(--gh-ink); }
.gh .book__fi { margin-top: 10px; max-width: 54ch; font-size: 15.5px; color: var(--gh-muted); }

/* WPForms through its variables */
.gh.book div.wpforms-container-full {
	--wpforms-field-border-radius: 2px;
	--wpforms-field-border-style: solid;
	--wpforms-field-border-size: 1px;
	/* colours as rgb(): WPForms parses these to style the Stripe card field */
	--wpforms-field-background-color: rgb(255, 255, 255);
	--wpforms-field-border-color: rgb(211, 208, 198);
	--wpforms-field-text-color: rgb(36, 39, 43);
	--wpforms-field-menu-color: rgb(255, 255, 255);
	--wpforms-label-color: rgb(36, 39, 43);
	--wpforms-label-sublabel-color: rgb(107, 111, 118);
	--wpforms-label-error-color: rgb(180, 35, 24);
	--wpforms-button-border-radius: 2px;
	--wpforms-button-border-style: none;
	--wpforms-button-border-size: 0;
	--wpforms-button-background-color: rgb(31, 67, 168);
	--wpforms-button-border-color: rgb(31, 67, 168);
	--wpforms-button-text-color: rgb(255, 255, 255);
	--wpforms-page-break-color: rgb(31, 67, 168);
	--wpforms-field-size-input-height: 50px;
	--wpforms-field-size-input-spacing: 18px;
	--wpforms-field-size-font-size: 16px;
	--wpforms-field-size-line-height: 22px;
	--wpforms-field-size-padding-h: 14px;
	--wpforms-field-size-checkbox-size: 18px;
	--wpforms-field-size-sublabel-spacing: 6px;
	--wpforms-field-size-icon-size: 1;
	--wpforms-label-size-font-size: 15px;
	--wpforms-label-size-line-height: 20px;
	--wpforms-label-size-sublabel-font-size: 13px;
	--wpforms-label-size-sublabel-line-height: 18px;
	--wpforms-button-size-font-size: 16px;
	--wpforms-button-size-height: 52px;
	--wpforms-button-size-padding-h: 26px;
	--wpforms-button-size-margin-top: 10px;
	margin: 28px 0 0;
	font-family: var(--gh-sans);
}
.gh.book div.wpforms-container-full .wpforms-form .wpforms-field { padding: 0 0 22px; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-field-label { font-family: var(--gh-sans); font-weight: 600; margin-bottom: 8px; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-required-label { color: var(--gh-blue); }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-field-description { margin-top: 6px; font-size: 14px; color: var(--gh-muted); }
.gh.book div.wpforms-container-full .wpforms-form input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]),
.gh.book div.wpforms-container-full .wpforms-form textarea,
.gh.book div.wpforms-container-full .wpforms-form select { font-family: var(--gh-sans); box-shadow: none; transition: border-color .2s, box-shadow .2s; }
.gh.book div.wpforms-container-full .wpforms-form input:focus, .gh.book div.wpforms-container-full .wpforms-form textarea:focus { border-color: var(--gh-blue); box-shadow: 0 0 0 3px rgba(31, 67, 168, .14); }
.gh.book div.wpforms-container-full .wpforms-form textarea { min-height: 130px; }

/* page titles: each step starts with its own heading line */
.gh.book div.wpforms-container-full .wpforms-form .wpforms-page-indicator { display: none; }

/* meeting type: three bordered cards */
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-item { width: auto; margin: 0; padding: 0; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-item label { display: grid; justify-items: center; gap: 10px; width: 100%; height: 100%; padding: 18px 10px; border: 1px solid var(--book-line); border-radius: 2px; background: #fff; box-shadow: none; text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-item label:hover { border-color: var(--gh-ink); }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-item.wpforms-selected label { border-color: var(--gh-blue); background: var(--gh-blue-soft); box-shadow: inset 0 0 0 1px var(--gh-blue); }
/* WPForms' icon-choice style rules are very specific: the few properties that
   undo its inner box, fixed 120px width and radio dot need !important */
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-item { width: 100% !important; max-width: none !important; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-item label { width: 100% !important; max-width: none !important; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-icon::before,
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-icon::after { display: none !important; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-icon { width: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
/* the whole card shows the choice, so the small radio dot goes */
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-item input[type="radio"] { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-item input[type="radio"]::before,
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-item input[type="radio"]::after { display: none; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-item label:focus-within { outline: 2px solid var(--gh-blue); outline-offset: 2px; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-icon svg { fill: var(--gh-ink) !important; width: 30px !important; height: 30px !important; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-item.wpforms-selected .wpforms-icon-choices-icon svg { fill: var(--gh-blue) !important; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-icon-bg { display: none; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-label { font: 600 15px/1.3 var(--gh-sans); color: var(--gh-ink); }

/* date and time side by side */
.gh.book div.wpforms-container-full .wpforms-form .wpforms-field-date-time .wpforms-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* the row's clearfix pseudo-elements would become empty grid cells */
.gh.book div.wpforms-container-full .wpforms-form .wpforms-field-date-time .wpforms-field-row::before,
.gh.book div.wpforms-container-full .wpforms-form .wpforms-field-date-time .wpforms-field-row::after { display: none; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-field-date-time .wpforms-field-row-block { width: auto; padding: 0; float: none; }

/* fee row and card field */
.gh.book div.wpforms-container-full .wpforms-form .wpforms-field-payment-single .wpforms-single-item-price { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px; border: 1px dashed var(--book-line); background: var(--gh-paper); font-size: 16px; color: var(--gh-text); }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-field-payment-single .wpforms-price { font: 600 20px/1 var(--gh-head); color: var(--gh-ink); }

/* buttons: Back as a quiet text button, Continue / Pay as the blue button */
.gh.book div.wpforms-container-full .wpforms-form .wpforms-page-button,
.gh.book div.wpforms-container-full .wpforms-form button[type="submit"] { font-family: var(--gh-sans); font-weight: 600; letter-spacing: .005em; text-transform: none; cursor: pointer; transition: background-color .2s, color .2s; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-page-button.wpforms-page-next:hover,
.gh.book div.wpforms-container-full .wpforms-form button[type="submit"]:hover { background: var(--gh-blue-2); }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-page-button.wpforms-page-prev { background: transparent; color: var(--gh-ink); box-shadow: inset 0 0 0 1px var(--gh-ink); }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-page-button.wpforms-page-prev:hover { background: var(--gh-ink); color: #fff; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-pagebreak-left { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-pagebreak-left .wpforms-page-button { margin: 0; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-submit-container { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* payment step: Back sits in its own block before the submit button; line them up in one row */
@media (min-width: 768px) {
	.gh.book div.wpforms-container-full .wpforms-form { position: relative; }
	.gh.book div.wpforms-container-full .wpforms-form .wpforms-page.last .wpforms-field-pagebreak { position: absolute; left: 0; bottom: 0; padding: 0; }
	.gh.book div.wpforms-container-full .wpforms-form .wpforms-page.last ~ .wpforms-submit-container,
	.gh.book div.wpforms-container-full .wpforms-form .wpforms-submit-container { padding-left: 102px; }
	.gh.book div.wpforms-container-full .wpforms-form .wpforms-page.last .wpforms-page-prev { width: 92px; padding: 0; }
}

/* errors sit in a reserved slot under each field: when they clear (on leaving
   the field) nothing moves, so a click on Continue lands where it was aimed */
.gh.book div.wpforms-container-full .wpforms-form .wpforms-field { position: relative; padding-bottom: 30px; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-field-row-block { position: relative; padding-bottom: 24px; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-field-name .wpforms-field-row-block,
.gh.book div.wpforms-container-full .wpforms-form .wpforms-field-date-time .wpforms-field-row-block { padding-bottom: 24px; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-field-name,
.gh.book div.wpforms-container-full .wpforms-form .wpforms-field-date-time { padding-bottom: 6px; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-field-pagebreak { padding-bottom: 0; }
.gh.book div.wpforms-container-full .wpforms-form em.wpforms-error,
.gh.book div.wpforms-container-full .wpforms-form label.wpforms-error { position: absolute; left: 0; bottom: 4px; margin: 0; padding: 0; font-size: 13.5px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gh.book div.wpforms-container-full .wpforms-form .wpforms-has-error input, .gh.book div.wpforms-container-full .wpforms-form .wpforms-has-error textarea { border-color: #B42318; }

@media (max-width: 1024px) {
	.gh .book__in { grid-template-columns: 1fr; }
	.gh .book__card { position: static; }
}
@media (max-width: 767px) {
	.gh .book__card { padding: 40px 22px 24px; gap: 18px; }
	.gh .book__amount { font-size: 52px; }
	.gh .book__form { padding: 24px 18px; }
	.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices { grid-template-columns: 1fr; }
	.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-item label { display: flex !important; align-items: center; justify-content: flex-start; gap: 14px; min-height: 0 !important; height: auto !important; padding: 14px 16px !important; text-align: left; }
	.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-icon svg { width: 24px !important; height: 24px !important; display: block; }
	.gh.book div.wpforms-container-full .wpforms-form .wpforms-icon-choices-label { margin: 0 !important; }
	.gh.book div.wpforms-container-full .wpforms-form .wpforms-page-button,
	.gh.book div.wpforms-container-full .wpforms-form button[type="submit"] { width: 100%; }
}
