/* Abrielle Forms */

.af-form {
	--af-accent: #a9cbe8;
	--af-strong: #3d6f99;
	--af-text: #2e3031;
	--af-muted: #6b6f73;
	--af-border: #d6e1ec;
	--af-soft: #eef5fb;
	--af-error: #b3261e;
	--af-heading-font: "Fredoka One", "Readex Pro", sans-serif;

	box-sizing: border-box;
	max-width: 780px;
	margin: 0 auto;
	padding: 28px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 8px 32px rgba(46, 48, 49, 0.08);
	color: var(--af-text);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.af-form *,
.af-form *::before,
.af-form *::after {
	box-sizing: border-box;
}

.af-form [hidden] {
	display: none !important;
}

.af-form h4,
.af-form h5 {
	font-family: var(--af-heading-font);
	font-weight: 400;
	color: var(--af-text);
	letter-spacing: 0;
	text-transform: none;
}

/* Steps and progress */

.af-form .af-step {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.af-form:not(.af-js) .af-step + .af-step {
	margin-top: 40px;
}

.af-form .af-step-title {
	float: left;
	width: 100%;
	margin: 0 0 20px;
	padding: 0;
	font-family: var(--af-heading-font);
	font-size: 26px;
	line-height: 1.2;
	color: var(--af-text);
}

.af-form .af-step-title + * {
	clear: both;
}

.af-progress {
	margin: 0 0 22px;
}

.af-progress-bar {
	height: 6px;
	border-radius: 99px;
	background: #e6eef6;
	overflow: hidden;
}

.af-progress-bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--af-strong);
	transition: width 0.3s ease;
}

.af-progress-label {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--af-muted);
}

/* Layout */

.af-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px 20px;
}

.af-field {
	grid-column: span 6;
	min-width: 0;
}

.af-half {
	grid-column: span 3;
}

.af-third {
	grid-column: span 2;
}

.af-type-heading h4 {
	margin: 10px 0 -4px;
	font-size: 20px;
}

/* Inputs */

.af-form .af-label {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--af-text);
}

.af-req {
	color: var(--af-strong);
}

.af-form .af-input {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	border: 1.5px solid var(--af-border);
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--af-text);
	font: inherit;
	font-size: 16px; /* 16px stops iPhones zooming in on focus */
}

.af-form textarea.af-input {
	min-height: 96px;
	resize: vertical;
}

.af-form .af-input:focus,
.af-form .af-option:focus-within {
	border-color: var(--af-strong);
	outline: 3px solid rgba(61, 111, 153, 0.2);
	outline-offset: 0;
}

.af-help {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--af-muted);
}

/* Radio buttons and tick boxes */

.af-form .af-choices {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.af-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.af-form .af-option {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	border: 1.5px solid var(--af-border);
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
}

.af-form .af-option input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--af-strong);
}

.af-form .af-option:has(input:checked) {
	border-color: var(--af-strong);
	background: var(--af-soft);
}

.af-option small {
	display: block;
	font-size: 13px;
	color: var(--af-muted);
}

.af-type-room .af-options {
	flex-direction: column;
}

.af-form .af-consent {
	align-items: flex-start;
}

.af-form .af-consent input {
	margin-top: 2px;
}

/* Notes, price and summary */

.af-type-note p {
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--af-soft);
	font-size: 14px;
}

.af-type-html {
	padding: 4px 20px;
	border-radius: 12px;
	background: #f7fafd;
	font-size: 15px;
}

.af-type-html h4 {
	margin: 16px 0 6px;
	font-size: 18px;
}

.af-type-html ul {
	margin: 0 0 12px;
	padding-left: 20px;
}

.af-price {
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--af-soft);
}

.af-price p {
	margin: 0;
	font-size: 14px;
	color: var(--af-muted);
}

.af-form .af-price table {
	width: 100%;
	margin: 0 0 8px;
	border: 0;
	border-collapse: collapse;
	font-size: 15px;
}

.af-form .af-price td {
	padding: 4px 0;
	border: 0;
	background: none;
}

.af-form .af-price td:last-child {
	text-align: right;
	white-space: nowrap;
}

.af-form .af-price .af-price-total td {
	padding-top: 10px;
	border-top: 1px solid var(--af-border);
	font-size: 18px;
	font-weight: 700;
}

