/*!
 * Guest Post Contact Form
 * Copyright (C) 2026 Techno Hiker Pvt Ltd (https://technohiker.com)
 * License: GPL-2.0-or-later
 */

.gpcf-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: 760px;
	margin: 24px auto;
	padding: 28px;
	background: #ffffff;
	color: #1f2937;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.gpcf-wrap *,
.gpcf-wrap *::before,
.gpcf-wrap *::after {
	box-sizing: border-box;
}

.gpcf-wrap .gpcf-form {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.gpcf-wrap .gpcf-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 20px;
}

@media (min-width: 640px) {
	.gpcf-wrap .gpcf-row {
		grid-template-columns: 1fr 1fr;
	}
}

.gpcf-wrap .gpcf-field {
	margin: 0 0 18px;
	min-width: 0;
}

.gpcf-wrap .gpcf-label {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	color: #1f2937;
	line-height: 1.4;
}

.gpcf-wrap .gpcf-req {
	color: #b91c1c;
}

.gpcf-wrap .gpcf-opt {
	font-weight: 400;
	color: #6b7280;
	font-size: 14px;
}

.gpcf-wrap .gpcf-input {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: #111827;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gpcf-wrap .gpcf-textarea {
	min-height: 150px;
	resize: vertical;
}

.gpcf-wrap .gpcf-input::placeholder {
	color: #9ca3af;
	opacity: 1;
}

.gpcf-wrap .gpcf-input:hover {
	border-color: #9ca3af;
}

.gpcf-wrap .gpcf-input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.gpcf-wrap .gpcf-input[aria-invalid="true"] {
	border-color: #b91c1c;
}

.gpcf-wrap .gpcf-input[aria-invalid="true"]:focus {
	box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

.gpcf-wrap .gpcf-error {
	display: block;
	min-height: 0;
	margin-top: 6px;
	font-size: 14px;
	color: #b91c1c;
}

.gpcf-wrap .gpcf-error:empty {
	display: none;
}

.gpcf-wrap .gpcf-status {
	margin: 0 0 16px;
	font-size: 15px;
}

.gpcf-wrap .gpcf-status:empty {
	display: none;
}

.gpcf-wrap .gpcf-status--success {
	padding: 12px 14px;
	color: #065f46;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 8px;
}

.gpcf-wrap .gpcf-status--error {
	padding: 12px 14px;
	color: #991b1b;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
}

.gpcf-wrap .gpcf-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: auto;
	min-width: 170px;
	min-height: 48px;
	margin: 0;
	padding: 12px 28px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	color: #ffffff;
	background: #1d4ed8;
	border: 1px solid #1d4ed8;
	border-radius: 8px;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.gpcf-wrap .gpcf-submit:hover {
	color: #ffffff;
	background: #1e40af;
	border-color: #1e40af;
}

.gpcf-wrap .gpcf-submit:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.45);
	outline-offset: 2px;
}

.gpcf-wrap .gpcf-submit[disabled] {
	cursor: not-allowed;
	opacity: 0.75;
}

.gpcf-wrap .gpcf-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: gpcf-spin 0.8s linear infinite;
}

.gpcf-wrap .gpcf-form.is-loading .gpcf-spinner {
	display: inline-block;
}

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

@media (prefers-reduced-motion: reduce) {
	.gpcf-wrap .gpcf-spinner {
		animation-duration: 2.4s;
	}
	.gpcf-wrap .gpcf-input,
	.gpcf-wrap .gpcf-submit {
		transition: none;
	}
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.gpcf-wrap .gpcf-hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (max-width: 480px) {
	.gpcf-wrap {
		padding: 20px 16px;
		margin: 16px auto;
		border-radius: 10px;
	}
	.gpcf-wrap .gpcf-submit {
		width: 100%;
	}
}

/* Form added automatically when the theme's template does not show page content. */
.gpcf-auto-insert {
	clear: both;
	box-sizing: border-box;
	width: 100%;
	padding: 8px 16px 32px;
}

/* ===== Full contact page (replace mode) ===== */
.gpcf-page {
	--gpcf-accent: #1d4ed8;
	--gpcf-accent-soft: #eef2ff;
	--gpcf-ink: #0f172a;
	--gpcf-text: #475569;
	--gpcf-line: #e2e8f0;
	box-sizing: border-box;
	width: calc(100% - 32px);
	max-width: 1120px;
	margin: 40px auto;
	padding: 0;
	background: #ffffff;
	color: var(--gpcf-ink);
	border: 1px solid var(--gpcf-line);
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	font-size: 16px;
	line-height: 1.6;
	text-align: left;
}

.gpcf-page *,
.gpcf-page *::before,
.gpcf-page *::after {
	box-sizing: border-box;
}

.gpcf-page .gpcf-page-inner {
	margin: 0;
	padding: 0;
}

.gpcf-page h1,
.gpcf-page h2,
.gpcf-page p,
.gpcf-page ul,
.gpcf-page li {
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
	border: 0;
}

/* Header */
.gpcf-page .gpcf-ph {
	padding: 52px 52px 36px;
	background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
	border-bottom: 1px solid var(--gpcf-line);
}

.gpcf-page .gpcf-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gpcf-accent);
}

