/* Axori Contact page — builds on home.css + projects.css + about.css (particles, scroll, reveals) */

.ct-app > .brand,
.ct-app > .pj-head,
.ct-app > .axi-foot,
.ct-app > .axi-dock,
.ct-app > .axi-gear,
.ct-app > .axi-settings { z-index: 30; }
.ct-app > .pj-fade { z-index: 20; }
.ct-scroll { padding: 0 !important; }
body.axi-ct input,
body.axi-ct textarea { cursor: text !important; }


/* ================= CONTACT FORM ================= */
/* the form is the whole page: it starts just under the fixed title and rises in on load */
.ct-form-sec { position: relative; min-height: 100vh; padding: 12rem 1.5rem 14rem; }
.ct-form-wrap { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease) 0.3s, transform 1.3s var(--ease) 0.3s; }
.axi-entered .ct-form-wrap { opacity: 1; transform: none; }
.ct-form-wrap { max-width: 780px; margin: 0 auto; }
.ct-form-head { margin-bottom: 3rem; }
.ct-form-label { display: block; margin-bottom: 1rem; font-family: ui-monospace, Consolas, monospace; font-size: 11px; letter-spacing: 0.2em; color: rgb(var(--acc-l) / 0.4); }
.ct-form-title {
	margin: 0 0 1.25rem;
	font-family: var(--display);
	font-size: calc(56px * var(--s-title, 1));
	line-height: 1;
	font-weight: 700;
	text-transform: uppercase;
	color: rgb(var(--acc-l));
}
.ct-form-intro { max-width: 560px; font-family: var(--mono); font-size: 15px !important; line-height: 1.65 !important; color: rgb(var(--acc-l) / 0.65); }

.ct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ct-row { display: grid; gap: 0 2.5rem; }
.ct-field { position: relative; display: block; margin-top: 2.25rem; }
.ct-flabel {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.4rem;
	padding: 0;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgb(var(--acc-l) / 0.5);
}
.ct-flabel em { font-style: normal; color: rgb(var(--acc) / 0.8); }
.ct-field input,
.ct-field textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.9rem 0;
	border: 0;
	border-bottom: 1px solid rgb(var(--acc-l) / 0.15);
	border-radius: 0;
	background: transparent;
	font-family: var(--mono);
	font-size: 18px;
	line-height: 1.5;
	color: rgb(var(--acc-l));
	outline: none;
	box-shadow: none;
	transition: border-color 0.3s;
	-webkit-appearance: none;
	appearance: none;
}
.ct-field textarea { min-height: 150px; resize: vertical; }
.ct-field input::placeholder,
.ct-field textarea::placeholder { color: rgb(var(--acc-l) / 0.2); }
.ct-field input:-webkit-autofill { -webkit-text-fill-color: rgb(var(--acc-l)); transition: background-color 9999s; }
/* accent line draws across on focus */
.ct-line {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 1px;
	background: rgb(var(--acc));
	box-shadow: 0 0 10px rgb(var(--acc) / 0.5);
	transition: width 0.6s var(--ease);
	pointer-events: none;
}
.ct-field-msg .ct-line { bottom: 6px; }
.ct-field:focus-within .ct-line { width: 100%; }
.ct-field:focus-within .ct-flabel { color: rgb(var(--acc-l)); }
.ct-field:hover input,
.ct-field:hover textarea { border-bottom-color: rgb(var(--acc-l) / 0.3); }
.ct-count { position: absolute; right: 0; bottom: -1.5rem; font-family: ui-monospace, Consolas, monospace; font-size: 10px; letter-spacing: 0.1em; color: rgb(var(--acc-l) / 0.3); }
.ct-err { display: block; min-height: 0; margin-top: 0.4rem; font-family: ui-monospace, Consolas, monospace; font-size: 11px; letter-spacing: 0.05em; color: rgb(255 95 95); }
.ct-err:empty { display: none; }
.ct-field.has-error input,
.ct-field.has-error textarea { border-bottom-color: rgb(255 95 95 / 0.7); }
.ct-field.has-error .ct-line { background: rgb(255 95 95); box-shadow: 0 0 10px rgb(255 95 95 / 0.4); }