.af-type-summary h4 {
	margin: 0 0 10px;
	font-size: 20px;
}

.af-summary-group {
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 1px solid var(--af-border);
	border-radius: 12px;
}

.af-summary-group h5 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 8px;
	font-size: 16px;
}

.af-form .af-edit {
	padding: 2px 10px;
	border: 0;
	border-radius: 99px;
	background: var(--af-soft);
	color: var(--af-strong);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}

.af-summary dl {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 4px 16px;
	margin: 0;
	font-size: 14px;
}

.af-summary dt {
	color: var(--af-muted);
}

.af-summary dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.af-summary-total {
	margin: 0 0 16px;
	font-weight: 700;
}

/* Errors */

.af-form .af-invalid .af-input,
.af-form .af-invalid .af-option {
	border-color: var(--af-error);
}

.af-error-msg,
.af-status {
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--af-error);
}

.af-status:empty {
	display: none;
}

/* Buttons */

.af-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.af-form .af-btn {
	min-height: 48px;
	margin: 0;
	padding: 12px 28px;
	border: 1.5px solid transparent;
	border-radius: 99px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.af-form .af-btn-primary {
	margin-left: auto;
	background: var(--af-text);
	color: #fff;
}

.af-form .af-btn-primary:hover,
.af-form .af-btn-primary:focus-visible {
	background: var(--af-strong);
	color: #fff;
}

.af-form .af-btn-secondary {
	border-color: var(--af-border);
	background: transparent;
	color: var(--af-text);
}

.af-form .af-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.af-form:not(.af-js) .af-back,
.af-form:not(.af-js) .af-next {
	display: none;
}

/* Spam trap, hidden from people */

.af-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Thank-you message */

.af-success {
	max-width: 780px;
	margin: 0 auto;
	padding: 40px 28px;
	border-radius: 18px;
	background: var(--af-soft, #eef5fb);
	text-align: center;
	color: #2e3031;
}

.af-success h3 {
	margin: 0 0 8px;
	font-family: "Fredoka One", "Readex Pro", sans-serif;
	font-weight: 400;
}

.af-success p {
	margin: 0;
}

/* Kitten Portal */

.af-portal-title {
	margin: 0 0 4px;
	font-family: var(--af-heading-font);
	font-size: 26px;
	font-weight: 400;
}

.af-portal-ref {
	margin: 0 0 24px;
	color: var(--af-muted);
}

.af-portal .af-portal-heading {
	margin: 0 0 12px;
	font-size: 22px;
}

/* "Your kitten" card, when Abrielle has linked a kitten from a litter. */
.af-portal-kitten {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin: 0 0 24px;
	padding: 18px;
	border-radius: 16px;
	background: var(--af-soft);
}

.af-portal-kitten-photo {
	flex: none;
	width: 140px;
	height: 140px;
	border-radius: 14px;
	object-fit: cover;
}

.af-portal-kitten-eyebrow {
	color: var(--af-strong);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.af-portal .af-portal-kitten h4 {
	margin: 4px 0 10px;
	font-family: var(--af-heading-font);
	font-size: 24px;
	font-weight: 400;
}

.af-portal-kitten dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 14px;
	margin: 0;
	font-size: 14px;
}

.af-portal-kitten dt {
	color: var(--af-muted);
}

.af-portal-kitten dd {
	margin: 0;
}

.af-portal-weekly {
	margin: 0 0 28px;
}

.af-portal .af-portal-weekly .af-portal-heading {
	font-size: 18px;
}

.af-portal-weekly-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 10px;
}

.af-portal-weekly-grid img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	border-radius: 12px;
	object-fit: cover;
}

.af-portal-weekly-note {
	margin: 10px 0 0;
	color: var(--af-muted);
	font-size: 14px;
}

@media (max-width: 520px) {
	.af-portal-kitten {
		flex-direction: column;
	}

	.af-portal-kitten-photo {
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
	}
}

.af-portal h5 {
	margin: 28px 0 10px;
	padding-bottom: 6px;
	border-bottom: 1.5px solid var(--af-strong);
	color: var(--af-strong);
	font-size: 17px;
}

.af-portal .af-grid {
	margin-top: 18px;
}

.af-form .af-portal-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 15px;
}

