/**
 * Pasajcap contact / booking-enquiry form.
 * Inherits the theme's palette tokens (--paper, --ink, --accent, …) so it
 * adapts to whichever seasonal palette is active.
 */

/* Section wrapper on the contact page template. */
.pjc-contact-form-sec {
	padding: clamp(70px, 9vw, 130px) 0 clamp(90px, 12vw, 150px);
	background: var(--paper);
}

.pjc-contact-form-sec .eyebrow {
	justify-content: center;
	display: flex;
	margin-bottom: 20px;
}

.pjc-contact-form-title {
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(34px, 5.5vw, 68px);
	line-height: 1;
	letter-spacing: -0.02em;
	text-align: center;
	margin: 0 auto clamp(38px, 5vw, 60px);
	max-width: 16ch;
	color: var(--ink);
}

.pjc-contact-form-title em {
	font-style: italic;
	color: var(--accent);
}

.pjc-form {
	--pjc-radius: 12px;
	max-width: 860px;
	margin: 0 auto;
}

.pjc-form-intro {
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink-soft);
	max-width: 60ch;
	margin: 0 0 34px;
	font-weight: 300;
}

.pjc-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 24px;
}

.pjc-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.pjc-field--full {
	grid-column: 1 / -1;
}

.pjc-label {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.pjc-req {
	color: var(--accent);
	margin-left: 2px;
}

/* Controls */
.pjc-field input,
.pjc-field select,
.pjc-field textarea {
	width: 100%;
	font-family: var(--sans);
	font-size: 16px;
	color: var(--ink);
	background: color-mix(in oklab, var(--paper) 60%, #fff 40%);
	border: 1px solid var(--line);
	border-radius: var(--pjc-radius);
	padding: 13px 15px;
	line-height: 1.4;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.pjc-field textarea {
	resize: vertical;
	min-height: 130px;
}

.pjc-field select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23877f6e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	padding-right: 40px;
	cursor: pointer;
}

.pjc-field input::placeholder,
.pjc-field textarea::placeholder {
	color: var(--muted);
	opacity: 0.75;
}

.pjc-field input:focus,
.pjc-field select:focus,
.pjc-field textarea:focus {
	outline: none;
	border-color: var(--accent);
	background: color-mix(in oklab, var(--paper) 30%, #fff 70%);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
}

/* Date inputs — keep the native picker legible on the paper background. */
.pjc-field input[type="date"] {
	min-height: 50px;
}

.pjc-help {
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
	font-weight: 300;
}

/* Radios / checkbox */
.pjc-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	padding-top: 4px;
}

.pjc-radio,
.pjc-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	color: var(--ink);
	cursor: pointer;
}

.pjc-radio input,
.pjc-check input {
	width: auto;
	accent-color: var(--accent);
	margin: 0;
}

/* Error state */
.pjc-field.has-error input,
.pjc-field.has-error select,
.pjc-field.has-error textarea {
	border-color: #c0392b;
	box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.14);
}

.pjc-field-error {
	font-size: 13px;
	color: #c0392b;
	font-weight: 500;
}

/* Honeypot — visually hidden but reachable by bots. */
.pjc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Turnstile */
.pjc-turnstile {
	margin-top: 28px;
	min-height: 65px;
}

/* Footer / submit */
.pjc-form-foot {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
	margin-top: 30px;
}

.pjc-form-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--paper);
	background: var(--ink);
	border: 1px solid var(--ink);
	border-radius: 100px;
	padding: 16px 34px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.pjc-form-submit:hover {
	background: var(--accent);
	border-color: var(--accent);
	transform: translateY(-1px);
}

.pjc-form-submit:disabled {
	opacity: 0.65;
	cursor: default;
	transform: none;
}

.pjc-form-spin {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid color-mix(in oklab, var(--paper) 40%, transparent);
	border-top-color: var(--paper);
	border-radius: 50%;
	animation: pjc-spin 0.7s linear infinite;
}

.pjc-form-submit.is-busy .pjc-form-spin {
	display: inline-block;
}

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

.pjc-form-note {
	font-size: 13px;
	color: var(--muted);
	margin: 0;
}

/* Status line */
.pjc-form-status {
	margin-top: 18px;
	font-size: 15px;
	line-height: 1.6;
}

.pjc-form-status.is-error {
	color: #c0392b;
}

.pjc-form-status.is-info {
	color: var(--ink-soft);
}

/* Success state (replaces the form) */
.pjc-form-success {
	max-width: 620px;
	margin: 0 auto;
	text-align: center;
	padding: 48px 30px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: color-mix(in oklab, var(--paper) 55%, #fff 45%);
	animation: pjc-fade 0.4s ease;
}

.pjc-form-success p {
	font-size: 18px;
	line-height: 1.7;
	color: var(--ink-soft);
	font-weight: 300;
	margin: 0;
}

.pjc-form-success-mark {
	display: block;
	width: 54px;
	height: 54px;
	margin: 0 auto 22px;
	border-radius: 50%;
	background: var(--accent-2);
	position: relative;
}

.pjc-form-success-mark::after {
	content: "";
	position: absolute;
	left: 19px;
	top: 15px;
	width: 12px;
	height: 22px;
	border: solid #fff;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

@keyframes pjc-fade {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
	.pjc-form-grid {
		grid-template-columns: 1fr;
	}
	.pjc-field--half {
		grid-column: 1 / -1;
	}
}
