/* Office Boy Express — Formulario de contacto empresarial (frontend) */

.obxle-form-wrapper {
	--obxle-azul: #1B2A6B;
	--obxle-naranja: #FF7806;
	--obxle-naranja-hover: #FF9333;
	--obxle-negro: #1A1A1A;
	--obxle-gris-claro: #F5F5F5;
	--obxle-blanco: #FFFFFF;
	--obxle-font-heading: 'Poppins', 'Montserrat', sans-serif;
	--obxle-font-body: 'Open Sans', 'Roboto', sans-serif;

	max-width: 640px;
	margin: 0 auto;
	box-sizing: border-box;
}

.obxle-form-wrapper *,
.obxle-form-wrapper *::before,
.obxle-form-wrapper *::after {
	box-sizing: border-box;
}

.obxle-form {
	background-color: var(--obxle-blanco);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 24px rgba(27, 42, 107, 0.08);
	font-family: var(--obxle-font-body) !important;
}

.obxle-form-titulo {
	font-family: var(--obxle-font-heading) !important;
	font-weight: 700 !important;
	color: var(--obxle-azul) !important;
	font-size: 1.5rem !important;
	margin: 0 0 12px !important;
	line-height: 1.3 !important;
	padding: 0 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

.obxle-form-mensaje-global {
	padding: 14px 18px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-size: 0.95rem;
	line-height: 1.5;
}

.obxle-form-mensaje-global.obxle-mensaje-exito {
	background-color: #E9F7EF;
	color: #1E7A3D;
	border: 1px solid #B7E4C7;
}

.obxle-form-mensaje-global.obxle-mensaje-error {
	background-color: #FDEDED;
	color: #B3261E;
	border: 1px solid #F5C6C4;
}

.obxle-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.obxle-field {
	margin-bottom: 8px;
}

.obxle-field label {
	display: block;
	font-family: var(--obxle-font-heading) !important;
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--obxle-negro);
	margin-bottom: 4px;
}

.obxle-required {
	color: var(--obxle-naranja);
}

.obxle-help-text {
	display: block;
	font-size: 0.78rem;
	color: #6b6b6b;
	margin-top: 3px;
}

.obxle-error-text {
	display: block;
	font-size: 0.78rem;
	color: #B3261E;
	margin-top: 3px;
	min-height: 0;
}

.obxle-error-text:empty {
	display: none;
}

.obxle-form input[type="text"],
.obxle-form input[type="email"],
.obxle-form input[type="tel"],
.obxle-form select,
.obxle-form textarea {
	width: 100%;
	padding: 9px 13px;
	border: 1.5px solid #DDDDDD;
	border-radius: 10px;
	font-family: var(--obxle-font-body) !important;
	font-size: 0.92rem;
	color: var(--obxle-negro);
	background-color: var(--obxle-blanco);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.obxle-form input:focus,
.obxle-form select:focus,
.obxle-form textarea:focus {
	outline: none;
	border-color: var(--obxle-azul);
	box-shadow: 0 0 0 3px rgba(27, 42, 107, 0.12);
}

.obxle-form input.obxle-input-error,
.obxle-form select.obxle-input-error,
.obxle-form textarea.obxle-input-error {
	border-color: #B3261E;
}

.obxle-form textarea {
	resize: vertical;
	min-height: 68px;
}

.obxle-field-checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	font-family: var(--obxle-font-body) !important;
	font-size: 0.9rem;
	line-height: 1.5;
}

.obxle-field-checkbox input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: var(--obxle-naranja);
}

.obxle-field-checkbox a {
	color: var(--obxle-azul);
	font-weight: 600;
	text-decoration: underline;
}

.obxle-field-submit {
	margin-top: 28px;
	margin-bottom: 0;
}

.obxle-btn-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 15px 24px;
	background-color: var(--obxle-naranja);
	color: var(--obxle-blanco);
	border: none;
	border-radius: 999px;
	font-family: var(--obxle-font-heading) !important;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.obxle-btn-submit:hover {
	background-color: var(--obxle-naranja-hover);
}

.obxle-btn-submit:active {
	transform: scale(0.98);
}

.obxle-btn-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

@media (max-width: 480px) {
	.obxle-form {
		padding: 24px 20px;
		border-radius: 12px;
	}

	.obxle-form-titulo {
		font-size: 1.25rem;
	}
}

/* ---------------------------------------------- */
/* Formulario compacto de una sola vista          */
/* ---------------------------------------------- */

.obxle-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 16px;
}

.obxle-grid .obxle-field {
	margin-bottom: 0;
}

.obxle-field-full {
	grid-column: 1 / -1;
}

.obxle-form textarea {
	min-height: 64px;
}

.obxle-field-submit {
	margin-top: 12px;
	margin-bottom: 0;
}

@media (max-width: 560px) {
	.obxle-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------- */
/* Modal de éxito                                 */
/* ---------------------------------------------- */

.obxle-modal[hidden] {
	display: none !important;
}

.obxle-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.obxle-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(27, 42, 107, 0.55);
	backdrop-filter: blur(2px);
}

.obxle-modal-card {
	position: relative;
	background: var(--obxle-blanco);
	border-radius: 18px;
	max-width: 440px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	font-family: var(--obxle-font-body) !important;
	animation: obxle-modal-in 0.25s ease;
}

@keyframes obxle-modal-in {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.obxle-modal-cerrar {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.9);
	cursor: pointer;
	z-index: 2;
}

.obxle-modal-header {
	background: linear-gradient(135deg, #1E7A3D, #2FB457);
	color: #fff;
	text-align: center;
	padding: 30px 24px 24px;
	border-radius: 18px 18px 0 0;
}

.obxle-modal-check {
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	font-weight: 700;
	color: #fff;
}

.obxle-modal-titulo {
	font-family: var(--obxle-font-heading) !important;
	font-weight: 700 !important;
	font-size: 1.35rem !important;
	color: #fff !important;
	margin: 0 0 6px !important;
	padding: 0 !important;
	line-height: 1.25 !important;
}

.obxle-modal-subtitulo {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.92);
	margin: 0;
}

.obxle-modal-body {
	padding: 22px 26px 6px;
}

.obxle-modal-intro {
	font-family: var(--obxle-font-heading) !important;
	color: var(--obxle-azul);
	font-size: 1rem;
	margin: 0 0 10px;
}

.obxle-modal-lista {
	list-style: none;
	margin: 0;
	padding: 0;
}

.obxle-modal-lista li {
	position: relative;
	padding: 0 0 10px 26px;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--obxle-negro);
}

.obxle-modal-lista li::before {
	content: "\2022";
	position: absolute;
	left: 8px;
	top: -1px;
	color: var(--obxle-naranja);
	font-size: 1.3rem;
	line-height: 1.3;
}

.obxle-modal-acciones {
	padding: 10px 26px 26px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.obxle-modal-btn-wa,
.obxle-modal-btn-otra {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 20px;
	border-radius: 999px;
	font-family: var(--obxle-font-heading) !important;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.obxle-modal-btn-wa {
	background: #25D366;
	color: #fff;
	border: none;
}

.obxle-modal-btn-wa:hover {
	background: #1FB855;
}

.obxle-modal-btn-otra {
	background: var(--obxle-gris-claro);
	color: var(--obxle-negro);
	border: 1.5px solid #DDDDDD;
}

.obxle-modal-btn-otra:hover {
	border-color: var(--obxle-azul);
	color: var(--obxle-azul);
}

.obxle-modal-btn-wa:active,
.obxle-modal-btn-otra:active {
	transform: scale(0.98);
}