.af-form .af-portal-table th,
.af-form .af-portal-table td {
	padding: 8px 0;
	border: 0;
	border-bottom: 1px solid var(--af-border);
	background: none;
	text-align: left;
	vertical-align: top;
}

.af-form .af-portal-table th {
	width: 40%;
	padding-right: 12px;
	color: var(--af-muted);
	font-weight: 400;
}

.af-portal-box,
.af-portal-status {
	margin: 20px 0 0;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--af-soft);
}

.af-portal-box p,
.af-portal-status p {
	margin: 0 0 10px;
}

.af-contract-intro {
	margin: 20px 0 0;
	font-size: 15px;
}

.af-clause {
	display: flex;
	gap: 16px;
	align-items: flex-end;
	margin: 0 0 10px;
	padding: 12px 14px;
	border: 1px solid var(--af-border);
	border-radius: 10px;
	font-size: 15px;
}

.af-clause > div,
.af-clause > p {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.af-clause p:last-child {
	margin-bottom: 0 !important;
}

.af-form .af-initial {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--af-muted);
}

.af-form .af-initial input {
	width: 72px;
	min-height: 44px;
	padding: 6px;
	border: 1.5px solid var(--af-border);
	border-radius: 8px;
	background: #fff;
	color: var(--af-strong);
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
}

.af-form .af-initial input:focus {
	border-color: var(--af-strong);
	outline: 3px solid rgba(61, 111, 153, 0.2);
}

.af-clause.af-invalid {
	border-color: var(--af-error);
	background: #fff6f5;
}

.af-clause.af-invalid .af-initial input {
	border-color: var(--af-error);
}

.af-sign {
	position: relative;
	border: 1.5px dashed var(--af-border);
	border-radius: 10px;
	background: #fff;
}

.af-sign canvas {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 700 / 220;
	border-radius: 10px;
	touch-action: none;
	cursor: crosshair;
}

.af-form .af-sign-clear {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 4px 12px;
	border: 0;
	border-radius: 99px;
	background: var(--af-soft);
	color: var(--af-strong);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}

.af-field.af-invalid .af-sign {
	border-color: var(--af-error);
}

.af-portal-date {
	margin: 0;
	padding: 12px 0;
}

.af-form .af-file {
	padding: 10px;
}

@media (max-width: 600px) {
	.af-clause {
		flex-direction: column;
		align-items: stretch;
	}

	.af-form .af-initial {
		flex-direction: row;
		justify-content: flex-end;
		gap: 10px;
	}
}

@media (max-width: 600px) {
	.af-form {
		padding: 18px 16px;
		border-radius: 14px;
	}

	.af-half,
	.af-third {
		grid-column: span 6;
	}

	.af-form .af-step-title {
		font-size: 22px;
	}

	.af-summary dl {
		grid-template-columns: 1fr;
	}

	.af-summary dd {
		margin-bottom: 6px;
	}

	.af-form .af-btn {
		flex: 1 1 auto;
	}
}

