/* GK PCP Form — scoped, avoids Bootstrap .progress-bar conflict */
.gk-pcp-form {
	--gk-navy: #213449;
	--gk-gold: #EAA638;
	--gk-light: #ebf0f6;
	--gk-border: #d5dde6;
	--gk-text: #213449;
	--gk-muted: #6b7a8c;

	font-family: inherit;
	background: #fff;
	border: 1px solid var(--gk-border);
	border-radius: 8px;
	max-width: 100%;
	width: 100%;
	padding: 28px 24px;
	margin: 0;
	box-sizing: border-box;
	color: var(--gk-text);
}

.gk-pcp-form *,
.gk-pcp-form *::before,
.gk-pcp-form *::after {
	box-sizing: border-box;
}

.gk-pcp-header {
	margin-bottom: 28px;
}

.gk-pcp-title {
	color: var(--gk-navy);
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 28px;
	text-align: center;
	line-height: 1.2;
}

/* Horizontal steps — NOT Bootstrap progress-bar */
.gk-pcp-steps {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start;
	justify-content: space-between;
	position: relative;
	width: 100%;
	background: transparent !important;
	height: auto !important;
	padding: 0 !important;
	margin: 0 0 8px;
	overflow: visible !important;
}

.gk-pcp-steps::before {
	content: '';
	position: absolute;
	top: 18px;
	left: 12%;
	right: 12%;
	height: 2px;
	background: var(--gk-border);
	z-index: 0;
}

.gk-pcp-step {
	display: flex !important;
	flex-direction: column !important;
	align-items: center;
	position: relative;
	z-index: 1;
	flex: 1;
	background: transparent !important;
	width: auto !important;
	height: auto !important;
	padding: 0 !important;
	color: inherit !important;
}

.gk-pcp-step-num {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--gk-border);
	color: var(--gk-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 8px;
	transition: all 0.25s ease;
}

.gk-pcp-step.active .gk-pcp-step-num {
	background: var(--gk-navy);
	border-color: var(--gk-navy);
	color: #fff;
}

.gk-pcp-step.completed .gk-pcp-step-num {
	background: var(--gk-gold);
	border-color: var(--gk-gold);
	color: #fff;
}

.gk-pcp-step-label {
	font-size: 13px;
	color: var(--gk-muted);
	text-align: center;
	font-weight: 500;
	line-height: 1.3;
}

.gk-pcp-step.active .gk-pcp-step-label {
	color: var(--gk-navy);
	font-weight: 600;
}

.gk-pcp-step.completed .gk-pcp-step-label {
	color: var(--gk-navy);
}

/* Form steps */
.gk-pcp-form .form-step {
	display: none;
}

.gk-pcp-form .form-step.active {
	display: block;
}

.gk-pcp-section-title {
	color: var(--gk-navy);
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--gk-gold);
}

.gk-pcp-form .form-group {
	margin-bottom: 20px;
}

.gk-pcp-form .form-label {
	display: block;
	color: var(--gk-navy);
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 14px;
}

.gk-pcp-form .form-label.required::after {
	content: ' *';
	color: #c0392b;
}

/* Radios / checkboxes */
.gk-pcp-form .radio-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gk-pcp-form .radio-label,
.gk-pcp-form .checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	padding: 12px 14px;
	border: 1px solid var(--gk-border);
	border-radius: 6px;
	background: #fff;
	transition: border-color 0.2s, background 0.2s;
	margin: 0;
	font-weight: 400;
	color: var(--gk-text);
}

.gk-pcp-form .radio-label:hover,
.gk-pcp-form .checkbox-label:hover {
	border-color: var(--gk-navy);
	background: var(--gk-light);
}

.gk-pcp-form .radio-label input,
.gk-pcp-form .checkbox-label input {
	margin: 2px 0 0;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: var(--gk-navy);
	cursor: pointer;
}

.gk-pcp-form .radio-label:has(input:checked),
.gk-pcp-form .checkbox-label:has(input:checked) {
	border-color: var(--gk-navy);
	background: var(--gk-light);
}

