.laguntza-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 1rem;
	font-size: 1rem;
	line-height: 1.5;
}

.laguntza-form {
	display: grid;
	gap: 1rem;
}

.laguntza-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.laguntza-grid {
		grid-template-columns: 1fr 1fr;
	}

	.laguntza-grid .laguntza-field:first-child {
		grid-column: 1 / -1;
	}
}

.laguntza-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.laguntza-field .required {
	color: #b32d2e;
}

.laguntza-field input[type="text"],
.laguntza-field input[type="email"],
.laguntza-field input[type="tel"],
.laguntza-field select,
.laguntza-field textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-sizing: border-box;
	font: inherit;
}

.laguntza-colored-select {
	position: relative;
	display: block;
	width: 100%;
}

.laguntza-colored-select-native-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.laguntza-colored-select-toggle {
	display: inline-flex !important;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	min-height: 44px;
	padding: 0.65rem 0.75rem !important;
	background: #fff !important;
	background-color: #fff !important;
	border: 1px solid #d0d5da !important;
	border-radius: 4px !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
	color: #1a1a1a !important;
	font: inherit !important;
	cursor: pointer;
	text-align: left;
	appearance: none;
	-webkit-appearance: none;
}

.laguntza-colored-select-toggle:hover,
.laguntza-colored-select-toggle:focus {
	border-color: #115685 !important;
	outline: 2px solid transparent;
	box-shadow: 0 0 0 1px #115685 !important;
	background: #fff !important;
	color: #1a1a1a !important;
}

.laguntza-colored-select.is-open .laguntza-colored-select-toggle {
	border-color: #115685 !important;
	box-shadow: 0 0 0 1px #115685 !important;
	background: #fff !important;
}

.laguntza-colored-select-label {
	flex: 1;
	line-height: 1.4;
}

.laguntza-colored-select-caret {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	flex-shrink: 0;
	opacity: 0.7;
}

.laguntza-colored-select-menu {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 30;
	margin: 0;
	padding: 0.35rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	max-height: 260px;
	overflow-y: auto;
}

.laguntza-colored-select-option {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 0.75rem;
	cursor: pointer;
}

.laguntza-colored-select-option:hover,
.laguntza-colored-select-option.is-selected {
	background: #fff8e0;
}

.laguntza-colored-select-option-label {
	line-height: 1.3;
}

.laguntza-color-swatch {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 3px;
	border: 1.5px solid #4a4f54;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
	vertical-align: middle;
	flex-shrink: 0;
	background-color: transparent;
}

.laguntza-field input:focus,
.laguntza-field select:focus,
.laguntza-field textarea:focus {
	border-color: #2271b1;
	outline: 2px solid transparent;
	box-shadow: 0 0 0 1px #2271b1;
}

.laguntza-help {
	margin: 0.35rem 0 0;
	font-size: 0.875rem;
	color: #646970;
}

.laguntza-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.laguntza-wrap .laguntza-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 44px;
	height: auto;
	padding: 0.65rem 1.25rem;
	border: 1px solid #e8d48a;
	border-radius: 4px;
	background: #f0d66a;
	background-color: #f0d66a;
	color: #1a1a1a;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
}

.laguntza-wrap .laguntza-button:hover,
.laguntza-wrap .laguntza-button:focus {
	background: #e5c84a;
	background-color: #e5c84a;
	border-color: #e5c84a;
	color: #1a1a1a;
}

.laguntza-wrap .laguntza-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	background: #e8e0b8;
	background-color: #e8e0b8;
	border-color: #d9d0a0;
	color: #5c6670;
}

.laguntza-wrap .laguntza-button:disabled:hover,
.laguntza-wrap .laguntza-button:disabled:focus {
	background: #e8e0b8;
	background-color: #e8e0b8;
	border-color: #d9d0a0;
	color: #5c6670;
}

.laguntza-wrap .laguntza-button-secondary {
	background: #fff !important;
	background-color: #fff !important;
	border-color: #c3c4c7 !important;
	color: #1d2327 !important;
}

.laguntza-wrap .laguntza-button-secondary:hover,
.laguntza-wrap .laguntza-button-secondary:focus {
	background: #f6f7f7 !important;
	background-color: #f6f7f7 !important;
	border-color: #8c8f94 !important;
	color: #1d2327 !important;
}

