/**
 * Paragon Taxis contact form.
 *
 * Colours are taken from the live YOOtheme stylesheet so the form reads as part
 * of the site rather than a bolted-on plugin. Everything is namespaced under
 * .pgc, and no bare element selectors are used, so nothing here can leak into
 * the theme or the booking widget.
 */

.pgc {
	--pgc-navy: #1a3a5c;
	--pgc-blue: #1991ee;
	--pgc-blue-dark: #1865e0;
	--pgc-mist: #f4f7fb;
	--pgc-line: #dde5ee;
	--pgc-error: #b32d2e;

	max-width: 720px;
	margin: 0 auto;
	color: #22303f;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.pgc__title {
	margin: 0 0 6px;
	color: var(--pgc-navy);
	font-size: 1.6rem;
	line-height: 1.2;
}

.pgc__intro {
	margin: 0 0 22px;
	color: #58697d;
}

/* ---------- fields ---------- */

.pgc__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 18px;
}

.pgc__row > .pgc__field {
	flex: 1 1 220px;
}

.pgc__field {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	min-width: 0; /* lets a fieldset shrink inside a flex row */
}

.pgc__field > label,
.pgc__field > legend {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	color: var(--pgc-navy);
	font-weight: 700;
	font-size: 0.95rem;
}

.pgc__req { color: var(--pgc-blue); }

.pgc__hint {
	display: block;
	margin-top: 4px;
	color: #7a8899;
	font-weight: 400;
	font-size: 0.85rem;
}

.pgc__field input[type="text"],
.pgc__field input[type="tel"],
.pgc__field input[type="email"],
.pgc__field input[type="date"],
.pgc__field input[type="number"],
.pgc__field textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--pgc-line);
	border-radius: 10px;
	background: #fff;
	color: #22303f;
	font: inherit;
	transition: border-color .15s, box-shadow .15s;
}

.pgc__field input:focus,
.pgc__field textarea:focus {
	outline: 0;
	border-color: var(--pgc-blue);
	box-shadow: 0 0 0 3px rgba(25, 145, 238, .18);
}

.pgc__field textarea { resize: vertical; }

.pgc__field .is-error { border-color: var(--pgc-error); }

.pgc__error:not(:empty) {
	display: block;
	margin-top: 5px;
	color: var(--pgc-error);
	font-size: 0.85rem;
	font-weight: 600;
}

/* ---------- booking deflection ---------- */

.pgc__deflect {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin: 0 0 24px;
	padding: 16px 18px;
	border: 1px solid rgba(25, 145, 238, .35);
	border-left: 4px solid var(--pgc-blue);
	border-radius: 10px;
	background: rgba(25, 145, 238, .06);
}

.pgc__deflect > div { flex: 1 1 260px; }

.pgc__deflect strong {
	display: block;
	margin-bottom: 3px;
	color: var(--pgc-navy);
}

.pgc__deflect span {
	color: #58697d;
	font-size: 0.92rem;
}

.pgc__deflect-btn {
	flex: 0 0 auto;
	padding: 11px 20px;
	border-radius: 10px;
	background: var(--pgc-navy);
	color: #fff !important;
	font-weight: 800;
	font-size: 0.95rem;
	text-decoration: none !important;
	white-space: nowrap;
}

.pgc__deflect-btn:hover { background: #12293f; }

/* ---------- checkboxes and pills ---------- */

.pgc__checks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 8px 16px;
}

.pgc__check,
.pgc__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 0.95rem;
}

.pgc__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pgc__pill {
	padding: 8px 14px;
	border: 1px solid var(--pgc-line);
	border-radius: 999px;
	background: #fff;
	transition: border-color .15s, background .15s;
}

.pgc__pill:has(input:checked) {
	border-color: var(--pgc-blue);
	background: rgba(25, 145, 238, .08);
}

/* ---------- honeypot: off-screen, never display:none ---------- */

.pgc__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- submit ---------- */

.pgc__note {
	margin: 0 0 18px;
	color: #7a8899;
	font-size: 0.85rem;
}

.pgc__submit {
	display: inline-block;
	padding: 14px 30px;
	border: 0;
	border-radius: 10px;
	background-image: linear-gradient(51deg, var(--pgc-blue-dark) 50%, #199ef2 80%, #16b6f5 100%);
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 5px 15px rgba(11, 89, 150, .3);
	transition: transform .15s, box-shadow .15s;
}

.pgc__submit:hover { transform: translateY(-1px); }

.pgc__submit[disabled] {
	opacity: .65;
	cursor: progress;
	transform: none;
}

.pgc__submit.is-busy::after {
	content: "";
	display: inline-block;
	width: 13px;
	height: 13px;
	margin-left: 10px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	vertical-align: -2px;
	animation: pgc-spin .7s linear infinite;
}

@keyframes pgc-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	.pgc__submit,
	.pgc__submit.is-busy::after { transition: none; animation: none; }
}

/* ---------- alerts and success ---------- */

.pgc__alert {
	margin: 0 0 18px;
	padding: 12px 16px;
	border-left: 4px solid var(--pgc-error);
	border-radius: 6px;
	background: #fdf1f1;
	color: #8a2225;
	font-weight: 600;
}

.pgc__success {
	padding: 26px 28px;
	border: 1px solid var(--pgc-line);
	border-radius: 14px;
	background: var(--pgc-mist);
}

.pgc__success h3 {
	margin: 0 0 8px;
	color: var(--pgc-navy);
	font-size: 1.35rem;
}

.pgc__success p { margin: 0 0 10px; }

.pgc__urgent {
	margin: 14px 0 0 !important;
	padding-top: 14px;
	border-top: 1px solid var(--pgc-line);
	color: #58697d;
	font-size: 0.95rem;
}

.pgc__success a { color: var(--pgc-blue); font-weight: 700; }

/* ---------- modal ---------- */

.pgc-modal {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 24px 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.pgc-modal[hidden] { display: none; }

.pgc-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(16, 32, 52, .6);
}

.pgc-modal__panel {
	position: relative;
	width: 100%;
	max-width: 640px;
	margin: auto;
	padding: 30px 30px 34px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(10, 26, 46, .35);
}

.pgc-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #7a8899;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.pgc-modal__close:hover { background: var(--pgc-mist); color: var(--pgc-navy); }

body.pgc-locked { overflow: hidden; }

@media (max-width: 640px) {
	.pgc-modal { padding: 12px; }
	.pgc-modal__panel { padding: 26px 20px 28px; }
	.pgc__title { font-size: 1.35rem; }
}
