/* contacto (templates/page.html.j2 contact()): two cards side by side, the questions and
   the form. The layout is the live page's (Elementor's breakpoints: tablet up to 1024px);
   the look is the site's own, shared with the forum: white cards, soft fields with a focus
   ring, the gradient button. */

.contact-columns {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}
.contact-column {
	position: relative;
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	min-width: 0;
	padding: 24px;
	border: 1px solid #E2E8F0;
	border-radius: 14px;
	background: #FFFFFF;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

/* the title: custom.css' h2 rules (margins, padding, the line under it) give way, as
   theme.css made them give way to the theme's title; the form's has a line under it */
.contact-title {
	margin-bottom: 5px;
	padding-bottom: 10px;
	text-align: left;
}
.contact-title.underlined {
	padding-bottom: 15px;
	border-bottom: 2px solid #E2E8F0;
}
.contact-title h2 {
	display: inline-block;
	margin: 10px 0 0 !important;
	padding: 0;
	color: #111827;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: none;
}
.contact-title h2::after {
	content: none;
}

/* the questions: one open at a time, the arrow turned up on the open one */
.contact-faq::before {
	display: block;
	border-top: 2px solid #E2E8F0;
	content: "";
}
.contact-faq-item {
	border-bottom: 1px solid #E2E8F0;
}
.contact-faq-question {
	all: unset;
	display: flex;
	box-sizing: border-box;
	align-items: center;
	width: 100%;
	padding: 18px 0;
	cursor: pointer;
	transition: all .25s ease;
	user-select: none;
}
.contact-faq-question:focus-visible {
	outline: 2px solid #13396F;
	outline-offset: 2px;
}
.contact-faq-question span {
	flex: 1;
	color: #111827;
	font-weight: 700;
	transition: inherit;
}
.contact-faq-question:hover span,
.open > .contact-faq-question span {
	color: #13396F;
}
.contact-faq-question svg {
	display: block;
	flex-shrink: 0;
	margin-left: 12px;
	color: #94A3B8;
	transition: inherit;
}
.open > .contact-faq-question svg {
	transform: rotate(180deg);
}
.contact-faq-answer {
	display: none;
	padding-bottom: 18px;
	color: #4B5563;
	opacity: 0;
	transition: opacity .25s ease;
}
.open > .contact-faq-answer {
	display: block;
	opacity: 1;
}
.contact-faq-answer > :last-child {
	margin-bottom: 0;
}

/* the form: four fields, 20px apart, and the button centred 10px under the last (as on
   the main site; the other blogs' forms left 30px more for a captcha that never showed) */
.contact-form {
	margin: 4px 0 24px;
}
.contact-field {
	padding: 10px 0;
}
.contact-field label {
	display: block;
	margin: 0 0 6px;
	color: #374151;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	word-break: break-word;
}
.contact-required {
	color: #DC2626;
	font-weight: 400;
}
.contact-field input,
.contact-field textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	padding: 8px 14px;
	border: 1px solid #D5DCE6;
	border-radius: 10px;
	background-color: #F8FAFC;
	color: #1F2937;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.contact-field textarea {
	height: auto;
	min-height: 170px;
	padding: 12px 14px;
	resize: vertical;
}
.contact-field input:focus,
.contact-field textarea:focus {
	border-color: #1C4B9D;
	background-color: #FFFFFF;
	box-shadow: 0 0 0 3px rgba(28, 75, 157, .15);
	outline: none;
}
.contact-submit {
	display: flex;
	justify-content: flex-end;
	padding-top: 10px;
}
.contact-submit button {
	display: block;
	min-width: 160px;
	height: 44px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(246deg, #097C5C 10%, #1C4B9D);
	color: #FFFFFF;
	font-size: 16px;
	font-weight: 700;
	text-transform: none;
	transition: filter .15s, box-shadow .15s;
}
.contact-submit button:hover,
.contact-submit button:focus-visible {
	box-shadow: 0 4px 12px rgba(28, 75, 157, .25);
	color: #FFFFFF;
	filter: brightness(1.08);
}
.contact-submit button:disabled {
	cursor: progress;
	opacity: .6;
}

/* the hidden trap field bots fill */
.contact-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-feedback {
	margin-top: 15px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
}
.contact-feedback.success {
	background-color: #EBF8F2;
	border: 1px solid #A6E5C5;
	color: #1E7E51;
}
.contact-feedback.error {
	background-color: #FDF2F2;
	border: 1px solid #F8B4B4;
	color: #9B1C1C;
}

@media (max-width: 600px) {
	.contact-field {
		overflow-x: hidden;
		padding-right: 1px;
		padding-left: 1px;
	}
}

@media (max-width: 1024px) {
	.contact-columns {
		flex-wrap: wrap;
	}
	.contact-column {
		flex-basis: 100%;
		padding: 16px;
	}
	.contact-submit button {
		width: 100%;
	}
}