.laguntza-wrap .laguntza-button-danger,
.laguntza-wrap button.laguntza-button.laguntza-button-danger {
	background: #b32d2e !important;
	background-color: #b32d2e !important;
	border-color: #8a2424 !important;
	color: #fff !important;
}

.laguntza-wrap .laguntza-button-danger:hover,
.laguntza-wrap .laguntza-button-danger:focus,
.laguntza-wrap button.laguntza-button.laguntza-button-danger:hover,
.laguntza-wrap button.laguntza-button.laguntza-button-danger:focus {
	background: #8a2424 !important;
	background-color: #8a2424 !important;
	border-color: #6b1c1c !important;
	color: #fff !important;
}

.laguntza-wrap .laguntza-button-danger:disabled,
.laguntza-wrap .laguntza-button-danger:disabled:hover,
.laguntza-wrap .laguntza-button-danger:disabled:focus {
	background: #b32d2e !important;
	background-color: #b32d2e !important;
	border-color: #8a2424 !important;
	color: #fff !important;
	opacity: 0.55;
}

.laguntza-wrap .laguntza-actions-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: stretch;
}

.laguntza-wrap .laguntza-actions-row .laguntza-button {
	flex: 0 1 auto;
	min-height: 44px;
	padding: 0.65rem 1.25rem;
	font-size: 1rem;
	line-height: 1.25;
}

.laguntza-confirm-modal-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: flex-end;
}

.laguntza-close-form {
	display: none;
}

.laguntza-privacy {
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}

.laguntza-privacy-label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-weight: 400;
	line-height: 1.45;
	cursor: pointer;
}

.laguntza-privacy-label input[type="checkbox"] {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.laguntza-privacy-label a {
	font-weight: 600;
	text-decoration: underline;
}

.laguntza-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.laguntza-modal[hidden] {
	display: none !important;
}

.laguntza-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 26, 26, 0.55);
}

.laguntza-modal-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(100%, 40rem);
	max-height: min(85vh, 40rem);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

.laguntza-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid #e8d48a;
	background: #fff3c4;
}

.laguntza-modal-title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.3;
	color: #1a1a1a;
}

.laguntza-modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: #1a1a1a;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.laguntza-modal-close:hover,
.laguntza-modal-close:focus {
	background: rgba(0, 0, 0, 0.06);
}

.laguntza-modal-body {
	padding: 1.25rem;
	overflow-y: auto;
	color: #1a1a1a;
	font-size: 0.95rem;
	line-height: 1.55;
}

.laguntza-modal-body > *:first-child {
	margin-top: 0;
}

.laguntza-modal-body > *:last-child {
	margin-bottom: 0;
}

.laguntza-notice-modal-dialog {
	width: min(100%, 26rem);
	max-height: min(85vh, 32rem);
	text-align: center;
}

.laguntza-notice-modal-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem 1.25rem 0.75rem;
	background: #fff;
}

.laguntza-notice-modal .laguntza-notice-modal-logo {
	display: block;
	width: auto;
	max-width: min(100%, 14rem);
	height: 75px;
	max-height: 75px !important;
	object-fit: contain;
}

.laguntza-notice-modal-body {
	padding-top: 0.5rem;
	padding-bottom: 0.75rem;
}

.laguntza-notice-modal-title {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	line-height: 1.3;
	color: #1a1a1a;
}

.laguntza-notice-modal-message {
	margin: 0;
	padding: 0.85rem 1rem;
	border-radius: 4px;
	font-size: 0.95rem;
	line-height: 1.55;
}

.laguntza-notice-modal.is-success .laguntza-notice-modal-message {
	background: #edfaef;
	border: 1px solid #68de7c;
	color: #1e4620;
}

.laguntza-notice-modal.is-error .laguntza-notice-modal-message {
	background: #fcf0f1;
	border: 1px solid #f86368;
	color: #3c1014;
}

.laguntza-notice-modal-footer {
	display: flex;
	justify-content: center;
	padding: 0 1.25rem 1.25rem;
}

.laguntza-wrap .laguntza-notice-modal-footer .laguntza-button {
	min-width: 7rem;
}

body.laguntza-modal-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.laguntza-modal {
		padding: 0.5rem;
		align-items: flex-end;
	}

	.laguntza-modal-dialog {
		width: 100%;
		max-height: 90vh;
		border-radius: 8px 8px 0 0;
	}
}

