/* ---- Fluent Forms skin: mirrors the prototype quote form ------------------- */
.lf-form .fluentform fieldset { display: flex; flex-direction: column; gap: 28px; margin: 0; padding: 0; border: 0; min-width: 0; }
.lf-form .fluentform .ff-el-group { margin: 0 !important; }
.lf-form .fluentform .ff_submit_btn_wrapper { margin: 0 !important; }
.lf-form .fluentform .ff-el-input--label { margin: 0; padding: 0; }
.lf-form .fluentform .ff-el-input--label label,
.lf-form .fluentform .ff-el-input--label legend {
	margin: 0; font-family: var(--lf-font); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--lf-ink);
}
.lf-form .fluentform .ff-el-is-required.asterisk-right label::after { content: "*"; margin-left: 2px; color: var(--lf-cta); }
.lf-form .lf-opt { font-weight: 400; color: var(--lf-gray-text); }
.lf-form .lf-f-legend .lf-legend, .lf-legend { margin: 0; font-size: 12px; line-height: 16px; color: var(--lf-gray-text); }
.lf-req { color: var(--lf-cta); }

/* Inputs: rounded-md border px-4 py-3 text-base, mt-2 under the label. */
.lf-form .fluentform .ff-el-input--content { margin-top: 8px; }
.lf-form .fluentform .ff-el-form-control {
	width: 100%; height: auto; margin: 0; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: var(--lf-paper);
	padding: 12px 16px; font-family: var(--lf-font); font-size: 16px; line-height: 24px; color: var(--lf-ink); box-shadow: none;
}
.lf-form .fluentform textarea.ff-el-form-control { min-height: 0; resize: vertical; }
.lf-form .fluentform .ff-el-form-control::placeholder { color: var(--lf-gray-text); opacity: 1; }
.lf-form .fluentform .ff-el-form-control:focus { outline: none; border-color: var(--lf-navy); box-shadow: 0 0 0 2px color-mix(in srgb, var(--lf-navy) 20%, transparent); }
.lf-form .fluentform .ff-el-is-error .ff-el-form-control { border-color: var(--lf-error); }
.lf-form .fluentform .error.text-danger { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--lf-error); }

/* Rows built by cotacao.js: Nome/Email (gap-6) and Origem -> Destino (gap-3). */
.lf-row2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.lf-row3 { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: end; }
@media (min-width: 640px) { .lf-row2 { grid-template-columns: 1fr 1fr; } .lf-row3 { grid-template-columns: 1fr auto 1fr; } }
.lf-row3__arrow { width: 20px; height: 20px; justify-self: center; transform: rotate(90deg); background: var(--lf-gray-text);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat; }
@media (min-width: 640px) { .lf-row3__arrow { transform: none; margin-bottom: 12px; } }
.lf-row3 .ff-el-group:has(.error) ~ .lf-row3__arrow { align-self: center; }

/* Cargo type: 3 equal chips (rounded-md border px-4 py-3 text-sm medium). */
.lf-form .lf-f-tipo .ff-el-input--content { margin-top: 12px; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .lf-form .lf-f-tipo .ff-el-input--content { grid-template-columns: repeat(3, 1fr); } }
.lf-form .lf-f-tipo .ff-el-form-check { margin: 0 !important; padding: 0; position: relative; display: block; }
.lf-form .lf-f-tipo .ff-el-form-check-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.lf-form .lf-f-tipo .ff-el-form-check-label {
	display: flex; align-items: center; justify-content: center; height: 100%; margin: 0; padding: 12px 16px;
	border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: var(--lf-paper); color: var(--lf-ink);
	text-align: center; font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; transition: color .15s, background-color .15s, border-color .15s;
}
.lf-form .lf-f-tipo .ff-el-form-check-label:hover { border-color: color-mix(in srgb, var(--lf-navy) 40%, transparent); }
.lf-form .lf-f-tipo .ff-el-form-check-label span { margin: 0; }
.lf-form .lf-f-tipo .ff-el-form-check.ff_item_selected .ff-el-form-check-label,
.lf-form .lf-f-tipo .ff-el-form-check-label:has(input:checked) { background: var(--lf-navy); border-color: var(--lf-navy); color: var(--lf-white); }
.lf-form .lf-f-tipo .ff-el-form-check-label:has(input:focus-visible) { outline: 2px solid var(--lf-navy); outline-offset: 2px; }

/* Submit + hint + states. */
.lf-form .fluentform .ff-btn-submit.lf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
	height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 9999px; background: var(--lf-cta) !important; color: var(--lf-white) !important;
	font-family: var(--lf-font); font-size: 14px; line-height: 20px; font-weight: 500; box-shadow: none; opacity: 1;
}
@media (min-width: 640px) { .lf-form .fluentform .ff-btn-submit.lf-btn { width: auto; } }
.lf-form .fluentform .ff-btn-submit.lf-btn:hover { background: color-mix(in srgb, var(--lf-cta) 90%, transparent) !important; }
.lf-form .fluentform .ff-btn-submit.lf-btn.is-sending::after {
	-webkit-mask: none; mask: none; background: none; border: 2px solid currentColor; border-right-color: transparent;
	border-radius: 50%; width: 14px; height: 14px; box-sizing: border-box; animation: lf-spin .8s linear infinite;
}
.lf-form .fluentform .ff-btn-submit.lf-btn.is-sending { flex-direction: row-reverse; }
@keyframes lf-spin { to { transform: rotate(360deg); } }
.lf-form .fluentform .ff_submit_btn_wrapper .ff-loader, .lf-form .fluentform .ff-btn-submit .ff_btn_loader { display: none !important; }
.lf-hint { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--lf-gray-text); }
.lf-fail { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--lf-error); }
.lf-form .ff-errors-in-stack { display: none !important; }

/* Success: px-6 py-16 centered, 56px bubble, H2 mt-6 text-2xl. */
.lf-success { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 24px; text-align: center; }
.lf-success__icon {
	width: 56px; height: 56px; border-radius: 50%; display: block;
	background: color-mix(in srgb, var(--lf-cta) 10%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23971e43' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/28px no-repeat;
}
.lf-success h2 { margin: 24px 0 0; font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: 0; }
.lf-success p { margin: 8px 0 0; color: var(--lf-gray-text); }
.lf-form .ff-message-success { border: 0; box-shadow: none; padding: 0; margin: 0; background: none; }

/* Match the prototype line boxes exactly. */
.lf-form .fluentform .ff-el-input--label, .lf-form .fluentform .ff-custom_html { line-height: 20px; font-size: 14px; }
.lf-form .fluentform .ff-custom_html { line-height: 16px; font-size: 12px; }
.lf-row3 { margin-bottom: 6px; }
.lf-form .fluentform textarea.ff-el-form-control { margin-bottom: 5px; }
.lf-form .fluentform .ff-el-group:not(.lf-f-tipo):not(.lf-f-legend) .ff-el-input--content { padding-bottom: 4px; }
.lf-form .lf-f-tipo .ff-el-input--content { padding-bottom: 2px; }
.lf-form .lf-f-tipo .ff-el-form-check { display: grid !important; line-height: 0; }
@media (max-width: 639px) { .lf-row3 { margin-bottom: 18px; } }
@media (max-width: 639px) { .lf-form .lf-f-tipo .ff-el-form-check-label { height: auto; } }
.lf-form .fluentform .lf-f-tipo .ff-el-form-check-label { margin: 0 !important; }
