/**
 * PRIME Philippines — Expertise Form Widget
 * "Get in Touch" CTA form for Our Expertise + Properties subpages.
 * 65/35 split: form left, advisor strip right (stacks on mobile).
 */

/* -- Section wrapper (DARK institutional CTA moment) ----------------- */
.prime-expertise-form-section {
	position: relative;
	background:
		radial-gradient(ellipse 60% 70% at 100% 0%, rgba(201, 171, 76, 0.16) 0%, rgba(201, 171, 76, 0) 55%),
		radial-gradient(ellipse 50% 60% at 0% 100%, rgba(201, 171, 76, 0.08) 0%, rgba(201, 171, 76, 0) 55%),
		linear-gradient(135deg, #002a55 0%, #00224a 40%, #0c1b38 75%, var(--prime-deep-ink, #0C0C0E) 100%);
	color: var(--prime-warm-white, #FFFCFB);
	padding: clamp(56px, 5vw, 80px) clamp(20px, 5vw, 80px);
	/* `overflow: clip` contains the decorative watermarks WITHOUT creating
	   a scroll container — required for the advisor strip's position:sticky
	   to work. `overflow: hidden` would silently break sticky. */
	overflow: clip;
	box-shadow:
		inset 0 2px 0 rgba(201, 171, 76, 0.55),
		inset 0 -2px 0 rgba(201, 171, 76, 0.35);
}
.prime-expertise-form-section__inner {
	max-width: 1280px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

/* Decorative layers */
.prime-expertise-form-section__pattern {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(201, 171, 76, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(201, 171, 76, 0.07) 1px, transparent 1px);
	background-size: 72px 72px;
	mix-blend-mode: screen;
	opacity: 0.65;
	z-index: 1;
}
.prime-expertise-form-section__watermark {
	position: absolute;
	background-image: url('../images/logo-mark.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	pointer-events: none;
	user-select: none;
	z-index: 1;
}
.prime-expertise-form-section__watermark--center {
	top: 14%;
	right: 10%;
	transform: translateY(-50%);
	width: 300px;
	height: 230px;
	max-width: 20vw;
	opacity: 0.16;
}
@media (max-width: 900px) {
	.prime-expertise-form-section__watermark--center {
		top: 10%;
		width: 180px;
		height: 138px;
		max-width: 38vw;
		opacity: 0.10;
		right: 4%;
	}
}
.prime-expertise-form-section__corner {
	position: absolute;
	width: 44px;
	height: 44px;
	pointer-events: none;
	opacity: 0.95;
	z-index: 1;
}
.prime-expertise-form-section__corner--tl {
	top: 32px;
	left: clamp(20px, 4vw, 48px);
	border-top: 2px solid var(--prime-gold, #C9AB4C);
	border-left: 2px solid var(--prime-gold, #C9AB4C);
}
.prime-expertise-form-section__corner--br {
	bottom: 32px;
	right: clamp(20px, 4vw, 48px);
	border-bottom: 2px solid var(--prime-gold, #C9AB4C);
	border-right: 2px solid var(--prime-gold, #C9AB4C);
}

/* -- Header on dark — bright heading + gold accent word -------------- */
.prime-expertise-form-section__head {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-bottom: 56px;
	max-width: 760px;
	align-items: flex-start;
}
.prime-expertise-form-section__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	color: var(--prime-gold, #C9AB4C);
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.prime-expertise-form-section__eyebrow-rule {
	display: inline-block;
	width: 36px;
	height: 2px;
	background: var(--prime-gold, #C9AB4C);
}
.prime-expertise-form-section__eyebrow-mark {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-style: italic;
	font-size: 22px;
	line-height: 1;
	color: var(--prime-gold, #C9AB4C);
	letter-spacing: 0;
	margin-right: 4px;
}
.prime-expertise-form-section__heading,
section.prime-expertise-form-section h2.prime-expertise-form-section__heading {
	font-family: 'Cormorant Garamond', Georgia, serif !important;
	font-weight: 300 !important;
	font-style: normal !important;
	font-size: clamp(40px, 5vw, 68px) !important;
	line-height: 1.04 !important;
	letter-spacing: -0.025em !important;
	color: #FFFFFF !important;
	margin: 0 !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.prime-expertise-form-section__heading-accent {
	font-style: italic !important;
	font-weight: 300 !important;
	color: var(--prime-gold, #C9AB4C) !important;
}
.prime-expertise-form-section__heading-rule {
	display: inline-block;
	width: 80px;
	height: 2px;
	background: var(--prime-gold, #C9AB4C);
	opacity: 0.6;
	margin-top: 4px;
}
.prime-expertise-form-section__lede {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-style: italic;
	font-size: clamp(17px, 1.5vw, 21px);
	line-height: 1.55;
	color: rgba(255, 252, 251, 0.82);
	margin: 0;
	max-width: 600px;
}
/* Trust pledge — small gold-bordered chip */
.prime-expertise-form-section__pledge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
	padding: 8px 16px;
	border: 1px solid rgba(201, 171, 76, 0.45);
	background: rgba(201, 171, 76, 0.08);
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--prime-gold, #C9AB4C);
}
.prime-expertise-form-section__pledge-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--prime-gold, #C9AB4C);
	box-shadow: 0 0 0 4px rgba(201, 171, 76, 0.18);
	animation: prime-pledge-pulse 2s ease-in-out infinite;
}
@keyframes prime-pledge-pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(201, 171, 76, 0.18); }
	50%      { box-shadow: 0 0 0 7px rgba(201, 171, 76, 0.04); }
}

/* -- Grid (form / advisors) ------------------------------------------ */
.prime-expertise-form-section__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}
/* Single-column layout when the advisor strip is hidden via the
   widget's "Show Speak Directly With Our Experts strip" toggle. */
.prime-expertise-form-section__grid--no-advisors {
	grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 900px) {
	.prime-expertise-form-section__grid { grid-template-columns: 1fr; }
}

/* -- Form (crisp white card lifted off the dark background) --------- */
.prime-expertise-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	background: #FFFFFF;
	border: 1px solid rgba(201, 171, 76, 0.35);
	border-top: 4px solid var(--prime-gold, #C9AB4C);
	padding: clamp(28px, 3.2vw, 44px);
	box-shadow:
		0 30px 70px -28px rgba(0, 0, 0, 0.65),
		0 8px 18px -10px rgba(0, 0, 0, 0.35);
	position: relative;
}
.prime-expertise-form::before {
	content: "";
	position: absolute;
	inset: -1px;
	background: linear-gradient(135deg, rgba(201, 171, 76, 0.4) 0%, rgba(201, 171, 76, 0) 35%, rgba(201, 171, 76, 0) 65%, rgba(201, 171, 76, 0.2) 100%);
	z-index: -1;
	pointer-events: none;
}

/* honeypot — visually hidden, accessible */
.prime-expertise-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.prime-expertise-form__row {
	display: grid;
	gap: 16px;
}
.prime-expertise-form__row--two {
	grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
	.prime-expertise-form__row--two { grid-template-columns: 1fr; }
}

.prime-expertise-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.prime-expertise-form__label {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.05em;
	color: var(--prime-blue, #003366);
}
.prime-expertise-form__label em {
	font-style: normal;
	color: #C04444;
	margin-left: 2px;
}

.prime-expertise-form input[type="text"],
.prime-expertise-form input[type="email"],
.prime-expertise-form input[type="tel"],
.prime-expertise-form input[type="number"],
.prime-expertise-form input[type="date"],
.prime-expertise-form select,
.prime-expertise-form textarea {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: var(--prime-gray, #1B1D1E);
	background: #F5F8FC;
	border: 1px solid rgba(0, 51, 102, 0.18);
	border-radius: 0;
	padding: 12px 14px;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}
.prime-expertise-form select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23003366' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
	padding-right: 40px;
}
.prime-expertise-form textarea {
	resize: vertical;
	min-height: 96px;
}
.prime-expertise-form input::placeholder,
.prime-expertise-form textarea::placeholder {
	color: rgba(27, 29, 30, 0.40);
}
.prime-expertise-form input:focus,
.prime-expertise-form select:focus,
.prime-expertise-form textarea:focus {
	outline: none;
	background: #FFFFFF;
	border-color: var(--prime-gold, #C9AB4C);
	box-shadow: 0 0 0 3px rgba(201, 171, 76, 0.15);
}
.prime-expertise-form select[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}
.prime-expertise-form input:invalid:not(:placeholder-shown),
.prime-expertise-form select:invalid:not(:placeholder-shown) {
	/* leave native validation styling subtle; full red on submit only */
}

/* -- Feedback (success / error) -------------------------------------- */
.prime-expertise-form__feedback {
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	line-height: 1.55;
	padding: 14px 16px;
	border: 1px solid transparent;
	border-radius: 0;
	margin: 4px 0 0;
}
.prime-expertise-form__feedback.is-success {
	background: rgba(201, 171, 76, 0.10);
	border-color: rgba(201, 171, 76, 0.40);
	color: #6E5816;
}
.prime-expertise-form__feedback.is-error {
	background: #FBEEEE;
	border-color: #E3C3C3;
	color: #8B2323;
}
.prime-expertise-form__feedback.is-loading {
	background: rgba(0, 51, 102, 0.04);
	border-color: rgba(0, 51, 102, 0.10);
	color: rgba(0, 51, 102, 0.65);
}

/* -- Submit button --------------------------------------------------- */
.prime-expertise-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--prime-warm-white, #FFFCFB);
	background: var(--prime-blue, #003366);
	border: 1px solid var(--prime-blue, #003366);
	padding: 16px 28px;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 14px -10px rgba(0, 51, 102, 0.5);
	margin-top: 8px;
}
.prime-expertise-form__submit:hover,
.prime-expertise-form__submit:focus-visible {
	background: #002550;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px -10px rgba(0, 51, 102, 0.55);
}
.prime-expertise-form__submit.is-loading .prime-expertise-form__submit-label { opacity: 0.6; }
.prime-expertise-form__submit-spinner {
	display: none;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 252, 251, 0.4);
	border-top-color: var(--prime-warm-white, #FFFCFB);
	border-radius: 50%;
	animation: prime-spinner 0.8s linear infinite;
}
.prime-expertise-form__submit.is-loading .prime-expertise-form__submit-spinner { display: inline-block; }
@keyframes prime-spinner {
	to { transform: rotate(360deg); }
}

/* -- Compact advisor strip (white card lifted on dark bg) ----------- */
.prime-expertise-form-section__advisors {
	background: #FFFFFF;
	border: 1px solid rgba(201, 171, 76, 0.35);
	border-top: 3px solid var(--prime-gold, #C9AB4C);
	padding: 30px 26px;
	box-shadow:
		0 24px 56px -28px rgba(0, 0, 0, 0.55),
		0 6px 14px -8px rgba(0, 0, 0, 0.30);
	/* Stick to top while scrolling the long form on the left */
	position: sticky;
	top: 100px;
	align-self: start;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
}
/* Subtle gold scrollbar inside the sticky panel */
.prime-expertise-form-section__advisors::-webkit-scrollbar {
	width: 4px;
}
.prime-expertise-form-section__advisors::-webkit-scrollbar-thumb {
	background: rgba(201, 171, 76, 0.35);
	border-radius: 2px;
}
.prime-expertise-form-section__advisors::-webkit-scrollbar-track {
	background: transparent;
}
@media (max-width: 900px) {
	/* Disable sticky on mobile — column stacks vertically, sticky makes no sense */
	.prime-expertise-form-section__advisors {
		position: static;
		max-height: none;
		overflow-y: visible;
	}
}
.prime-expertise-form-section__advisors-label,
section.prime-expertise-form-section h3.prime-expertise-form-section__advisors-label {
	font-family: 'Montserrat', sans-serif !important;
	font-weight: 600 !important;
	font-size: 11px !important;
	line-height: 1.4 !important;
	letter-spacing: 0.32em !important;
	text-transform: uppercase !important;
	color: var(--prime-gold, #C9AB4C) !important;
	margin: 0 0 22px !important;
	padding-bottom: 16px !important;
	border-bottom: 1px solid rgba(201, 171, 76, 0.30) !important;
}
.prime-expertise-form-section__advisor-list {
	display: flex;
	flex-direction: column;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.prime-expertise-form-section__advisor {
	display: flex;
	gap: 18px;
	align-items: center;
}
.prime-expertise-form-section__advisor + .prime-expertise-form-section__advisor {
	border-top: 1px solid rgba(0, 51, 102, 0.06);
	padding-top: 26px;
}
.prime-expertise-form-section__advisor-avatar {
	flex: 0 0 auto;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--prime-blue, #003366);
	color: var(--prime-gold, #C9AB4C);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	font-size: 30px;
	border: 2px solid rgba(201, 171, 76, 0.25);
}
.prime-expertise-form-section__advisor-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.prime-expertise-form-section__advisor-meta {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
	flex: 1;
}
.prime-expertise-form-section__advisor-name {
	font-family: 'Cormorant Garamond', Georgia, serif !important;
	font-weight: 400 !important;
	font-style: italic !important;
	font-size: 20px !important;
	line-height: 1.25 !important;
	color: var(--prime-blue, #003366) !important;
	margin: 0 0 2px 0 !important;
	padding: 0 !important;
	display: block;
}
.prime-expertise-form-section__advisor-title {
	font-family: 'Montserrat', sans-serif !important;
	font-size: 11px !important;
	line-height: 1.4 !important;
	letter-spacing: 0.04em !important;
	color: rgba(27, 29, 30, 0.62) !important;
	margin: 0 0 10px 0 !important;
	padding: 0 !important;
	display: block;
}
.prime-expertise-form-section__advisor-links {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.prime-expertise-form-section__advisor-links a {
	display: block;
	font-family: 'Montserrat', sans-serif !important;
	font-size: 12.5px !important;
	line-height: 1.45 !important;
	color: var(--prime-blue, #003366) !important;
	text-decoration: none;
	transition: color 0.2s ease;
	word-break: break-word;
	margin: 0 !important;
	padding: 0 !important;
}
.prime-expertise-form-section__advisor-links a:hover {
	color: var(--prime-gold, #C9AB4C) !important;
}

@media (max-width: 900px) {
	.prime-expertise-form-section__advisors { margin-top: 8px; }
}
