/* Trajan Asset Holdings — popup contact form (Web3Forms). On-brand, literal colors
   so it renders consistently whether loaded with home.css or legal.css. */
.cf-overlay {
	position: fixed; inset: 0; z-index: 10000;
	display: none; align-items: center; justify-content: center;
	padding: 1.5rem;
	background: rgba(15, 19, 17, .55);
	opacity: 0; transition: opacity .25s ease;
}
.cf-overlay.is-open { display: flex; opacity: 1; }

.cf-dialog {
	position: relative;
	width: 100%; max-width: 440px;
	max-height: calc(100vh - 3rem); overflow: auto;
	background: #f4f3ed; color: #1d231f;
	border: 1px solid rgba(29, 35, 31, .16);
	box-shadow: 0 24px 70px rgba(15, 19, 17, .35);
	padding: clamp(1.6rem, 4vw, 2.3rem);
	font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
	font-weight: 300;
	transform: translateY(12px);
	transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.cf-overlay.is-open .cf-dialog { transform: none; }

.cf-close {
	position: absolute; top: .5rem; right: .65rem;
	width: 2rem; height: 2rem; border: 0; background: transparent;
	color: #6b736b; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.cf-close:hover { color: #1d231f; }
.cf-close:focus-visible { outline: 2px solid #6f9c83; outline-offset: 2px; }

.cf-title { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 .35rem; }
.cf-sub { font-size: .9rem; color: #6b736b; margin: 0 0 1.4rem; line-height: 1.5; }

.cf-label {
	display: block;
	font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
	font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
	color: #6b736b; margin: 0 0 .4rem;
}
.cf-input {
	display: block; width: 100%;
	font-family: inherit; font-size: .95rem; font-weight: 300;
	color: #1d231f; background: #fff;
	border: 1px solid rgba(29, 35, 31, .2); border-radius: 0;
	padding: .6rem .7rem; margin: 0 0 1rem;
	transition: border-color .25s ease;
}
.cf-input:focus { outline: none; border-color: #6f9c83; }
.cf-textarea { resize: vertical; min-height: 6rem; }

/* honeypot — visually hidden, off-screen */
.cf-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.cf-submit {
	font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
	font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
	color: #fff; background: #3E5C50; border: 0;
	padding: .7rem 1.5rem; cursor: pointer; margin-top: .2rem;
	transition: background .3s ease;
}
.cf-submit:hover { background: #2b4138; }
.cf-submit:disabled { opacity: .55; cursor: default; }
.cf-submit:focus-visible { outline: 2px solid #2b4138; outline-offset: 2px; }

.cf-status { font-size: .85rem; line-height: 1.45; margin: .9rem 0 0; min-height: 1.2em; }
.cf-status.is-ok { color: #3E5C50; }
.cf-status.is-err { color: #9a3b2f; }

@media (prefers-reduced-motion: reduce) {
	.cf-overlay, .cf-dialog { transition: none; }
}