.gk-pcp-form .radio-label:has(input:checked) span,
.gk-pcp-form .checkbox-label:has(input:checked) span {
	color: var(--gk-navy);
	font-weight: 600;
}

/* Inputs */
.gk-pcp-form input[type="text"],
.gk-pcp-form input[type="email"],
.gk-pcp-form input[type="tel"],
.gk-pcp-form input[type="date"],
.gk-pcp-form .datepicker,
.gk-pcp-form select,
.gk-pcp-form .form-select {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--gk-border);
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	color: var(--gk-text);
	line-height: 1.4;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.gk-pcp-form select,
.gk-pcp-form .form-select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23213449' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
}

.gk-pcp-form input:focus,
.gk-pcp-form select:focus,
.gk-pcp-form .form-select:focus,
.gk-pcp-form .datepicker:focus {
	outline: none;
	border-color: var(--gk-navy);
	box-shadow: 0 0 0 3px rgba(33, 52, 73, 0.12);
}

.gk-pcp-form input::placeholder {
	color: #9aa8b8;
}

.gk-pcp-form .name-fields,
.gk-pcp-form .form-row,
.gk-pcp-form .address-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.gk-pcp-form .form-col {
	display: flex;
	flex-direction: column;
}

.gk-pcp-form .address-fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gk-pcp-form .postcode-input-wrapper {
	display: flex;
	gap: 10px;
}

.gk-pcp-form .postcode-input {
	flex: 1;
}

.gk-pcp-form .btn-postcode-search {
	padding: 11px 20px;
	background: var(--gk-navy);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
}

.gk-pcp-form .btn-postcode-search:hover {
	background: #2b425d;
}

.gk-pcp-form .btn-postcode-search:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.gk-pcp-form .btn-manual-link {
	background: none;
	border: none;
	color: var(--gk-navy);
	text-decoration: underline;
	cursor: pointer;
	font-size: 13px;
	padding: 4px 0;
	font-family: inherit;
}

.gk-pcp-form .btn-manual-link:hover {
	color: var(--gk-gold);
}

.gk-pcp-form .manual-address-toggle {
	text-align: center;
}

.gk-pcp-form .consent-description {
	margin-top: 14px;
	padding: 14px 16px;
	background: var(--gk-light);
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--gk-muted);
}

.gk-pcp-form .consent-description p {
	margin: 0;
}

.gk-pcp-form .consent-description a {
	color: var(--gk-navy);
	font-weight: 600;
	text-decoration: underline;
}

/* Navigation */
.gk-pcp-form .form-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--gk-border);
	gap: 12px;
}

.gk-pcp-form .btn {
	padding: 12px 28px;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s, transform 0.15s;
	height: auto;
	line-height: 1.2;
}

.gk-pcp-form .btn-back {
	background: #6b7a8c;
	color: #fff;
}

.gk-pcp-form .btn-back:hover {
	background: #556373;
}

.gk-pcp-form .btn-next,
.gk-pcp-form .btn-submit {
	background: var(--gk-gold);
	color: var(--gk-navy);
	margin-left: auto;
}

.gk-pcp-form .btn-next:hover,
.gk-pcp-form .btn-submit:hover {
	background: #d4942a;
}

.gk-pcp-form .btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.gk-pcp-form .error-message {
	color: #c0392b;
	font-size: 12px;
	margin-top: 6px;
	display: block;
}

.gk-pcp-form #previous-claim-message {
	border-left: 4px solid #c0392b;
	background: #fdecea;
	padding: 12px 14px;
	border-radius: 6px;
	color: #c0392b;
	font-size: 13px;
}

.gk-pcp-form #previous-claim-message p {
	margin: 0;
}

.gk-pcp-form .form-group.previous-claim-error .radio-label:has(input[value="Yes"]:checked) {
	border-color: #c0392b;
	background: #fdecea;
}

