/* LBC Reklamationsformulär */
.lbc-rek {
	--lbc-heading: #000000;
	--lbc-green: #078043;
	--lbc-green-dark: #056a37;
	--lbc-border: #ced4da;
	--lbc-addon: #e9ecef;
	--lbc-text: #333;
	--lbc-muted: #6c757d;
	--lbc-error: #c0392b;
	--lbc-radius: 4px;
	--lbc-h: 38px;

	max-width: 780px;
	color: var(--lbc-text);
	font-family: "neue-aachen-pro", Helvetica, Arial, sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.4;
}

.lbc-rek *,
.lbc-rek *::before,
.lbc-rek *::after { box-sizing: border-box; }

.lbc-rek [hidden] { display: none !important; }

/* Rubriker */
.lbc-rek .lbc-rek__heading {
	margin: 34px 0 10px;
	padding: 0;
	color: var(--lbc-heading);
	font-family: "neue-aachen-pro", Helvetica, Arial, sans-serif !important;
	font-weight: 300;
	font-size: 36px;
	line-height: 1.15;
	text-transform: none;
	letter-spacing: 0;
}
.lbc-rek .lbc-rek__heading:first-of-type { margin-top: 0; }

/* Grid */
.lbc-rek .lbc-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 30px;
	row-gap: 22px;
}
.lbc-rek .lbc-col-3  { grid-column: span 3; }
.lbc-rek .lbc-col-4  { grid-column: span 4; }
.lbc-rek .lbc-col-6  { grid-column: span 6; }
.lbc-rek .lbc-col-8  { grid-column: span 8; }
.lbc-rek .lbc-col-12 { grid-column: span 12; }

.lbc-rek .lbc-field { min-width: 0; margin: 0; }

/* Etiketter */
.lbc-rek label,
.lbc-rek .lbc-file-label {
	display: block;
	margin: 0 0 8px;
	color: var(--lbc-text);
	font-size: 16px;
	font-weight: 300;
	text-transform: none;
	letter-spacing: 0;
}
.lbc-rek .lbc-req { color: inherit; }

