/* ===========================
   CONTACT PAGE (contact.php)
   Cleaned + consolidated
   =========================== */

/* ---------- PAGE BACKGROUND ---------- */
#contact-body
{
	background:
		radial-gradient(1200px 700px at 20% 10%, rgba(255, 255, 255, 0.10), transparent 55%),
		radial-gradient(900px 600px at 85% 30%, rgba(80, 200, 255, 0.12), transparent 55%),
		rgba(12, 14, 18, 0.92);
	color: rgba(254, 252, 255, 1);
}

/* ---------- GRID WRAPPER ---------- */
#pc3
{
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 5rem 1.5rem 4rem;

	display: grid;
	grid-template-columns: minmax(360px, 560px) minmax(680px, 1fr);
	grid-template-areas:
		"media form"
		"quick next"
		"alt   alt";
	gap: 1.5rem;
	align-items: start;

	overflow: visible;
}

/* Map grid areas */
.contact-us
{
	grid-area: media;
}

.contact-container
{
	grid-area: form;
	justify-self: end;
}

.contact-quick
{
	grid-area: quick;
}

.contact-next
{
	grid-area: next;
}

.contact-alt
{
	grid-area: alt;
}

/* ---------- SHARED “GLASS CARD” STYLE ---------- */
.contact-container,
.contact-quick,
.contact-next,
.contact-alt
{
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);

	background: rgba(255, 255, 255, 0.03);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);

	color: rgba(254, 252, 255, 0.85);
	overflow: visible;
}

/* Headings */
.contact-quick h4,
.contact-next h4,
.contact-alt h4
{
	margin: 0 0 1rem 0;
	font-family: var(--header-font);
	font-size: 1.8rem;
	color: rgba(254, 252, 255, 0.92);
}

/* ---------- HERO ---------- */
.contact-us
{
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	min-height: 640px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.10);
}

/* ---------- PHOTO CREDIT (HOVER ONLY) ---------- */

.contact-us .credit
{
	position: absolute;
	right: 0.75rem;
	top: 0.75rem;

	font-size: 0.75rem;
	color: rgba(255, 255, 255, 1);
	background: rgba(0, 0, 0, 0.45);
	padding: 0.25rem 0.5rem;
	border-radius: 6px;

	opacity: 0;
	transform: translateY(4px);
	pointer-events: none;

	transition:
		opacity 0.25s ease,
		transform 0.25s ease;
}

/* Reveal on hover */
.contact-us:hover .credit
{
	opacity: 1;
	transform: translateY(0);
}


.contact-image
{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.contact-us::after
{
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.05) 70%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
}

.contact-us h3
{
	position: absolute;
	left: 1.5rem;
	bottom: 1.25rem;
	margin: 0;
	z-index: 1;

	font-family: var(--header-font);
	font-weight: 400;
	font-size: clamp(1.4rem, 2.2vw, 2.2rem);
	max-width: 22ch;
}

/* ---------- FORM CARD ---------- */
.contact-container
{
	max-width: 940px;
	padding: 2.25rem 2.25rem 1.75rem;
	background: rgba(255, 255, 255, 0.04);
}

.contactp1
{
	margin: 0 0 1.75rem;
	padding-bottom: 0.5rem;
	font-size: 1.4rem;
	line-height: 1.6;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- FORM LAYOUT ---------- */
.form-grid
{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.9rem 1rem;
}

.field
{
	display: grid;
	gap: 0.4rem;
}

.field-full
{
	grid-column: 1 / -1;
}

label
{

	color: rgba(254, 252, 255, 0.8);
	font-family: var(--body-font);
}

/* Inputs */
input,
select,
textarea
{
	width: 100%;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(10, 12, 16, 0.45);
	color: rgba(254, 252, 255, 0.92);
	font-family: var(--body-font);
	font-size: 1.4rem;
	padding: 0.95rem 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea
{
	resize: vertical;
	min-height: 160px;
}

/* ---------- VALIDATION STATES ---------- */
input.invalid,
textarea.invalid,
select.invalid
{
	border-color: rgba(255, 140, 140, 0.9);
}

input.valid,
textarea.valid,
select.valid
{
	border-color: rgba(120, 220, 180, 0.9);
}

/* Phone-specific: subtle emphasis when required by JS */
select#contact_method[value="phone"] ~ .field input[type="tel"]
{
	border-color: rgba(255, 200, 120, 0.55);
}

/* ---------- ERRORS ---------- */
.field-error
{
	min-height: 1.2em;
	font-size: 0.95rem;
	color: rgba(255, 140, 140, 0.95);
	margin-top: 0.25rem;
	line-height: 1.3;
}

/* ---------- CHAR COUNTER ---------- */
.char-count
{
	display: block;
	margin-top: 0.25rem;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.55);
}

/* ---------- SUBMIT ---------- */
.send
{
	margin: 1.25rem auto 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.6rem;
	background: rgba(240, 248, 255, 0.92);
	color: rgba(12, 9, 10, 1);
	cursor: pointer;
}

.send.is-loading
{
	opacity: 0.65;
	cursor: not-allowed;
}

/* ---------- SUCCESS + ERROR ---------- */
.form-success
{
	margin-bottom: 1.5rem;
	padding: 1.25rem 1.5rem;
	border-radius: 14px;
	background: rgba(80, 200, 255, 0.12);
	border: 1px solid rgba(80, 200, 255, 0.35);
	color: rgba(254, 252, 255, 0.95);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.form-success.is-visible
{
	opacity: 1;
	transform: translateY(0);
}

.form-error
{
	background: rgba(255, 120, 120, 0.12);
	border: 1px solid rgba(255, 120, 120, 0.35);
	color: rgba(255, 140, 140, 0.95);
	padding: 0.75rem 1rem;
	border-radius: 10px;
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1120px)
{
	#pc3
	{
		grid-template-columns: 1fr;
		grid-template-areas:
			"media"
			"quick"
			"form"
			"next"
			"alt";
	}
}

@media (max-width: 620px)
{
	.form-grid
	{
		grid-template-columns: 1fr;
	}
}

/* ---------- PHONE MICRO-LABEL ---------- */
.field-note
{
	font-size: 0.85rem;
	color: rgba(255, 210, 140, 0.85);
	line-height: 1.3;
	margin-top: 0.15rem;
}

.contact-alt-list a
{
	color: rgba(160, 220, 255, 0.95);
	text-decoration: none;
}

.contact-alt-list a:hover
{
	text-decoration: underline;
	color: rgba(190, 235, 255, 1);
}

/* =========================
   Phone field reveal animation
   ========================= */

#phone-field
{
	opacity: 0;
	transform: translateY(-6px);
	max-height: 0;
	overflow: hidden;

	transition:
		opacity 0.25s ease,
		transform 0.25s ease,
		max-height 0.25s ease;
}

#phone-field.is-visible
{
	opacity: 1;
	transform: translateY(0);
	max-height: 200px;
	/* enough for label + input + error */
}

@media (prefers-reduced-motion: reduce)
{

	#phone-field,
	#phone-field.is-visible
	{
		transition: none;
		transform: none;
	}
}