:root {
	--aq-write-bg: #2e0c0a;
	--aq-write-paper: #fdf9f2;
	--aq-write-ink: #5e0b15;
	--aq-write-accent: #e1c296;
}

body.ancoraqui-write-page {
	background: var(--aq-write-bg);
	color: #ffdadb;
}

body.ancoraqui-write-page #content,
body.ancoraqui-write-page .site-content,
body.ancoraqui-write-page .ast-container,
body.ancoraqui-write-page .content-area,
body.ancoraqui-write-page .site-main,
body.ancoraqui-write-page article.page,
body.ancoraqui-write-page .entry-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.ancoraqui-write-page .entry-header,
body.ancoraqui-write-page .entry-title {
	display: none;
}

body.ancoraqui-write-page .elementor-widget:not(:last-child) {
	margin-block-end: 0;
}

.aq-write-experience,
.aq-write-experience * {
	box-sizing: border-box;
}

.aq-write-experience {
	width: 100%;
	padding: 52px 24px 76px;
	background:
		radial-gradient(circle at 50% 18%, rgba(111, 30, 33, 0.34), transparent 36%),
		var(--aq-write-bg);
	font-family: "Literata", Georgia, serif;
}

.aq-writing-shell {
	width: min(100%, 1120px);
	margin: 0 auto;
}

.aq-writing-paper {
	position: relative;
	min-height: 1080px;
	padding: 72px 72px 62px;
	overflow: hidden;
	border: 1px solid rgba(94, 11, 21, 0.13);
	border-radius: 4px;
	background:
		radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.9), transparent 38%),
		repeating-linear-gradient(90deg, rgba(94, 11, 21, 0.012) 0, rgba(94, 11, 21, 0.012) 1px, transparent 1px, transparent 4px),
		var(--aq-write-paper);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3), 0 5px 16px rgba(0, 0, 0, 0.18);
	color: var(--aq-write-ink);
}

.aq-write-intro {
	max-width: 720px;
	margin: 0 auto 70px;
	text-align: center;
}

.aq-write-intro h1 {
	margin: 0 0 14px;
	color: var(--aq-write-ink);
	font-family: "EB Garamond", Georgia, serif;
	font-size: clamp(42px, 5vw, 62px);
	font-style: italic;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.05;
}

.aq-write-intro p {
	margin: 0;
	color: rgba(94, 11, 21, 0.7);
	font-size: 17px;
	line-height: 1.65;
}

.aq-form-notice {
	margin: -36px auto 42px;
	padding: 14px 18px;
	border-radius: 10px;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.aq-form-notice strong,
.aq-form-notice span {
	display: block;
}

.aq-form-success {
	background: #e6f0df;
	color: #245521;
}

.aq-form-error {
	background: #f7dedb;
	color: #7b161c;
}

.aq-letter-submit-form {
	position: relative;
}

.aq-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.aq-letter-meta-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 38px;
	margin-bottom: 54px;
}

.aq-letter-field {
	position: relative;
	min-width: 0;
}

.aq-letter-field > label,
.aq-letter-writing-field > label {
	display: block;
	margin: 0 0 8px;
	color: rgba(94, 11, 21, 0.76);
	font-family: "Manrope", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.055em;
	line-height: 1.3;
	text-transform: uppercase;
}

