/* AMPRA Contact page */

.ampra-contact {
	padding-block: clamp(2rem, 4vw, 3.25rem) clamp(2.75rem, 5.5vw, 4.5rem);
}

.ampra-contact__intro {
	max-width: 40rem;
	margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.ampra-contact__eyebrow {
	margin: 0 0 0.55rem;
	color: var(--ampra-accent);
	font-weight: 800;
	font-size: 0.88rem;
}

.ampra-contact__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.7rem, 3vw, 2.2rem);
	font-weight: 900;
	color: var(--ampra-navy-900);
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.ampra-contact__lead {
	margin: 0;
	color: var(--ampra-muted);
	font-size: 1.02rem;
	line-height: 1.85;
}

/* Info cards */
.ampra-contact__cards {
	list-style: none;
	margin: 0 0 clamp(1.75rem, 3.5vw, 2.5rem);
	padding: 0;
	display: grid;
	gap: 1rem;
}

.ampra-contact-card {
	background: #fff;
	border: 1px solid var(--ampra-border);
	border-radius: 18px;
	padding: 1.25rem 1.2rem 1.3rem;
	box-shadow:
		0 1px 2px rgb(15 23 42 / 0.03),
		0 10px 24px rgb(15 23 42 / 0.05);
	transition: border-color var(--ampra-ease), transform var(--ampra-ease), box-shadow var(--ampra-ease);
}

.ampra-contact-card:hover {
	border-color: rgb(255 107 0 / 0.28);
	transform: translateY(-2px);
	box-shadow:
		0 4px 10px rgb(15 23 42 / 0.05),
		0 16px 32px rgb(15 23 42 / 0.08);
}

.ampra-contact-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 14px;
	background: var(--ampra-accent-soft);
	color: var(--ampra-accent);
	margin-bottom: 0.9rem;
	box-shadow: inset 0 0 0 1px rgb(255 107 0 / 0.12);
}

.ampra-contact-card h2 {
	margin: 0 0 0.4rem;
	font-size: 0.92rem;
	font-weight: 800;
	color: var(--ampra-muted);
}

.ampra-contact-card a,
.ampra-contact-card strong {
	display: block;
	font-size: 1.08rem;
	font-weight: 800;
	color: var(--ampra-navy-900);
	text-decoration: none;
	margin-bottom: 0.35rem;
	line-height: 1.4;
}

.ampra-contact-card a:hover {
	color: var(--ampra-accent);
}

.ampra-contact-card p {
	margin: 0;
	color: var(--ampra-muted);
	font-size: 0.88rem;
	line-height: 1.6;
	font-weight: 600;
}

/* Form + aside */
.ampra-contact__grid {
	display: grid;
	gap: 1.25rem;
	align-items: start;
}

.ampra-contact__form-wrap {
	background: #fff;
	border: 1px solid var(--ampra-border);
	border-radius: 20px;
	padding: clamp(1.25rem, 2.8vw, 1.75rem);
	box-shadow:
		0 1px 2px rgb(15 23 42 / 0.03),
		0 10px 24px rgb(15 23 42 / 0.05);
}

.ampra-contact__form-head {
	margin-bottom: 1.25rem;
}

.ampra-contact__form-head h2 {
	margin: 0 0 0.4rem;
	font-size: 1.25rem;
	font-weight: 900;
	color: var(--ampra-navy-900);
}

.ampra-contact__form-head p {
	margin: 0;
	color: var(--ampra-muted);
	font-size: 0.94rem;
	line-height: 1.7;
}

.ampra-contact-form__grid {
	display: grid;
	gap: 1rem;
}

.ampra-contact-form__field {
	margin: 0;
}

.ampra-contact-form__field label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--ampra-navy-800);
}

.ampra-contact-form__field .required {
	color: var(--ampra-accent);
}

.ampra-contact-form__field input,
.ampra-contact-form__field select,
.ampra-contact-form__field textarea {
	width: 100%;
	min-height: 2.85rem;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--ampra-border-strong);
	border-radius: 12px;
	background: #fff;
	color: var(--ampra-ink);
	transition: border-color var(--ampra-ease), box-shadow var(--ampra-ease);
}