.gpcf-page .gpcf-eyebrow::before {
	content: "";
	width: 28px;
	height: 3px;
	border-radius: 3px;
	background: var(--gpcf-accent);
}

.gpcf-page .gpcf-page-title {
	margin: 0 0 16px;
	padding: 0;
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--gpcf-ink);
}

.gpcf-page .gpcf-page-intro {
	max-width: 780px;
}

.gpcf-page .gpcf-page-intro p {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.65;
	color: var(--gpcf-text);
}

/* Topic cards */
.gpcf-page .gpcf-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 32px 52px 8px;
	list-style: none;
}

.gpcf-page .gpcf-card {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 0;
	padding: 18px;
	background: #ffffff;
	border: 1px solid var(--gpcf-line);
	border-radius: 12px;
	list-style: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gpcf-page .gpcf-card::before,
.gpcf-page .gpcf-card::marker {
	content: none;
}

.gpcf-page .gpcf-card:hover {
	border-color: #c7d2fe;
	box-shadow: 0 6px 18px rgba(29, 78, 216, 0.08);
}

.gpcf-page .gpcf-card-ic {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: var(--gpcf-accent);
	background: var(--gpcf-accent-soft);
	border-radius: 10px;
}

.gpcf-page .gpcf-ic {
	display: block;
	flex: none;
}

.gpcf-page .gpcf-card-title {
	margin: 2px 0 4px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--gpcf-ink);
}

.gpcf-page .gpcf-card-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--gpcf-text);
}

/* Form + side panel */
.gpcf-page .gpcf-pgrid {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	padding: 28px 52px 40px;
}

.gpcf-page .gpcf-pform {
	padding: 30px;
	background: #ffffff;
	border: 1px solid var(--gpcf-line);
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.gpcf-page .gpcf-h2 {
	margin: 0 0 18px;
	padding: 0;
	font-size: 22px;
	font-weight: 750;
	line-height: 1.25;
	color: var(--gpcf-ink);
}

.gpcf-page .gpcf-h3 {
	margin: 0 0 12px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--gpcf-ink);
}

.gpcf-page .gpcf-wrap {
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.gpcf-page .gpcf-pside {
	display: grid;
	gap: 16px;
}

.gpcf-page .gpcf-note {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 16px 18px;
	color: #1e3a8a;
	background: var(--gpcf-accent-soft);
	border: 1px solid #c7d2fe;
	border-radius: 12px;
}

.gpcf-page .gpcf-note .gpcf-ic {
	margin-top: 2px;
	color: var(--gpcf-accent);
}

.gpcf-page .gpcf-note p {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	color: #1e3a8a;
}

.gpcf-page .gpcf-tips {
	padding: 20px 20px 8px;
	background: #f8fafc;
	border: 1px solid var(--gpcf-line);
	border-radius: 12px;
}

.gpcf-page .gpcf-tips ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gpcf-page .gpcf-tips li {
	position: relative;
	margin: 0 0 12px;
	padding: 0 0 0 26px;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--gpcf-text);
	list-style: none;
}

.gpcf-page .gpcf-tips li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--gpcf-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Questions */
.gpcf-page .gpcf-faq {
	padding: 8px 52px 48px;
}

.gpcf-page .gpcf-qa {
	margin: 0;
	border-top: 1px solid var(--gpcf-line);
}

.gpcf-page .gpcf-qa:last-child {
	border-bottom: 1px solid var(--gpcf-line);
}

.gpcf-page .gpcf-qa summary {
	position: relative;
	display: block;
	padding: 18px 44px 18px 0;
	font-size: 16.5px;
	font-weight: 650;
	line-height: 1.4;
	color: var(--gpcf-ink);
	list-style: none;
	cursor: pointer;
}

.gpcf-page .gpcf-qa summary::-webkit-details-marker {
	display: none;
}

.gpcf-page .gpcf-qa summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	font-size: 20px;
	font-weight: 500;
	line-height: 26px;
	text-align: center;
	color: var(--gpcf-accent);
	background: var(--gpcf-accent-soft);
	border-radius: 50%;
}

.gpcf-page .gpcf-qa[open] summary::after {
	content: "\2212";
}

.gpcf-page .gpcf-qa summary:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.35);
	outline-offset: 2px;
	border-radius: 6px;
}

.gpcf-page .gpcf-qa p {
	margin: 0 0 18px;
	padding-right: 44px;
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--gpcf-text);
}

@media (max-width: 860px) {
	.gpcf-page .gpcf-pgrid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.gpcf-page {
		width: calc(100% - 24px);
		margin: 16px auto;
		border-radius: 14px;
	}
	.gpcf-page .gpcf-ph {
		padding: 30px 20px 24px;
	}
	.gpcf-page .gpcf-page-intro p {
		font-size: 16.5px;
	}
	.gpcf-page .gpcf-cards {
		grid-template-columns: 1fr;
		padding: 22px 20px 4px;
	}
	.gpcf-page .gpcf-pgrid {
		padding: 20px 20px 28px;
		gap: 18px;
	}
	.gpcf-page .gpcf-pform {
		padding: 20px 16px;
	}
	.gpcf-page .gpcf-faq {
		padding: 4px 20px 32px;
	}
	.gpcf-page .gpcf-qa p {
		padding-right: 0;
	}
}