.aq-field-tip {
	position: absolute;
	z-index: 4;
	left: 6px;
	bottom: calc(100% + 18px);
	width: max-content;
	max-width: 260px;
	padding: 9px 12px;
	border-radius: 9px;
	background: var(--aq-write-ink);
	box-shadow: 0 7px 18px rgba(94, 11, 21, 0.2);
	color: #fff8e9;
	font-family: "Manrope", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.35;
	opacity: 0;
	pointer-events: none;
	transform: translateY(5px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.aq-field-tip::after {
	position: absolute;
	top: 100%;
	left: 18px;
	width: 0;
	height: 0;
	border: 6px solid transparent;
	border-top-color: var(--aq-write-ink);
	content: "";
}

.aq-field-with-tip:not(:focus-within):not(.has-value):hover .aq-field-tip,
.aq-field-with-tip:not(:focus-within):not(.has-value) .aq-field-tip {
	opacity: 1;
	transform: translateY(0);
}

.aq-letter-field input,
.aq-letter-field select {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 8px 4px 9px;
	border: 0;
	border-bottom: 1px solid rgba(94, 11, 21, 0.25);
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: #410008;
	font-family: "EB Garamond", Georgia, serif;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.2;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.aq-letter-field input::placeholder {
	color: rgba(94, 11, 21, 0.35);
	opacity: 1;
}

.aq-letter-field input:focus,
.aq-letter-field select:focus {
	border-bottom-color: var(--aq-write-ink);
	box-shadow: 0 7px 8px -8px rgba(94, 11, 21, 0.65);
}

.aq-select-wrap {
	position: relative;
}

.aq-letter-field select {
	padding-right: 34px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.aq-select-arrow {
	position: absolute;
	top: 50%;
	right: 6px;
	color: rgba(94, 11, 21, 0.58);
	font-size: 25px;
	line-height: 1;
	pointer-events: none;
	transform: translateY(-58%);
}

.aq-letter-writing-field {
	position: relative;
	margin-top: 8px;
}

.aq-letter-writing-field > label {
	margin-bottom: 18px;
}

.aq-letter-writing-field textarea {
	display: block;
	width: 100%;
	min-height: 460px;
	max-height: 980px;
	margin: 0;
	padding: 0 4px 20px;
	resize: vertical;
	border: 0;
	border-bottom: 1px solid rgba(94, 11, 21, 0.14);
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: #410008;
	font-family: "EB Garamond", Georgia, serif;
	font-size: 23px;
	font-weight: 500;
	line-height: 1.75;
}

.aq-letter-writing-field textarea::placeholder {
	color: rgba(94, 11, 21, 0.35);
	font-style: italic;
	opacity: 1;
}

.aq-letter-writing-field textarea:focus {
	border-bottom-color: rgba(94, 11, 21, 0.4);
}

.aq-letter-consent {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 13px;
	max-width: 920px;
	margin: 38px auto 0;
	padding: 22px 24px;
	border-radius: 12px;
	background: rgba(94, 11, 21, 0.055);
}

.aq-letter-consent input {
	width: 19px;
	height: 19px;
	margin: 3px 0 0;
	border: 1px solid rgba(94, 11, 21, 0.55);
	border-radius: 4px;
	accent-color: var(--aq-write-ink);
}

.aq-letter-consent label {
	color: rgba(65, 0, 8, 0.76);
	font-family: "Literata", Georgia, serif;
	font-size: 13px;
	line-height: 1.65;
}

.aq-letter-consent a {
	color: var(--aq-write-ink);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.aq-letter-submit-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding-top: 34px;
}

.aq-form-readiness {
	margin: 0;
	color: rgba(94, 11, 21, 0.55);
	font-family: "Manrope", sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
}

.aq-form-readiness.is-ready {
	color: #376529;
}

.aq-letter-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-width: 260px;
	min-height: 58px;
	padding: 16px 30px;
	border: 0;
	border-radius: 999px;
	background: var(--aq-write-ink);
	box-shadow: 0 12px 25px rgba(94, 11, 21, 0.22);
	color: #fff4dc;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.aq-letter-submit:not(:disabled):hover,
.aq-letter-submit:not(:disabled):focus-visible {
	background: #410008;
	box-shadow: 0 0 0 4px rgba(225, 194, 150, 0.24), 0 15px 30px rgba(94, 11, 21, 0.28);
	transform: translateY(-2px);
}

.aq-letter-submit:disabled {
	opacity: 0.42;
	cursor: not-allowed;
	box-shadow: none;
}

.aq-guidelines {
	width: min(100%, 1120px);
	margin: 58px auto 0;
}

.aq-guidelines > h2 {
	margin: 0 0 26px;
	color: #f8e9d2;
	font-family: "EB Garamond", Georgia, serif;
	font-size: clamp(34px, 4vw, 46px);
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
}

.aq-guidelines-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.aq-guideline-card {
	position: relative;
	min-height: 300px;
	padding: 38px 32px 34px;
	overflow: hidden;
	border: 1px solid rgba(225, 194, 150, 0.17);
	border-radius: 20px;
	background:
		radial-gradient(circle at 85% 8%, rgba(225, 194, 150, 0.09), transparent 34%),
		#491b20;
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.aq-guideline-number {
	display: block;
	margin-bottom: 26px;
	color: var(--aq-write-accent);
	font-family: "Manrope", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.13em;
}

.aq-guideline-card h3 {
	margin: 0 0 16px;
	color: #f8e9d2;
	font-family: "EB Garamond", Georgia, serif;
	font-size: 27px;
	font-weight: 600;
	line-height: 1.16;
}

.aq-guideline-card p {
	margin: 0;
	color: #dcc0bf;
	font-family: "Literata", Georgia, serif;
	font-size: 14px;
	line-height: 1.75;
}

@media (max-width: 900px) {
	.aq-write-experience {
		padding: 38px 20px 60px;
	}

	.aq-writing-paper {
		min-height: 980px;
		padding: 58px 42px 50px;
	}

	.aq-write-intro {
		margin-bottom: 62px;
	}

	.aq-letter-meta-grid {
		grid-template-columns: 1fr;
		gap: 52px;
	}

	.aq-field-tip {
		left: auto;
		right: 0;
	}

	.aq-field-tip::after {
		left: auto;
		right: 18px;
	}

	.aq-guidelines-grid {
		grid-template-columns: 1fr;
	}

	.aq-guideline-card {
		min-height: 0;
	}
}

@media (max-width: 560px) {
	.aq-write-experience {
		padding: 24px 12px 46px;
	}

	.aq-writing-paper {
		padding: 42px 22px 38px;
		border-radius: 3px;
	}

	.aq-write-intro {
		margin-bottom: 56px;
	}

	.aq-write-intro h1 {
		font-size: 39px;
	}

	.aq-write-intro p {
		font-size: 15px;
	}

	.aq-letter-meta-grid {
		gap: 50px;
		margin-bottom: 48px;
	}

	.aq-field-tip {
		max-width: 230px;
	}

	.aq-letter-writing-field textarea {
		min-height: 390px;
		font-size: 20px;
		line-height: 1.65;
	}

	.aq-letter-consent {
		padding: 18px;
	}

	.aq-letter-submit {
		width: 100%;
		min-width: 0;
	}

	.aq-guidelines {
		margin-top: 44px;
	}

	.aq-guidelines-grid {
		gap: 14px;
	}

	.aq-guideline-card {
		padding: 30px 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aq-write-experience *,
	.aq-write-experience *::before,
	.aq-write-experience *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