.ampra-contact-form__field textarea {
	min-height: 8.5rem;
	resize: vertical;
	line-height: 1.7;
}

.ampra-contact-form__field input:focus,
.ampra-contact-form__field select:focus,
.ampra-contact-form__field textarea:focus {
	outline: none;
	border-color: var(--ampra-accent);
	box-shadow: 0 0 0 3px rgb(255 107 0 / 0.15);
}

.ampra-contact-form__field.is-invalid input,
.ampra-contact-form__field.is-invalid select,
.ampra-contact-form__field.is-invalid textarea {
	border-color: var(--ampra-danger);
}

.ampra-contact-form__actions {
	margin: 1.35rem 0 0;
}

.ampra-contact-form__actions .ampra-btn {
	min-width: 10rem;
	box-shadow: 0 8px 22px rgb(255 107 0 / 0.28);
}

.ampra-contact-form__actions .ampra-btn:disabled {
	opacity: 0.7;
	cursor: wait;
}

.ampra-contact-form__status {
	margin: 0.9rem 0 0;
	padding: 0.85rem 1rem;
	border-radius: 12px;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.6;
}

.ampra-contact-form__status.is-ok {
	background: var(--ampra-ok-bg);
	border: 1px solid #bbf7d0;
	color: var(--ampra-ok);
}

.ampra-contact-form__status.is-error {
	background: var(--ampra-danger-bg);
	border: 1px solid #fecaca;
	color: var(--ampra-danger);
}

/* Aside notes */
.ampra-contact__aside {
	display: grid;
	gap: 1rem;
}

.ampra-contact-note {
	background: #fff;
	border: 1px solid var(--ampra-border);
	border-radius: 18px;
	padding: 1.2rem 1.15rem;
	box-shadow:
		0 1px 2px rgb(15 23 42 / 0.03),
		0 10px 24px rgb(15 23 42 / 0.05);
}

.ampra-contact-note--soft {
	background:
		linear-gradient(160deg, #0f172a 0%, #0a1628 100%);
	border-color: rgb(255 255 255 / 0.06);
	color: #e2e8f0;
}

.ampra-contact-note h2 {
	margin: 0 0 0.75rem;
	font-size: 1.02rem;
	font-weight: 800;
	color: var(--ampra-navy-900);
}

.ampra-contact-note--soft h2 {
	color: #fff;
}

.ampra-contact-note ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.ampra-contact-note a {
	display: block;
	padding: 0.7rem 0.85rem;
	border-radius: 12px;
	background: var(--ampra-bg);
	border: 1px solid var(--ampra-border);
	color: var(--ampra-navy-900);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.92rem;
	transition: border-color var(--ampra-ease), color var(--ampra-ease);
}

.ampra-contact-note a:hover {
	border-color: rgb(255 107 0 / 0.35);
	color: var(--ampra-accent);
}

.ampra-contact-note--soft p {
	margin: 0;
	color: rgb(226 232 240 / 0.85);
	font-size: 0.92rem;
	line-height: 1.8;
}

/* Hide default page title when this template is used */
body.page-template-contact .site-main > .ampra-container > article > .ampra-section__title {
	display: none;
}

@media (min-width: 640px) {
	.ampra-contact__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.1rem;
	}

	.ampra-contact-form__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ampra-contact-form__field--wide {
		grid-column: 1 / -1;
	}
}

@media (min-width: 960px) {
	.ampra-contact__grid {
		grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.75fr);
		gap: 1.5rem;
	}
}

.ampra-contact-form__hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ampra-bulk__flash {
	margin: 0 0 1.25rem;
	padding: 0.9rem 1rem;
	border-radius: 12px;
	font-weight: 700;
}

.ampra-bulk__flash--ok {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.ampra-bulk__flash--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

@media (prefers-reduced-motion: reduce) {
	.ampra-contact-card {
		transition: none !important;
		transform: none !important;
	}
}
