/* "Sumate al Equipo" widget. White panel with navy outlined inputs
   and a dashed dropzone for the CV. Reuses .csa-contact-form base
   classes for inputs/buttons, overrides scoped under .csa-join-team. */

.csa-join-team {
	background-color: #FFFFFF;
	/* Override the 32px padding inherited from the shared .csa-contact-form
	   base class — this panel sits flush inside its Elementor container. */
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* ---------- Header ---------- */

.csa-join-team__header {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.csa-join-team__eyebrow {
	margin: 0;
	color: #2A3B7A;
	font-size: 16px;
	font-weight: 500;
}

.csa-join-team__heading {
	margin: 0;
	color: #1B2A56;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 56px;
	line-height: 1.05;
	font-weight: 400;
}

.csa-join-team__divider {
	display: block;
	width: 280px;
	height: 1px;
	background-color: #1B2A56;
	margin-top: 8px;
}

/* ---------- Form grid ---------- */

.csa-join-team__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

.csa-join-team__col {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* ---------- Inputs (override contact-form base) ---------- */

.csa-join-team .csa-contact-form__label {
	color: #2A3B7A;
	font-size: 14px;
	font-weight: 400;
}

.csa-join-team .csa-contact-form__input {
	background-color: #FFFFFF;
	border: 1.5px solid #1B2A56;
	border-radius: 0;
	color: #1B2A56;
	padding: 12px 16px;
}

.csa-join-team .csa-contact-form__input::placeholder {
	color: #9AA3BA;
}

.csa-join-team .csa-contact-form__input:focus {
	border-color: #1B2A56;
	box-shadow: 0 0 0 3px rgba(27, 42, 86, 0.15);
}

.csa-join-team .csa-contact-form__input--textarea {
	min-height: 120px;
}

/* Stretch the presentación textarea so its bottom aligns with the
   teléfono input on the left column (i.e. presentación spans rows
   1-3 and CV occupies row 4 on the right). */

.csa-join-team__col {
	min-height: 0;
}

.csa-join-team__col .csa-contact-form__field[data-field="presentacion"] {
	flex: 1 1 auto;
	min-height: 0;
}

.csa-join-team .csa-contact-form__required {
	color: #1B2A56;
}

/* ---------- Char counter (anchored inside the textarea) ---------- */

.csa-join-team__textarea-wrap {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
}

.csa-join-team__textarea-wrap .csa-contact-form__input--textarea {
	width: 100%;
	flex: 1 1 auto;
	padding-bottom: 28px; /* leave room for the counter inside */
}

.csa-join-team__counter {
	position: absolute;
	bottom: 8px;
	right: 12px;
	font-size: 12px;
	color: #9AA3BA;
	pointer-events: none;
	background-color: inherit;
}

/* ---------- File dropzone ---------- */

.csa-join-team__dropzone {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border: 1.5px solid #1B2A56;
	padding: 12px 16px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.csa-join-team__dropzone input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.csa-join-team__dropzone-text {
	color: #1B2A56;
	font-size: 14px;
	line-height: 1.4;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	width: 100%;
	justify-content: space-between;
}

.csa-join-team__dropzone-hint {
	color: #9AA3BA;
	font-size: 13px;
	white-space: nowrap;
}

.csa-join-team__dropzone.is-dragover {
	background-color: rgba(27, 42, 86, 0.05);
	border-style: dashed;
}

.csa-join-team__dropzone.has-file [data-csa-dropzone-default] {
	font-weight: 600;
}

/* ---------- Footer (submit + accept) ---------- */

.csa-join-team__footer {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.csa-join-team .csa-contact-form__submit {
	background-color: #1B2A56;
	color: #FFFFFF;
	padding: 14px 36px;
	border-radius: 0;
	font-weight: 600;
}

.csa-join-team .csa-contact-form__submit:hover {
	background-color: #152144;
}

.csa-join-team__accept {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #2A3B7A;
	font-size: 13px;
	cursor: pointer;
}

.csa-join-team__accept input[type="checkbox"] {
	width: 14px;
	height: 14px;
	accent-color: #1B2A56;
}

.csa-join-team__accept a {
	color: inherit;
	text-decoration: underline;
}

/* ---------- Sent state ---------- */

.csa-join-team.is-sent .csa-join-team__grid,
.csa-join-team.is-sent .csa-join-team__footer {
	display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
	.csa-join-team__heading {
		font-size: 40px;
	}

	.csa-join-team__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}