/* Inmatningsfält – specifika selektorer för att slå temats stilar */
.lbc-rek .lbc-input {
	display: block;
	width: 100%;
	height: var(--lbc-h);
	margin: 0;
	padding: 6px 12px;
	border: 1px solid var(--lbc-border);
	border-radius: var(--lbc-radius);
	background-color: #fff;
	box-shadow: none;
	color: var(--lbc-text);
	font-family: inherit;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	transition: border-color .15s, box-shadow .15s;
}
.lbc-rek textarea.lbc-input {
	height: auto;
	min-height: 86px;
	resize: vertical;
}
.lbc-rek .lbc-input::placeholder { color: #999; opacity: 1; }
.lbc-rek .lbc-input:focus {
	border-color: var(--lbc-heading);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(69, 179, 211, .25);
}

/* Select i ca 1/4 bredd som på skärmdumpen */
.lbc-rek .lbc-select-row .lbc-select { max-width: 167px; padding-right: 32px; }

/* Input med suffix (kg / kr) */
.lbc-rek .lbc-input-group { display: flex; align-items: stretch; width: 100%; }
.lbc-rek .lbc-input-group .lbc-input {
	flex: 1 1 auto;
	min-width: 0;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.lbc-rek .lbc-addon {
	display: flex;
	align-items: center;
	padding: 0 12px;
	border: 1px solid var(--lbc-border);
	border-left: 0;
	border-radius: 0 var(--lbc-radius) var(--lbc-radius) 0;
	background: var(--lbc-addon);
	color: #3a6a85;
	white-space: nowrap;
}

/* Knappstil enligt sajtens "Läs mer"-knappar */
.lbc-rek .lbc-type span,
.lbc-rek .lbc-submit {
	display: inline-block;
	min-height: 0;
	margin: 0;
	padding: 8px 26px;
	border: 2px solid var(--lbc-green);
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	color: var(--lbc-green);
	font-family: Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	user-select: none;
	transition: background-color .2s, color .2s, border-color .2s;
}

/* Typ av reklamation – radioknappar som knappar */
.lbc-rek .lbc-types { margin: 0; padding: 0; border: 0; min-width: 0; }
.lbc-rek .lbc-types__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.lbc-rek .lbc-type { position: relative; margin: 0; }
.lbc-rek .lbc-type input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}
.lbc-rek .lbc-type:hover span,
.lbc-rek .lbc-type input:checked + span {
	background: var(--lbc-green);
	color: #fff;
}
.lbc-rek .lbc-type input:focus-visible + span {
	outline: 2px solid var(--lbc-green);
	outline-offset: 3px;
}

/* Hjälptexter */
.lbc-rek .lbc-help {
	margin: 12px 0 0;
	color: var(--lbc-muted);
	font-family: inherit !important;
	font-size: 16px;
	line-height: 1.4;
}
.lbc-rek .lbc-field .lbc-help { margin-top: 6px; }

/* Filfält: "Välj …" + "…"-knapp */
.lbc-rek .lbc-file {
	position: relative;
	display: flex;
	width: 100%;
	height: var(--lbc-h);
	margin: 0;
	border: 1px solid var(--lbc-border);
	border-radius: var(--lbc-radius);
	background: #fff;
	overflow: hidden;
	cursor: pointer;
}
.lbc-rek .lbc-file--extra { margin-top: 16px; }
.lbc-rek .lbc-file input[type="file"] {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	cursor: pointer;
	font-size: 0;
}
.lbc-rek .lbc-file__text {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 12px;
	color: #555;
	line-height: calc(var(--lbc-h) - 2px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lbc-rek .lbc-file.has-file .lbc-file__text { color: var(--lbc-text); }
.lbc-rek .lbc-file__btn {
	flex: 0 0 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-left: 1px solid var(--lbc-border);
	background: var(--lbc-addon);
	color: var(--lbc-heading);
	font-size: 14px;
	letter-spacing: 1px;
}
.lbc-rek .lbc-file:focus-within {
	border-color: var(--lbc-heading);
	box-shadow: 0 0 0 3px rgba(69, 179, 211, .25);
}

.lbc-rek .lbc-files-note {
	margin: 14px 0 0;
	color: var(--lbc-muted);
	font-family: inherit !important;
	font-size: 14px;
}

/* Skicka */
.lbc-rek .lbc-actions { margin-top: 24px; }
.lbc-rek .lbc-submit:hover,
.lbc-rek .lbc-submit:focus-visible {
	background: var(--lbc-green);
	border-color: var(--lbc-green);
	color: #fff;
	outline: 0;
}
.lbc-rek .lbc-submit:active { background: var(--lbc-green-dark); border-color: var(--lbc-green-dark); }
.lbc-rek .lbc-submit[disabled] { opacity: .7; cursor: wait; }

/* Fel */
.lbc-rek .has-error .lbc-input,
.lbc-rek .lbc-file.has-error { border-color: var(--lbc-error); }
.lbc-rek .lbc-error {
	display: block;
	margin-top: 5px;
	color: var(--lbc-error);
	font-size: 14px;
}
.lbc-rek .lbc-rek__alert {
	margin: 0 0 24px;
	padding: 12px 16px;
	border-left: 4px solid var(--lbc-error);
	background: #fdf0ef;
	color: #7a241b;
}

/* Tack-meddelande */
.lbc-rek--done p { font-family: inherit !important; }

/* Honeypot & skärmläsartext */
.lbc-rek .lbc-hp,
.lbc-rek .lbc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Mobil */
@media (max-width: 640px) {
	.lbc-rek .lbc-rek__heading { font-size: 30px; }
	.lbc-rek .lbc-col-3,
	.lbc-rek .lbc-col-4,
	.lbc-rek .lbc-col-6,
	.lbc-rek .lbc-col-8 { grid-column: span 12; }
	.lbc-rek .lbc-types__buttons { gap: 10px; }
	.lbc-rek .lbc-select-row .lbc-select { max-width: none; }
}
