.ufreight-se {
	--ufreight-primary: #c8102e;
	--ufreight-primary-dark: #9d0c24;
	--ufreight-primary-soft: #fff2f4;
	--ufreight-border: #efd0d6;
	--ufreight-muted: #62656b;
	--ufreight-ink: #25272b;
	max-width: 960px;
	margin: 28px auto;
	padding: 34px;
	border: 1px solid var(--ufreight-border);
	border-top: 6px solid var(--ufreight-primary);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 32px rgba(126, 11, 36, .10);
	color: var(--ufreight-ink);
}

.ufreight-se *, .ufreight-se *::before, .ufreight-se *::after { box-sizing: border-box; }
.ufreight-se__header { margin: 0 auto 30px; text-align: center; }
.ufreight-se__header h1 { margin: 0 0 10px; color: var(--ufreight-primary); font-size: clamp(1.8rem, 3.3vw, 2.55rem); font-weight: 800; line-height: 1.18; }
.ufreight-se h2, .ufreight-se h3, .ufreight-se h4 { color: var(--ufreight-primary); }
.ufreight-se__header p { max-width: 720px; margin: 0 auto; color: var(--ufreight-muted); line-height: 1.55; }
.ufreight-se__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ufreight-se__grid--packages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ufreight-se__field { margin: 0; }
.ufreight-se__field--full { grid-column: 1 / -1; }
.ufreight-se label { display: block; color: #272a30; font-size: .95rem; font-weight: 700; }
.ufreight-se input, .ufreight-se select, .ufreight-se textarea { width: 100%; margin-top: 7px; border: 1px solid #cfb9be; border-radius: 7px; padding: 10px 12px; color: var(--ufreight-ink); background: #fff; font: inherit; font-size: 16px; line-height: 1.4; transition: border-color .18s ease, box-shadow .18s ease; }
.ufreight-se input, .ufreight-se select { min-height: 48px; }
.ufreight-se select { height: 48px; padding: 0 38px 0 12px; line-height: normal; appearance: auto; -webkit-appearance: menulist; }
.ufreight-se select option { font-size: 16px; line-height: 1.4; }
.ufreight-se textarea { min-height: 110px; resize: vertical; }
.ufreight-se input:focus, .ufreight-se select:focus, .ufreight-se textarea:focus { outline: 0; border-color: var(--ufreight-primary); box-shadow: 0 0 0 3px rgba(200, 16, 46, .14); }
.ufreight-se select:disabled { background: #f6f3f4; cursor: not-allowed; }
.ufreight-se__packages { margin: 30px 0; }
.ufreight-se__section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ufreight-se__section-heading h2 { margin: 0; font-size: 1.2rem; }
.ufreight-se__package-group { position: relative; margin: 0 0 14px; padding: 20px; border: 1px solid var(--ufreight-border); border-radius: 9px; background: #fffafb; }
.ufreight-se__package-group legend { padding: 0 7px; color: var(--ufreight-primary); font-weight: 800; }
.ufreight-se__remove-package { position: absolute; top: 12px; right: 12px; border: 0; color: var(--ufreight-primary); background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.ufreight-se__button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid transparent; border-radius: 7px; padding: 10px 18px; font-weight: 800; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.ufreight-se__button:disabled { cursor: wait; opacity: .65; }
.ufreight-se__button--primary { color: #fff; background: var(--ufreight-primary); }
.ufreight-se__button--primary:hover, .ufreight-se__button--primary:focus { background: var(--ufreight-primary-dark); }
.ufreight-se__button--secondary { color: var(--ufreight-primary); background: #fff; border-color: var(--ufreight-primary); }
.ufreight-se__button--secondary:hover, .ufreight-se__button--secondary:focus { color: #fff; background: var(--ufreight-primary); }
.ufreight-se__result { margin-top: 26px; padding: 26px; border: 1px solid var(--ufreight-border); border-radius: 10px; background: #fffafb; }
.ufreight-se__result-title { margin: 0 0 26px; padding-bottom: 18px; border-bottom: 2px solid var(--ufreight-border); font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.35; }
.ufreight-se__result-title #ufreight-total { color: var(--ufreight-primary-dark); white-space: nowrap; }
.ufreight-se__result h3 { margin: 24px 0 10px; font-size: 1.18rem; }
.ufreight-se__result h4 { margin: 0 0 10px; color: var(--ufreight-ink); font-size: 1rem; }
.ufreight-se__weight-details { margin: 0; padding: 15px 18px 15px 34px; border: 1px solid #f0d9dd; border-radius: 7px; background: #fff; line-height: 1.65; }
.ufreight-se__weight-details li + li { margin-top: 8px; }
.ufreight-se__weight-total { margin: 14px 0 0; color: var(--ufreight-primary-dark); font-size: 1.05rem; }
.ufreight-se__remarks, .ufreight-se__notes { margin: 0; padding: 14px 16px; border-left: 4px solid var(--ufreight-primary); background: #fff; color: #3d3f44; line-height: 1.65; white-space: pre-line; }
.ufreight-se__notes { color: var(--ufreight-muted); }
.ufreight-se__modal[hidden] { display: none; }
.ufreight-se__modal { position: fixed; z-index: 99999; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; background: rgba(57, 4, 14, .64); }
.ufreight-se__modal-dialog { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; border-top: 5px solid var(--ufreight-primary); border-radius: 12px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.ufreight-se__modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ufreight-se__modal-heading h2 { margin: 0 0 9px; font-size: 1.45rem; }
.ufreight-se__modal-close { width: 36px; height: 36px; flex: 0 0 36px; border: 0; border-radius: 50%; color: var(--ufreight-primary); background: var(--ufreight-primary-soft); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.ufreight-se__modal-close:hover, .ufreight-se__modal-close:focus { color: #fff; background: var(--ufreight-primary); }
.ufreight-se__intro { margin: 0 0 20px; color: var(--ufreight-muted); line-height: 1.55; }
.ufreight-se__loading { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 16px 20px; border: 1px solid #efc7cf; border-radius: 8px; color: var(--ufreight-primary-dark); background: var(--ufreight-primary-soft); font-weight: 800; }
.ufreight-se__spinner { width: 20px; height: 20px; flex: 0 0 20px; border: 3px solid rgba(200, 16, 46, .20); border-top-color: var(--ufreight-primary); border-radius: 50%; animation: ufreight-se-spin .8s linear infinite; }
@keyframes ufreight-se-spin { to { transform: rotate(360deg); } }
.ufreight-se__message { margin-top: 16px; padding: 12px 14px; border-radius: 7px; }
.ufreight-se__message--error { color: #7a1427; background: #fff0f2; border: 1px solid #f0b8c2; }
.ufreight-se__message--success { color: #2c5b31; background: #eef8ef; border: 1px solid #a8d7ad; }
.ufreight-se__honeypot { position: absolute !important; overflow: hidden !important; width: 1px !important; height: 1px !important; clip: rect(1px, 1px, 1px, 1px); }

@media (max-width: 680px) {
	.ufreight-se { margin: 16px auto; padding: 22px; }
	.ufreight-se__grid, .ufreight-se__grid--packages { grid-template-columns: 1fr; }
	.ufreight-se__section-heading { align-items: flex-start; flex-direction: column; }
	.ufreight-se__button { width: 100%; }
	.ufreight-se__modal { padding: 10px; }
	.ufreight-se__modal-dialog { max-height: calc(100vh - 20px); padding: 20px; }
}

.ufreight-se__tailored-route { grid-column: 1 / -1; padding: 18px; border: 1px dashed var(--ufreight-primary); border-radius: 9px; background: #fffafb; }
.ufreight-se__tailored-route .ufreight-se__grid { margin-bottom: 12px; }
.ufreight-se__route-notice { display: grid; gap: 5px; margin: 20px 0 0; padding: 15px 17px; border: 1px solid var(--ufreight-primary); border-left: 5px solid var(--ufreight-primary); border-radius: 8px; color: #6a1121; background: var(--ufreight-primary-soft); line-height: 1.55; }
.ufreight-se__text-button { margin-top: 2px; padding: 0; border: 0; color: var(--ufreight-primary-dark); background: transparent; font: inherit; font-size: .94rem; font-weight: 800; text-decoration: underline; cursor: pointer; }
.ufreight-se__text-button:hover, .ufreight-se__text-button:focus { color: var(--ufreight-primary); }
#ufreight-tailored-result .ufreight-se__remarks { margin-bottom: 14px; }

@media (max-width: 680px) {
	.ufreight-se__tailored-route { padding: 15px; }
}