.ct-choices { margin: 2.25rem 0 0; padding: 0; border: 0; min-width: 0; }
.ct-choices legend { margin-bottom: 0.9rem; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ct-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.9rem;
	border: 1px solid rgb(var(--acc) / 0.3);
	border-radius: 0.375rem;
	cursor: pointer;
	transition: border-color 0.3s, background-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.ct-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ct-chip-idx { font-family: ui-monospace, Consolas, monospace; font-size: 9px; letter-spacing: -0.05em; color: rgb(var(--acc-l) / 0.3); }
.ct-chip-lbl { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(var(--acc-l) / 0.8); }
.ct-chip:hover { border-color: rgb(var(--acc-l) / 0.35); background: rgb(var(--acc-l) / 0.03); }
.ct-chip:has(input:checked) { border-color: rgb(var(--acc)); background: rgb(var(--acc) / 0.12); box-shadow: 0 0 18px rgb(var(--acc) / 0.15); }
.ct-chip:has(input:checked) .ct-chip-lbl { color: rgb(var(--acc-l)); }
.ct-chip:has(input:focus-visible) { outline: 1px solid rgb(var(--acc-l) / 0.8); outline-offset: 3px; }
.ct-chip:active { transform: scale(0.97); }

.ct-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 3.5rem; }
.ct-submit {
	display: inline-flex !important;
	align-items: center;
	gap: 1rem;
	padding: 0.5rem 0.5rem 0.5rem 1.5rem !important;
	border: 1px solid rgb(var(--acc) / 0.35) !important;
	border-radius: 0.5rem;
	background: rgb(var(--acc-l) / 0.05) !important;
	font-family: var(--mono);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: rgb(var(--acc-l));
	transition: border-color 0.3s, background-color 0.3s, opacity 0.3s;
}
.ct-submit-icon { display: grid; place-content: center; padding: 0.55rem; border-radius: 0.4rem; background: rgb(var(--acc-l)); }
.ct-submit-icon svg { width: 1rem; height: 1rem; fill: none; stroke: #000; stroke-width: 1.7; stroke-linecap: round; transition: transform 0.4s var(--ease); }
.ct-submit:hover { border-color: rgb(var(--acc-l) / 0.6) !important; background: rgb(var(--acc-l) / 0.1) !important; }
.ct-submit:hover .ct-submit-icon svg { transform: translate(2px, -2px); }
.ct-submit[disabled] { opacity: 0.6; pointer-events: none; }
.ct-submit.is-sending .ct-submit-icon svg { animation: ct-send 0.9s var(--ease) infinite; }
@keyframes ct-send { 0% { transform: translate(-8px, 8px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translate(8px, -8px); opacity: 0; } }

.ct-status { display: flex; align-items: center; gap: 0.6rem; font-family: ui-monospace, Consolas, monospace; font-size: 11px !important; text-transform: uppercase; letter-spacing: 0.15em; color: rgb(var(--acc-l) / 0.45); }
.ct-status i { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--acc-l) / 0.3); }
.ct-status.sending i { background: rgb(var(--acc)); animation: pulse 0.8s ease-in-out infinite; }
.ct-status.ok { color: rgb(34 197 94 / 0.9); }
.ct-status.ok i { background: rgb(34 197 94); box-shadow: 0 0 10px rgb(34 197 94 / 0.7); }
.ct-status.err { color: rgb(255 95 95); }
.ct-status.err i { background: rgb(255 95 95); }

/* ================= BREAKPOINTS ================= */
@media (min-width: 640px) {
	.ct-form-sec { padding: 12rem 2.5rem 14rem; }
}
@media (min-width: 768px) {
	.ct-row { grid-template-columns: 1fr 1fr; }
	.ct-form-title { font-size: calc(80px * var(--s-title, 1)); }
}
@media (max-width: 639px) {
	.ct-form-sec { padding-top: 9rem; }
}
