/*
 * AIPDMS Contact — page-scoped styles.
 * All selectors are namespaced under .aipdms-contact-* so nothing global is
 * affected. The section background is a thick navy blue; the card stays light.
 */

#aipdms-contact-page,
.aipdms-contact-shell {
	box-sizing: border-box;
}

#aipdms-contact-page *,
#aipdms-contact-page *::before,
#aipdms-contact-page *::after,
.aipdms-contact-shell *,
.aipdms-contact-shell *::before,
.aipdms-contact-shell *::after {
	box-sizing: inherit;
}

.aipdms-contact-shell {
	--ac-navy: #0a1f44;
	--ac-navy-deep: #071633;
	--ac-accent: #2f6bff;
	--ac-accent-dark: #1f4fd6;
	--ac-text: #10213f;
	--ac-muted: #5b6b85;
	--ac-border: #e4e9f2;
	--ac-bg: #ffffff;

	width: 100%;
	margin: 0;
	padding: 72px 20px 96px;
	background:
		radial-gradient(1000px 420px at 15% 0%, rgba(47, 107, 255, 0.35), transparent 60%),
		radial-gradient(900px 400px at 90% 100%, rgba(47, 107, 255, 0.25), transparent 60%),
		linear-gradient(180deg, var(--ac-navy) 0%, var(--ac-navy-deep) 100%);
	color: #ffffff;
	font-family: inherit;
	line-height: 1.6;
}

.aipdms-contact-container {
	max-width: 760px;
	margin: 0 auto;
}

/* Heading */
.aipdms-contact-heading {
	text-align: center;
	margin-bottom: 36px;
}

.aipdms-contact-title {
	margin: 0 0 6px;
	font-size: 14px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #9db8ff;
	font-weight: 600;
}

.aipdms-contact-subtitle {
	margin: 0 0 14px;
	font-size: clamp(28px, 5vw, 42px);
	line-height: 1.15;
	font-weight: 700;
	color: #ffffff;
}

.aipdms-contact-text {
	margin: 0 auto;
	max-width: 560px;
	font-size: 17px;
	color: #cdd9f5;
}

/* Card */
.aipdms-contact-card {
	background: var(--ac-bg);
	color: var(--ac-text);
	border-radius: 18px;
	padding: 32px 30px;
	box-shadow: 0 24px 60px rgba(3, 12, 40, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.08);
	animation: aipdms-fade 0.6s ease;
}

@media (min-width: 560px) {
	.aipdms-contact-card {
		padding: 40px 44px;
	}
}

/* Fields */
.aipdms-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
}

.aipdms-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.aipdms-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--ac-text);
}

.aipdms-req {
	color: #d92630;
}

.aipdms-input {
	width: 100%;
	font: inherit;
	font-size: 16px;
	color: var(--ac-text);
	background: #f7f9fc;
	border: 1px solid var(--ac-border);
	border-radius: 10px;
	padding: 13px 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	appearance: none;
}

.aipdms-input::placeholder {
	color: #97a3b8;
}

.aipdms-input:focus {
	outline: none;
	border-color: var(--ac-accent);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}

.aipdms-input.aipdms-invalid {
	border-color: #d92630;
	box-shadow: 0 0 0 3px rgba(217, 38, 48, 0.12);
}

.aipdms-select {
	cursor: pointer;
}

.aipdms-textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.5;
}

.aipdms-hint {
	font-size: 12px;
	color: var(--ac-muted);
}

/* Honeypot - hidden from humans */
.aipdms-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* Submit */
.aipdms-submit-row {
	padding-top: 4px;
}

.aipdms-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 15px 20px;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	background: linear-gradient(180deg, var(--ac-accent), var(--ac-accent-dark));
	border: none;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: 0 10px 20px rgba(31, 79, 214, 0.3);
	transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.aipdms-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 26px rgba(31, 79, 214, 0.4);
}

.aipdms-submit:active {
	transform: translateY(0);
}

.aipdms-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.aipdms-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: aipdms-spin 0.7s linear infinite;
}

.aipdms-form.aipdms-sending .aipdms-submit-label {
	display: none;
}

.aipdms-form.aipdms-sending .aipdms-spinner {
	display: inline-block;
}

/* Status */
.aipdms-status {
	display: none;
	margin: 0;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
}

.aipdms-status.aipdms-status-error {
	display: block;
	background: #fdecec;
	color: #a41b22;
	border: 1px solid #f5c6cb;
}

.aipdms-status.aipdms-status-success {
	display: block;
	background: #e8f6ec;
	color: #1c6b33;
	border: 1px solid #b6e0c2;
}

/* Animations */
@keyframes aipdms-fade {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

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

@media (prefers-reduced-motion: reduce) {
	.aipdms-contact-card {
		animation: none;
	}
	.aipdms-submit {
		transition: none;
	}
}
