/* ==========================================================================
   FEP Area Logística Form — Styles
   Matches Figma: Polar-Franquiciados-Prog--copia- node 2351:103
   Base: 1440px canvas
   ========================================================================== */

/* --- Reset WordPress block constraints --- */
.fep-page-area-logistica-form {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* --- Kill wpautop-injected <br> and empty <p> tags --- */
.fep-al-page br,
.fep-alform p:empty {
	display: none;
}

/* --- Page wrapper --- */
.fep-al-page {
	box-sizing: border-box;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 40px 60px;
}

.fep-al-page *,
.fep-al-page *::before,
.fep-al-page *::after {
	box-sizing: border-box;
}

/* --- Back link --- */
.fep-al-page__back {
	text-align: center;
	margin-bottom: clamp(20px, 2.08vw, 30px);
}

.fep-al-page__back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--wp--preset--font-family--nunito-sans, 'Nunito Sans', sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--wp--preset--color--azul-polar, #003B71);
	text-decoration: none;
	cursor: pointer;
}

.fep-al-page__back-link:hover {
	text-decoration: underline;
}

.fep-al-page__back-link img {
	width: 5px;
	height: 8px;
}

/* --- Main title --- */
.fep-al-page__title {
	font-family: Inter, sans-serif;
	font-weight: 800;
	font-size: clamp(32px, 4.86vw, 70px);
	line-height: 1.1;
	letter-spacing: -1.4px;
	color: var(--wp--preset--color--azul-polar, #003B71);
	text-align: center;
	max-width: 1176px;
	margin: 0 auto clamp(12px, 1.25vw, 18px);
	padding: 0;
}

.fep-al-page__subtitle {
	font-family: Inter, sans-serif;
	font-weight: 800;
	font-size: clamp(20px, 2.22vw, 32px);
	line-height: 1.3;
	color: var(--wp--preset--color--azul-polar, #003B71);
	text-align: center;
	max-width: 1176px;
	margin: 0 auto clamp(40px, 4.17vw, 60px);
	padding: 0;
}

/* --- Error summary --- */
.fep-al-page__errors {
	max-width: 954px;
	margin: 0 auto 24px;
	padding: 16px 20px;
	background-color: #FFF0F0;
	border: 1px solid #E53E3E;
	border-radius: 4px;
	color: #C53030;
	font-family: Inter, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.fep-al-page__errors ul {
	margin: 8px 0 0;
	padding-left: 20px;
	list-style: disc;
}

.fep-al-page__errors p {
	margin: 0;
	font-weight: 600;
}

/* --- Form container --- */
.fep-alform {
	max-width: 954px;
	margin: 0 auto;
}

/* --- Rows --- */
.fep-alform .fep-alform__row {
	margin-bottom: 20px;
}

.fep-alform .fep-alform__row--2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

/* --- Fields --- */
.fep-alform .fep-alform__field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* --- Labels --- */
.fep-alform .fep-alform__field > label {
	font-family: Inter, sans-serif;
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.6px;
	color: #565656;
	margin-bottom: 5px;
	line-height: 1.25;
}

.fep-alform .fep-alform__req {
	color: var(--wp--preset--color--azul-claro, #1895F9);
}

/* --- Inputs, Selects --- */
.fep-alform input[type="text"],
.fep-alform input[type="email"],
.fep-alform select {
	width: 100%;
	height: 39px;
	min-height: 39px;
	max-height: 39px;
	background-color: #F6F6F6;
	border: 1px solid #CBCBCB;
	border-radius: 4px;
	padding: 0 13px;
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #333;
	outline: none;
	transition: border-color 0.2s ease;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	line-height: 37px;
	margin: 0;
}

.fep-alform textarea {
	width: 100%;
	min-height: 260px;
	background-color: #F6F6F6;
	border: 1px solid #CBCBCB;
	border-radius: 4px;
	padding: 12px 13px;
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #333;
	outline: none;
	transition: border-color 0.2s ease;
	resize: vertical;
	margin: 0;
	line-height: 1.5;
}

.fep-alform input[type="text"]::placeholder,
.fep-alform input[type="email"]::placeholder,
.fep-alform textarea::placeholder {
	color: #A4A4A4;
}

.fep-alform input[type="text"]:focus,
.fep-alform input[type="email"]:focus,
.fep-alform select:focus,
.fep-alform textarea:focus {
	border-color: var(--wp--preset--color--azul-claro, #1895F9);
	box-shadow: 0 0 0 2px rgba(24, 149, 249, 0.15);
}

/* --- Error state --- */
.fep-alform .fep-alform__field--error input,
.fep-alform .fep-alform__field--error select,
.fep-alform .fep-alform__field--error textarea {
	border-color: #E53E3E !important;
}

.fep-alform .fep-alform__field-error {
	font-family: Inter, sans-serif;
	font-size: 12px;
	color: #E53E3E;
	margin-top: 4px;
	line-height: 1.3;
}

/* --- Select dropdown arrow --- */
.fep-alform select {
	background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23565656' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	background-size: 10px 6px;
	padding-right: 32px;
	cursor: pointer;
}

.fep-alform select:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* --- Date group (3 selects side-by-side) --- */
.fep-alform .fep-alform__date-group {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 10px;
}

.fep-alform .fep-alform__field--date .fep-alform__field-error {
	grid-column: 1 / -1;
}

/* --- Submit button --- */
.fep-alform .fep-alform__submit {
	margin-top: 24px;
}

.fep-alform .fep-alform__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 95px;
	height: 42px;
	padding: 0 20px;
	background-color: var(--wp--preset--color--azul-claro, #1895F9);
	color: var(--wp--preset--color--gris-claro, #F3F3F3);
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: -0.28px;
	text-transform: uppercase;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	line-height: 1;
}

.fep-alform .fep-alform__btn:hover {
	background-color: var(--wp--preset--color--azul-polar, #003B71);
}

.fep-alform .fep-alform__btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.fep-alform__btn-spinner {
	animation: fep-alspin 1s linear infinite;
}

.fep-alform__btn-spinner svg {
	display: block;
}

@keyframes fep-alspin {
	to { transform: rotate(360deg); }
}

/* --- Success message --- */
.fep-al-page__success {
	max-width: 954px;
	margin: 60px auto;
	padding: 40px;
	text-align: center;
	background-color: #F0FFF4;
	border: 1px solid #38A169;
	border-radius: 8px;
}

.fep-al-page__success h2 {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 28px;
	font-weight: 600;
	color: var(--wp--preset--color--azul-polar, #003B71);
	margin: 0 0 12px;
}

.fep-al-page__success p {
	font-family: Inter, sans-serif;
	font-size: 16px;
	color: #565656;
	margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
	.fep-al-page {
		padding: 0 20px 40px;
	}

	.fep-al-page__back-link {
		font-size: 14px;
		margin-bottom: 16px;
	}

	.fep-al-page__title {
		font-size: 28px;
		letter-spacing: -0.56px;
		margin-bottom: 12px;
	}

	.fep-al-page__subtitle {
		font-size: 18px;
		margin-bottom: 32px;
	}

	.fep-alform .fep-alform__row--2col {
		grid-template-columns: 1fr;
	}

	.fep-alform textarea {
		min-height: 180px;
	}

	.fep-alform .fep-alform__btn {
		width: 100%;
	}
}
