/*
 * Open Maps - Formularios Contact Form 7
 * Replica el diseno de los formularios NEX-Forms (reemplazados el 2026-09-26).
 * Variantes: .om-form--line (Contactenos) y .om-form--boxed (resto).
 */

.om-form {
	font-family: Montserrat, sans-serif;
	color: #5b5b5b;
	margin-top: 20px;
}
.om-form *,
.om-form *::before,
.om-form *::after { box-sizing: border-box; }

.om-form p { margin: 0; padding: 0; }
.om-form br { display: none; }
.om-form .om-intro br,
.om-form .om-text br { display: inline; }

/* ---------- Rejilla (equivale a col-sm-4/6/8/12) ---------- */
.om-form .om-row {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 15px;
	align-items: end;
}
.om-form input.wpcf7-submit:disabled {
	opacity: .55;
	cursor: not-allowed;
}
.om-form .c12 { grid-column: span 12; }
.om-form .c8  { grid-column: span 8; }
.om-form .c6  { grid-column: span 6; }
.om-form .c4  { grid-column: span 4; }
.om-form .c8.om-center { grid-column: 3 / span 8; }
@media (max-width: 767px) {
	.om-form .om-row > * { grid-column: 1 / -1 !important; }
}

.om-form .om-field { margin-bottom: 15px; }
.om-form .wpcf7-form-control-wrap { display: block; }