.laguntza-notice {
	padding: 0.85rem 1rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.laguntza-notice-success {
	background: #edfaef;
	border: 1px solid #68de7c;
	color: #1e4620;
}

.laguntza-notice-error {
	background: #fcf0f1;
	border: 1px solid #f86368;
	color: #3c1014;
}

.laguntza-notice-info {
	background: #f0f6fc;
	border: 1px solid #72aee6;
	color: #1d2327;
}

.laguntza-ticket-header {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #dcdcde;
}

.laguntza-ticket-title {
	margin: 0 0 0.75rem;
	font-size: 1.35rem;
}

.laguntza-ticket-meta-grid {
	display: grid;
	gap: 0.35rem;
	font-size: 0.95rem;
}

@media (min-width: 640px) {
	.laguntza-ticket-meta-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.laguntza-thread {
	display: grid;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.laguntza-message {
	padding: 1rem;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
}

.laguntza-message-citizen {
	background: #fff;
	border-color: #dcdcde;
}

.laguntza-message-admin {
	background: #fff8e5;
	border-color: #e6d08a;
	border-left: 4px solid #dba617;
}

.laguntza-message-admin .laguntza-message-header strong {
	color: #996800;
}

.laguntza-message-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	color: #646970;
}

.laguntza-message-body {
	word-break: break-word;
}

.laguntza-attachments {
	margin: 0.75rem 0 0;
	padding-left: 1.25rem;
}

.laguntza-attachments a {
	word-break: break-all;
}

.laguntza-reply-section {
	padding-top: 1rem;
	border-top: 1px solid #dcdcde;
}

.laguntza-reply-section h3 {
	margin-top: 0;
}

.laguntza-captcha {
	min-height: 65px;
}

/* Language switcher (dropdown) */
.laguntza-lang-switcher {
	position: relative;
	display: inline-block;
	font-size: 0.875rem;
	line-height: 1.2;
	vertical-align: middle;
}

.laguntza-lang-switcher__toggle {
	display: inline-flex !important;
	align-items: center;
	gap: 0.4rem;
	min-height: 36px;
	padding: 0.35rem 0.55rem !important;
	border: 1px solid #d0d5da !important;
	border-radius: 4px !important;
	background: #fff !important;
	background-color: #fff !important;
	box-shadow: none !important;
	color: #1a1a1a !important;
	font: inherit !important;
	font-weight: 600 !important;
	cursor: pointer;
	text-align: left;
	appearance: none;
	-webkit-appearance: none;
}

.laguntza-lang-switcher__toggle:hover,
.laguntza-lang-switcher__toggle:focus {
	border-color: #115685 !important;
	color: #1a1a1a !important;
	background: #fff !important;
	box-shadow: 0 0 0 1px #115685 !important;
}

.laguntza-lang-switcher.is-open .laguntza-lang-switcher__toggle {
	border-color: #115685 !important;
	box-shadow: 0 0 0 1px #115685 !important;
}

.laguntza-lang-switcher__caret {
	width: 0;
	height: 0;
	margin-left: 0.15rem;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	flex-shrink: 0;
	opacity: 0.75;
}

.laguntza-lang-switcher__menu {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	z-index: 100050;
	min-width: 100%;
	margin: 0;
	padding: 0.25rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid #d0d5da;
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.laguntza-lang-switcher__menu[hidden] {
	display: none !important;
}

.laguntza-lang-switcher__menu li {
	margin: 0;
	padding: 0;
}

.laguntza-lang-switcher__option {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 0.65rem;
	color: #1a1a1a !important;
	text-decoration: none !important;
	font-weight: 500;
	white-space: nowrap;
}

.laguntza-lang-switcher__option:hover,
.laguntza-lang-switcher__option:focus {
	background: #fff8e0;
	color: #1a1a1a !important;
}

.laguntza-lang-switcher__option.is-active {
	background: #fff3c4;
	font-weight: 600;
}

.laguntza-lang-switcher__flag {
	display: block;
	width: 20px;
	height: 14px;
	object-fit: cover;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 2px;
	flex-shrink: 0;
}

.laguntza-lang-switcher__label {
	white-space: nowrap;
}