.gk-pcp-form .form-group.previous-claim-error .radio-label:has(input[value="Yes"]:checked) span {
	color: #c0392b;
}

.gk-pcp-form input.error,
.gk-pcp-form select.error {
	border-color: #c0392b;
}

.gk-pcp-form .btn.loading {
	position: relative;
	color: transparent !important;
}

.gk-pcp-form .btn.loading::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	top: 50%;
	left: 50%;
	margin: -8px 0 0 -8px;
	border: 2px solid #213449;
	border-radius: 50%;
	border-top-color: transparent;
	animation: gkPcpSpin 0.6s linear infinite;
}

@keyframes gkPcpSpin {
	to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
	.gk-pcp-form {
		padding: 24px 18px;
		margin: 16px auto;
	}

	.gk-pcp-title {
		font-size: 22px;
	}

	.gk-pcp-form .name-fields,
	.gk-pcp-form .form-row,
	.gk-pcp-form .address-row {
		grid-template-columns: 1fr;
	}

	.gk-pcp-steps::before {
		left: 16%;
		right: 16%;
	}

	.gk-pcp-step-label {
		font-size: 11px;
	}

	.gk-pcp-form .postcode-input-wrapper {
		flex-direction: column;
	}
}

/* Contact form */
.gk-contact-form {
	--gk-navy: #213449;
	--gk-gold: #EAA638;
	--gk-light: #ebf0f6;
	--gk-border: #d5dde6;
	--gk-text: #213449;
	--gk-muted: #6b7a8c;
	width: 100%;
	background: #fff;
	border: 1px solid var(--gk-border);
	border-radius: 10px;
	padding: 28px 24px;
	box-shadow: 0 10px 30px rgba(33, 52, 73, 0.08);
}

.gk-contact-form * { box-sizing: border-box; }

.gk-contact-header {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 2px solid var(--gk-gold);
}

.gk-contact-subtitle {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gk-gold);
	margin-bottom: 8px;
}

.gk-contact-title {
	margin: 0 0 8px;
	color: var(--gk-navy);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
}

.gk-contact-intro {
	margin: 0;
	color: var(--gk-muted);
	font-size: 14px;
	line-height: 1.55;
}

.gk-contact-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

.gk-contact-field { margin-bottom: 14px; }

.gk-contact-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--gk-text);
	font-size: 14px;
}

.gk-contact-form .req { color: #c0392b; }

.gk-contact-form input,
.gk-contact-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--gk-border);
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	color: var(--gk-text);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.gk-contact-form textarea {
	min-height: 70px;
	height: 70px;
	resize: vertical;
}

.gk-contact-form input:focus,
.gk-contact-form textarea:focus {
	outline: none;
	border-color: var(--gk-navy);
	box-shadow: 0 0 0 3px rgba(33, 52, 73, 0.12);
}

.gk-contact-form input.error,
.gk-contact-form textarea.error {
	border-color: #c0392b;
}

.gk-contact-field-error {
	display: block;
	color: #c0392b;
	font-size: 12px;
	margin-top: 5px;
}

.gk-contact-actions {
	margin-top: 6px;
}

.gk-contact-submit {
	width: 100%;
	padding: 13px 28px;
	background: var(--gk-gold);
	color: var(--gk-navy);
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s;
}

.gk-contact-submit:hover { background: #d4942a; }
.gk-contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.gk-contact-success {
	margin-top: 14px;
	padding: 12px 14px;
	background: #e8f8ef;
	color: #1e7a45;
	border-radius: 6px;
	font-size: 14px;
}

.gk-contact-error {
	margin-top: 14px;
	padding: 12px 14px;
	background: #fdecea;
	color: #c0392b;
	border-radius: 6px;
	font-size: 14px;
}

@media (max-width: 768px) {
	.gk-contact-form {
		padding: 22px 18px;
	}

	.gk-contact-title {
		font-size: 22px;
	}

	.gk-contact-row { grid-template-columns: 1fr; }
}