/* Monthly box (subscription) picker */
.af-sub { display: grid; gap: 10px; margin-top: 4px; }
.af-sub-item { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--af-border); border-radius: 14px; background: #fff; transition: border-color .2s ease, background .2s ease; }
.af-sub-item.af-sub-on { border-color: var(--af-strong); background: var(--af-soft); }
.af-sub-info { display: grid; gap: 2px; min-width: 0; }
.af-sub-info b { font-weight: 600; }
.af-sub-info small { color: var(--af-muted); font-size: 13px; line-height: 1.4; }
.af-sub-price { color: var(--af-strong); font-size: 14px; font-weight: 500; }
.af-sub-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.af-form .af-sub-option { width: auto; max-width: 220px; padding: 8px 10px; font-size: 14px; }
.af-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--af-border); border-radius: 999px; background: #fff; overflow: hidden; }
.af-form .af-sub .af-qty input.af-sub-qty { width: 44px; padding: 8px 0; border: 0; border-radius: 0; text-align: center; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.af-qty .af-sub-qty::-webkit-outer-spin-button, .af-qty .af-sub-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.af-form .af-qty-btn { width: 38px; height: 38px; padding: 0; border: 0; background: var(--af-soft); color: var(--af-strong); font-size: 20px; line-height: 1; cursor: pointer; }
.af-form .af-qty-btn:hover { background: var(--af-accent); }
.af-sub-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--af-soft); color: var(--af-muted); }
.af-sub-total strong { color: var(--af-text); font-size: 20px; }
.af-sub-total small { font-size: 13px; font-weight: 400; color: var(--af-muted); }
.af-summary dd { white-space: pre-line; }
@media (max-width: 560px) {
	.af-sub-item { grid-template-columns: 1fr; }
	.af-sub-controls { justify-content: space-between; }
	.af-sub-controls { flex-wrap: nowrap; }
	.af-form .af-sub-option { flex: 1 1 0; min-width: 0; max-width: none; }
}
/* Kitten Care Guide on the portal */
.af-guide h5 { margin: 24px 0 8px; }
.af-guide p { margin: 0 0 10px; }
.af-guide .af-guide-list-title { margin: 12px 0 6px; font-weight: 600; }
.af-guide-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.af-guide-list li { padding: 4px 10px; border-radius: 999px; background: var(--af-soft); font-size: 14px; }
.af-guide-signoff { margin-top: 20px; font-style: italic; }
/* Returning clients: "Booked with us before?" */
.af-prefill { margin: 0 0 22px; padding: 14px 16px; border: 1px dashed var(--af-accent); border-radius: 14px; background: #fbfdff; }
.af-prefill[hidden] { display: none; }
.af-prefill-title { margin: 0 0 10px; font-size: 15px; }
.af-prefill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.af-prefill-row .af-input { flex: 1 1 220px; margin: 0; }
.af-prefill-row .af-btn { flex: 0 0 auto; }
.af-prefill-status { margin: 8px 0 0; font-size: 14px; color: var(--af-error); }
.af-prefill-status:empty { display: none; }
.af-prefill-status.af-prefill-ok { color: var(--af-strong); }

/* My Kitten records on the portal */
.af-records h4 { margin: 0 0 10px; font-size: 20px; }
.af-records h5 { margin: 16px 0 6px; font-size: 15px; }
.af-records-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: 10px; overflow: hidden; }
.af-records-table th, .af-records-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--af-border); vertical-align: top; }
.af-records-table th { color: var(--af-muted); font-weight: 500; background: #f7fafd; }
.af-records-due { color: var(--af-error); font-weight: 600; }
.af-records-docs { display: flex; flex-wrap: wrap; gap: 8px; }

/* Theme (Elementor kit) input borders don't belong inside the round quantity control. */
.af-form .af-sub .af-qty input.af-sub-qty:focus { outline: 2px solid var(--af-accent); outline-offset: -2px; }

/* The theme (Elementor kit) gives every input a 2px black border; form boxes keep the soft Abrielle border, like the dropdowns. */
body .af-form .af-field input.af-input, body .af-form .af-field textarea.af-input, body .af-form .af-prefill-row input.af-input { border: 1.5px solid var(--af-border); border-radius: 12px; }
body .af-form .af-field input.af-input:focus, body .af-form .af-field textarea.af-input:focus, body .af-form .af-prefill-row input.af-input:focus { border-color: var(--af-strong); }
/* Shop basket inside the order form */
.af-cart { outline: none; }
.af-cart-empty { margin: 0; padding: 16px; border-radius: 14px; background: var(--af-soft); color: var(--af-muted); }
.af-cart-lines { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.af-cart-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--af-border); border-radius: 14px; }
.af-cart-name small { display: block; color: var(--af-muted); font-size: 13px; }
.af-cart-qty { min-width: 28px; text-align: center; font-weight: 600; }
.af-cart-price { min-width: 70px; text-align: right; font-weight: 600; }
@media (max-width: 520px) {
	.af-cart-lines li { grid-template-columns: 1fr auto; }
	.af-cart-price { grid-column: 2; }
}

/* Hotel form: chosen dates are full */
.af-avail-note { grid-column: 1 / -1; margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff1d6; color: #6b4600; font-size: 14px; }
.af-avail-note[hidden] { display: none; }
.af-waitlist-place strong { font-size: 18px; }

.af-pay-box { border-left: 4px solid #3d6f99; }

/* Courier delivery options in the shop basket (shipping.js) */
.af-ship { display: grid; gap: 8px; }
.af-ship-msg { margin: 0; color: var(--af-muted, #6b6f73); font-size: 14px; }
.af-ship-rate span small { display: block; color: var(--af-muted, #6b6f73); font-size: 13px; }