/* ---------- Titulos y textos ---------- */
.om-form .om-title {
	font: 700 38px/47px Montserrat, sans-serif;
	color: #52eac8;
	text-align: center;
	margin: 0 0 15px;
	padding: 0;
}
.om-form .om-title--dark { color: #24b692; }
.om-form .om-title--plain { color: inherit; }
.om-form .om-intro {
	font: 600 14px/23px Montserrat, sans-serif;
	color: #bcbcbc;
	text-align: center;
	margin: 0 0 15px;
}
.om-form .om-intro--grey { color: #808080; }
.om-form .om-text {
	font: 400 14px/22px Montserrat, sans-serif;
	color: #5b5b5b;
	text-align: center;
	margin: 0 0 15px;
}
.om-form hr.om-hr {
	border: 0;
	border-top: 1px solid #ddd;
	margin: 0 0 15px;
	height: 0;
}

/* ---------- Etiquetas ---------- */
.om-form .om-label {
	display: block;
	font: 400 17px/22px Montserrat, sans-serif;
	color: #808080;
	margin: 0;
}
.om-form .om-label--16 { font-size: 16px; }
.om-form .om-sub {
	display: block;
	font: italic 11px/22px Arial, Helvetica, sans-serif;
	color: #999;
	margin: 0 0 2px;
}

/* ---------- Campos: variante con bordes (boxed) ---------- */
.om-form--boxed input[type="text"],
.om-form--boxed input[type="email"],
.om-form--boxed input[type="tel"],
.om-form--boxed input[type="date"],
.om-form--boxed input[type="time"],
.om-form--boxed input[type="number"],
.om-form--boxed select,
.om-form--boxed textarea {
	display: block;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 3px;
	box-shadow: none;
	font: 400 14px/1.42857 Arial, Helvetica, sans-serif;
	color: #5b5b5b;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.om-form--boxed select {
	font-family: Montserrat, sans-serif;
	-webkit-appearance: none;
	appearance: none;
	padding-right: 32px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235b5b5b' d='M0 0h10L5 6z'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.om-form--boxed textarea {
	height: auto;
	min-height: 100px;
	resize: vertical;
}
.om-form--boxed input::placeholder,
.om-form--boxed textarea::placeholder { color: #aaa; opacity: 1; }

.om-form input:focus,
.om-form select:focus,
.om-form textarea:focus {
	outline: 0;
	border-color: #66afe9;
	box-shadow: 0 0 8px rgba(102, 175, 233, .6);
}

/* ---------- Campos: variante linea inferior (Contactenos) ---------- */
.om-form--line .om-field { margin-bottom: 20px; }
.om-form--line input[type="text"],
.om-form--line input[type="email"],
.om-form--line input[type="tel"],
.om-form--line textarea {
	display: block;
	width: 100%;
	height: 37px;
	margin: 0;
	padding: 5px 10px;
	background: #fff;
	border: 0;
	border-bottom: 3px solid #ddd;
	border-radius: 0;
	box-shadow: none;
	font: 400 14px/22px Montserrat, sans-serif;
	color: #78788c;
}
.om-form--line textarea {
	height: 72px;
	border-bottom-color: #edf2ff;
	resize: vertical;
}
.om-form--line input::placeholder,
.om-form--line textarea::placeholder { color: #5774bd; opacity: 1; }
.om-form--line input:focus,
.om-form--line textarea:focus {
	box-shadow: none;
	border-bottom-color: #66afe9;
}

/* ---------- Calificacion con estrellas ---------- */
.om-form .om-rating { text-align: center; margin: 0 0 20px; }
.om-form .om-rating__title {
	display: block;
	font: 400 14px/22px Montserrat, sans-serif;
	color: #5b5b5b;
	margin-bottom: 10px;
}
.om-form .om-rating__sub {
	display: block;
	font: italic 9px/16px Arial, Helvetica, sans-serif;
	color: #999;
	margin-bottom: 2px;
}
.om-form .om-stars .wpcf7-radio,
.om-form .om-stars .wpcf7-checkbox {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 3px;
}
.om-form .om-stars .wpcf7-list-item { margin: 0; }
.om-form .om-stars label { cursor: pointer; margin: 0; }
.om-form .om-stars input[type="radio"],
.om-form .om-stars input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}
.om-form .om-stars .wpcf7-list-item-label {
	font-size: 0;
	display: inline-block;
	line-height: 1;
}
.om-form .om-stars .wpcf7-list-item-label::before {
	content: "☆";
	font: 400 28px/1 Arial, sans-serif;
	color: #bbb;
	transition: color .15s ease;
}
.om-form .om-stars .wpcf7-list-item:hover .wpcf7-list-item-label::before,
.om-form .om-stars .wpcf7-list-item:hover ~ .wpcf7-list-item .wpcf7-list-item-label::before,
.om-form .om-stars .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label::before,
.om-form .om-stars .wpcf7-list-item:has(input:checked) ~ .wpcf7-list-item .wpcf7-list-item-label::before {
	content: "★";
	color: #ffc107;
}
.om-form .om-stars input:focus-visible + .wpcf7-list-item-label::before { outline: 2px solid #66afe9; }

/* ---------- Aceptacion de terminos ---------- */
.om-form .om-accept { text-align: center; margin: 5px 0 20px; }
.om-form .om-accept .wpcf7-list-item { margin: 0; }
.om-form .om-accept label {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	font: 400 14px/18px Montserrat, sans-serif;
	color: #999;
	cursor: pointer;
	text-align: left;
	max-width: 420px;
}
.om-form .om-accept input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #52eac8;
}

/* ---------- Archivo adjunto ---------- */
.om-form .om-file input[type="file"] {
	display: block;
	width: 100%;
	padding: 8px 0;
	font: 400 14px Montserrat, sans-serif;
	color: #808080;
	border: 0;
	border-bottom: 1px solid #ddd;
	background: transparent;
}
.om-form .om-file input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 8px 16px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: #f2f2f2;
	color: #5b5b5b;
	font: 400 13px Montserrat, sans-serif;
	cursor: pointer;
}

/* ---------- Botones ---------- */
.om-form .om-actions {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin: 10px 0 5px;
	flex-wrap: wrap;
}
.om-form .om-actions--split { justify-content: space-between; }
.om-form .om-actions--split .om-btn { flex: 1 1 0; }

.om-form input.wpcf7-submit,
.om-form button.om-btn {
	display: inline-block;
	width: auto;
	min-width: 188px;
	height: auto;
	margin: 0;
	padding: 10px 20px;
	background: #f2f2f2;
	border: 2px solid #5b5b5b;
	border-radius: 3px;
	box-shadow: none;
	font: 400 14px/20px Montserrat, sans-serif;
	color: #5b5b5b;
	text-transform: none;
	letter-spacing: normal;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.om-form input.wpcf7-submit:hover,
.om-form button.om-btn:hover {
	background: #5b5b5b;
	color: #fff;
}
.om-form .om-btn-wide input.wpcf7-submit { width: 66.6667%; }
.om-form .om-btn-third input.wpcf7-submit { width: 33.3333%; }
@media (max-width: 767px) {
	.om-form .om-btn-wide input.wpcf7-submit,
	.om-form .om-btn-third input.wpcf7-submit { width: 100%; }
}

/* Contactenos y ¿Quieres mas?: boton ancho y suave */
.om-form--line input.wpcf7-submit,
.om-form--soft input.wpcf7-submit {
	width: 100%;
	border: 1px solid #ddd;
	border-radius: 4px;
}
.om-form--line input.wpcf7-submit:hover,
.om-form--soft input.wpcf7-submit:hover {
	background: #e6e6e6;
	color: #5b5b5b;
}

.om-form .wpcf7-spinner { display: block; margin: 10px auto 0; }

/* ---------- Pasos (multistep) ---------- */
.om-form .om-step[hidden] { display: none !important; }
.om-form .om-cond[hidden] { display: none !important; }

/* ---------- Validacion ---------- */
body .om-form .wpcf7-not-valid-tip,
.om-form .om-tip {
	display: block !important;
	position: static !important;
	left: auto !important;
	top: auto !important;
	width: auto !important;
	height: auto !important;
	text-indent: 0 !important;
	transform: none !important;
	background: none !important;
	padding: 0 !important;
	margin-top: 4px;
	font: 400 12px/16px Montserrat, sans-serif;
	color: #dc3232;
}
.om-form .wpcf7-not-valid-tip::before,
.om-form .wpcf7-not-valid-tip::after { display: none !important; content: none !important; }
.om-form .wpcf7-not-valid,
.om-form .om-invalid { border-color: #dc3232 !important; }

/* ---------- Mensajes de respuesta ---------- */
.om-form ~ .wpcf7-response-output,
.wpcf7 form .om-form + .wpcf7-response-output {
	margin: 15px 0 0;
	padding: 10px 15px;
	border-radius: 3px;
	font: 400 14px/22px Montserrat, sans-serif;
	text-align: center;
}
.wpcf7 form.sent .om-form .om-body { display: none; }
.wpcf7 form.sent .wpcf7-response-output {
	border: 0 !important;
	margin: 20px 0 !important;
	padding: 20px 0 !important;
	font: 700 14px/22px Montserrat, sans-serif !important;
	color: #5b5b5b;
	text-align: center;
}
.wpcf7 form.sent .om-form--line ~ .wpcf7-response-output,
.wpcf7 form.sent .om-form--soft ~ .wpcf7-response-output {
	font-weight: 400 !important;
}
.wpcf7 form.sent .om-form--check ~ .wpcf7-response-output::before {
	content: "";
	display: block;
	width: 50px;
	height: 50px;
	margin: 0 auto 15px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%238bc34a' d='M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm-28 369L108 257l35-35 85 85 141-141 35 35-176 176z'/%3E%3C/svg%3E") no-repeat center / contain;
}
