/* The Ivy Clinics Appointment Booking */
.ivy-booking {
	--ivy-primary: #4384c4;
	--ivy-accent: #EBF7FE;
	--ivy-white: #ffffff;
	box-sizing: border-box;
	width: 100%;
	max-width: 760px;
	margin: 0px auto;
	padding: clamp(22px, 4vw, 42px);
	background: var(--ivy-white);
	border: 1px solid #dceaf5;
	border-radius: 18px;
	box-shadow: 0 12px 38px rgba(39, 85, 128, .09);
	color: #263747;
	font: inherit;
}
.ivy-booking *, .ivy-booking *::before, .ivy-booking *::after { box-sizing: border-box; }
.ivy-booking__intro { margin-bottom: 28px; }
/* .ivy-booking__eyebrow { margin: 0 0 8px; color: var(--ivy-primary); font-size: 12px; font-weight: 800; letter-spacing: .13em; } */
.ivy-booking__intro h3 { margin: 0 0 10px 0 !important; color: #4383C4; font-size: clamp(25px, 4vw, 30px); line-height: 1.2; }
.ivy-booking__intro > p:last-child { margin: 0; color: #617487; line-height: 1.65; }
.ivy-booking__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0px 18px; }
.ivy-field { min-width: 0; margin: 0 0 20px; }
.ivy-field > label, .ivy-field legend { display: block; margin: 0 0 8px; color: #263f56; font-size: 14px; font-weight: 700; }
.ivy-field label > span:not(.ivy-optional), .ivy-field legend > span { color: var(--ivy-primary); }
.ivy-optional { color: #788b9c; font-size: 12px; font-weight: 500; }
.ivy-booking input[type="text"], .ivy-booking input[type="tel"], .ivy-booking input[type="date"], .ivy-booking input[type="time"], .ivy-booking textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #d6e2ec;
	border-radius: 9px;
	background: #fff;
	color: #263747;
	font: inherit;
	font-size: 15px;
	line-height: 1.45;
	box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.ivy-booking textarea { min-height: 112px; resize: vertical; }
.ivy-booking input:focus, .ivy-booking textarea:focus { outline: 0; border-color: var(--ivy-primary); box-shadow: 0 0 0 3px rgba(67, 132, 196, .15); }
.ivy-services { padding: 0; border: 0; }
.ivy-services legend { padding: 0; }
.ivy-services__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ivy-service-option { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 12px; border: 1px solid #d6e6f2; border-radius: 10px; background: var(--ivy-accent); color: #304c64; cursor: pointer; font-size: 14px; font-weight: 600; }
.ivy-service-option:has(input:checked) { border-color: var(--ivy-primary); background: #f2f9ff; box-shadow: 0 0 0 1px var(--ivy-primary) inset; }
.ivy-service-option input { width: 17px; height: 17px; margin: 0; flex: 0 0 auto; accent-color: var(--ivy-primary); }
.ivy-booking__submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin: 2px 0 0; padding: 14px 22px; border: 0; border-radius: 10px; background: var(--ivy-primary); color: #fff; font: inherit; font-size: 16px; font-weight: 750; cursor: pointer; transition: background .2s ease, transform .2s ease, opacity .2s ease; }
.ivy-booking__submit:hover { background: #326fae; transform: translateY(-1px); }
.ivy-booking__submit:focus-visible { outline: 3px solid #9cc8ee; outline-offset: 3px; }
.ivy-booking__submit[disabled] { cursor: wait; opacity: .75; transform: none; }
.ivy-booking__spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: ivy-spin .7s linear infinite; }
.ivy-booking__submit.is-loading .ivy-booking__spinner { display: inline-block; }
.ivy-booking__notice { display: none; margin: 16px 0 0; padding: 12px 14px; border-radius: 9px; font-size: 14px; line-height: 1.55; }
.ivy-booking__notice.is-visible { display: block; }
.ivy-booking__notice.is-success { border: 1px solid #b9e3ca; background: #f0fbf4; color: #205d37; }
.ivy-booking__notice.is-error { border: 1px solid #f0c8c8; background: #fff5f5; color: #8a2828; }
.ivy-booking__fineprint { margin: 14px 0 0; color: #748697; text-align: center; font-size: 12px; line-height: 1.55; }
.ivy-booking__honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@keyframes ivy-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
	.ivy-booking { padding: 22px 18px; border-radius: 14px; }
	.ivy-booking__grid { grid-template-columns: 1fr; gap: 0; }
	.ivy-services__options { grid-template-columns: 1fr; gap: 9px; }
}

/* Submission feedback */
.ivy-booking__notice.is-success { padding: 28px 22px; text-align: center; border: 1px solid #c4dfef; background: linear-gradient(135deg, #eff8ff, #f2fcf7); color: #294e65; box-shadow: 0 8px 24px rgba(39,85,128,.07); animation: ivy-feedback-in .3s ease-out; }
.ivy-booking__success-icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: #e0f4eb; color: #237454; font-size: 28px; font-weight: 700; }
.ivy-booking__notice strong { display: block; color: #285c83; font-size: 21px; line-height: 1.35; }
.ivy-booking__notice p { margin: 10px 0 0; color: inherit; font-size: 14px; line-height: 1.7; }
.ivy-booking__notice.is-error p { margin: 0; }
.ivy-booking__notice:focus-visible { outline: 2px solid var(--ivy-primary); outline-offset: 3px; }
@keyframes ivy-feedback-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .ivy-booking *, .ivy-booking *::before, .ivy-booking *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* The confirmation replaces the form until the page is refreshed. */
.ivy-booking [hidden] { display: none !important; }
.ivy-booking.is-submitted .ivy-booking__notice { margin-top: 0; }
