/* The two site forms ([openmaps_form_contato] and [openmaps_form_comercial]) share every rule here.
   Controls and buttons carry !important because the theme and Elementor style bare inputs and
   buttons globally; the form itself has no background, it sits on whatever section holds it. */

.omf{container-type:inline-size;width:100%}
.omf-form{position:relative;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;width:100%;margin:0;padding:0;background:none;color:#4d4d4d;font-family:inherit}
.omf-form.has-labels{row-gap:18px}
.omf-field{position:relative;min-width:0;margin:0}
.omf-field[hidden],.omf-error[hidden],.omf-status[hidden]{display:none!important}

/* Grid. Measured on the form's own width, not the screen's, so an Elementor column narrower than
   the page lays out by its own size. Three steps:
     - under 400px, one field per row;
     - from 400px, two per row; the name ("lead") and the country keep a row of their own, and when
       the division shows, segment and division share one row and the unit takes the next;
     - from 600px, up to three per row.
   Twelve columns rather than six so the two radio groups can split a row unevenly (see below). */
.omf-field,.omf-heading,.omf-actions{grid-column:span 12}
@container (min-width:400px){
	.omf-col--half,.omf-col--third,.omf-col--place{grid-column:span 6}
	.omf-form.has-division .omf-field--unidade{grid-column:span 12}
	/* "Loja / Quiosque" needs less room than "Marca Própria / Franquia"; 5 + 7 keeps both on one line. */
	.omf-field--formato{grid-column:span 5}
	.omf-field--modelo{grid-column:span 7}
}
@container (min-width:600px){
	.omf-col--third,.omf-col--lead{grid-column:span 4}
	.omf-form.has-division .omf-col--place{grid-column:span 4}
	.omf-field--formato,.omf-field--modelo{grid-column:span 6}
}

.omf-heading{margin:6px 0 -4px!important;padding:0!important;color:#333!important;font-size:15px!important;font-weight:700!important;letter-spacing:.01em;line-height:1.2!important;text-transform:uppercase!important}

/* Labels, when the form shows them (labels="sim"). */
.omf-form .omf-label{display:block!important;float:none!important;width:auto!important;margin:0 0 6px 2px!important;padding:0!important;border:0!important;color:#333!important;font-family:inherit!important;font-size:14px!important;font-weight:600!important;line-height:1.3!important;text-transform:none!important;letter-spacing:0!important}

/* Text inputs, selects and the textarea. */
.omf-form .omf-control{display:block!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;height:46px!important;min-height:46px!important;margin:0!important;padding:0 16px!important;border:1px solid #b3b3b3!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;color:#4d4d4d!important;font-family:inherit!important;font-size:15px!important;font-weight:400!important;line-height:1.3!important;outline:0!important;-webkit-appearance:none!important;appearance:none!important;transition:border-color .15s ease,box-shadow .15s ease!important}
.omf-form .omf-control:hover{border-color:#8c8c8c!important}
.omf-form .omf-control:focus{border-color:#4d4d4d!important;box-shadow:0 0 0 3px rgba(77,77,77,.14)!important}
.omf-form .omf-control--textarea{height:auto!important;min-height:120px!important;padding:12px 16px!important;resize:vertical!important}
.omf-form .omf-control--select{overflow:hidden!important;padding-right:42px!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M0 0h12L6 8z'/%3E%3C/svg%3E") no-repeat right 16px center/12px 8px!important;cursor:pointer!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.omf-form .omf-control--select option{color:#4d4d4d}
/* A required select still on its empty first option reads as a placeholder. */
.omf-form .omf-control--select:invalid,.omf-form .omf-control--select option[value=""]{color:#6e6e6e!important}
.omf-form .omf-control:disabled{border-color:#d0d0d0!important;background-color:#fafafa!important;color:#9a9a9a!important;cursor:not-allowed!important;opacity:1!important}

/* A unit written inside the field ("m²"), so the visitor types only the number. */
.omf-suffixed{position:relative;display:block}
.omf-form .omf-control--suffixed{padding-right:52px!important}
.omf-suffix{position:absolute;top:50%;right:16px;transform:translateY(-50%);color:#6e6e6e;font-size:15px;line-height:1;pointer-events:none}

/* Placeholders. One rule per prefix: a browser drops a whole selector list it cannot parse. */
.omf-form .omf-control::placeholder{color:#6e6e6e!important;opacity:1!important}
.omf-form .omf-control::-webkit-input-placeholder{color:#6e6e6e!important;opacity:1!important}
.omf-form .omf-control::-moz-placeholder{color:#6e6e6e!important;opacity:1!important}
.omf-form .omf-control:-ms-input-placeholder{color:#6e6e6e!important}

/* Radio groups: "Loja / Quiosque" and "Marca Própria / Franquia", side by side from 400px. */
.omf-choices{min-width:0;margin:0!important;padding:0!important;border:0!important}
.omf-choices__options{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;min-height:24px;padding-top:4px}
.omf-form.has-labels .omf-choices__options{padding-top:2px}
.omf-choice{display:inline-flex!important;align-items:center;gap:7px;margin:0!important;color:#4d4d4d;font-size:15px;line-height:1.2;white-space:nowrap;cursor:pointer}
.omf-form .omf-choice input[type="radio"]{position:relative!important;flex:none!important;width:16px!important;height:16px!important;margin:0!important;padding:0!important;border:1.5px solid #6e6e6e!important;border-radius:50%!important;background:#fff!important;box-shadow:none!important;-webkit-appearance:none!important;appearance:none!important;cursor:pointer!important}
.omf-form .omf-choice input[type="radio"]:checked{border-color:#4d4d4d!important;background:#fff radial-gradient(circle,#4d4d4d 0 3.5px,transparent 4px)!important}
.omf-form .omf-choice input[type="radio"]:focus-visible{outline:2px solid #4d4d4d!important;outline-offset:2px!important}

/* LGPD consent, right above the submit button. */
.omf-form .omf-consent{display:flex!important;align-items:flex-start;gap:10px;margin:0!important;padding:0!important;color:#4d4d4d!important;font-family:inherit!important;font-size:13px!important;font-weight:400!important;line-height:1.45!important;text-transform:none!important;letter-spacing:0!important;cursor:pointer}
.omf-form .omf-consent input[type="checkbox"]{position:relative!important;flex:none!important;width:18px!important;height:18px!important;margin:0!important;padding:0!important;border:1.5px solid #6e6e6e!important;border-radius:4px!important;background:#fff!important;box-shadow:none!important;-webkit-appearance:none!important;appearance:none!important;cursor:pointer!important}
.omf-form .omf-consent input[type="checkbox"]:checked{border-color:#4d4d4d!important;background:#4d4d4d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 4.5l3.5 3.5L11 1'/%3E%3C/svg%3E") no-repeat center/12px 9px!important}
.omf-form .omf-consent input[type="checkbox"]:focus-visible{outline:2px solid #4d4d4d!important;outline-offset:2px!important}
.omf-form .omf-consent a{color:inherit!important;font-weight:600!important;text-decoration:underline!important}
.omf-form .omf-consent a:hover{color:#333!important}

/* Errors. */
.omf-form .omf-field.is-invalid .omf-control{border-color:#c62828!important}
.omf-form .omf-field.is-invalid .omf-control:focus{box-shadow:0 0 0 3px rgba(198,40,40,.14)!important}
.omf-form .omf-field.is-invalid .omf-choice input[type="radio"],.omf-form .omf-field.is-invalid .omf-consent input[type="checkbox"]{border-color:#c62828!important}
.omf-error{display:block;margin:6px 0 0 4px;color:#c62828;font-size:13px;line-height:1.3}
.omf-field--aceite .omf-error{margin-left:28px}

/* Submit. */
.omf-actions{margin-top:4px}
.omf-form .omf-submit{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;box-sizing:border-box!important;width:100%!important;height:46px!important;margin:0!important;padding:0 24px!important;border:0!important;border-radius:12px!important;background:#e6ff29!important;box-shadow:none!important;color:#4d4d4d!important;font-family:inherit!important;font-size:16px!important;font-weight:700!important;letter-spacing:0!important;line-height:1!important;text-decoration:none!important;text-transform:none!important;cursor:pointer!important;transition:background-color .15s ease!important}
.omf-form .omf-submit:hover{background:#d8f214!important;color:#333!important}
.omf-form .omf-submit:focus-visible{outline:2px solid #4d4d4d!important;outline-offset:2px!important}
.omf-form .omf-submit:disabled{background:#eefc8a!important;color:#6e6e6e!important;cursor:progress!important}
.omf-spinner{display:none;width:16px;height:16px;box-sizing:border-box;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:omf-spin .7s linear infinite}
.omf-form.is-sending .omf-spinner{display:inline-block}
@keyframes omf-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.omf-spinner{animation-duration:1.8s}}

.omf-status{margin:12px 0 0!important;padding:12px 16px;border-radius:12px;font-size:14px;line-height:1.4}
.omf-status.is-success{background:#eef8e8;color:#2e6b12}
.omf-status.is-error{background:#fdecec;color:#b3261e}

/* Out of sight for people, still in the form for bots. */
.omf-trap{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}
.omf-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
