/* Šibor Tools – Kontaktní formulář
   Výchozí vzhled odpovídá designu webu sibor.cz. Vše lze přebít
   v panelu Elementoru (záložka Styl) – tyto hodnoty jsou jen fallback. */

.sibor-contact-form {
	--sibor-orange: #f4801f;
	--sibor-orange-dark: #d96c12;
	--sibor-navy: #1c2d4f;
	--sibor-text: #333333;
	--sibor-border: #e2e2e2;
	--sibor-bg: #ffffff;

	max-width: 100%;
	box-sizing: border-box;
}

.sibor-contact-form *,
.sibor-contact-form *::before,
.sibor-contact-form *::after {
	box-sizing: border-box;
}

.sibor-cf__heading {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 700;
	color: var(--sibor-navy);
}

.sibor-cf__form {
	width: 100%;
}

/* Progress (kroky) */
.sibor-cf__progress {
	display: flex;
	align-items: center;
	margin-bottom: 26px;
}

.sibor-cf__dot {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: #d9dde3;
	border: 2px solid #d9dde3;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
	transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
	cursor: pointer;
	user-select: none;
}

.sibor-cf__dot:hover,
.sibor-cf__dot:focus-visible {
	transform: scale(1.12);
	outline: none;
}

.sibor-cf__dot:focus-visible {
	box-shadow: 0 0 0 3px rgba(244, 128, 31, 0.35);
}

.sibor-cf__dot.is-active,
.sibor-cf__dot.is-done {
	background-color: var(--sibor-orange);
	border-color: var(--sibor-orange);
}

.sibor-cf__progress-line {
	flex: 1 1 auto;
	height: 2px;
	background-color: #d9dde3;
	margin: 0 6px;
}

.sibor-cf__step-title {
	margin: 0 0 18px;
	font-size: 19px;
	font-weight: 700;
	color: var(--sibor-navy);
	/* Fallback, kdyby šablona webu vynucovala velká písmena u <h3> globálně -
	   v Elementoru (Styl → Kroky) lze v "Typografie nadpisu kroku" přebít. */
	text-transform: none;
}

.sibor-cf__hint-note {
	margin: -6px 0 16px;
	font-size: 13px;
	line-height: 1.5;
	color: #888888;
}

.sibor-cf__step[hidden] {
	display: none !important;
}

.sibor-cf__row {
	margin-bottom: 18px;
	width: 100%;
}

.sibor-cf__row--split {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.sibor-cf__row--split .sibor-cf__col {
	flex: 1 1 220px;
	min-width: 0;
}

.sibor-cf__label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sibor-text);
}

.sibor-cf__input {
	display: block;
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--sibor-text);
	background-color: var(--sibor-bg);
	border: 1px solid var(--sibor-border);
	border-radius: 6px;
	transition: border-color .15s ease, box-shadow .15s ease;
	font-family: inherit;
}

.sibor-cf__input:focus {
	outline: 2px solid transparent;
	border-color: var(--sibor-orange);
	box-shadow: 0 0 0 3px rgba(244, 128, 31, 0.15);
}

.sibor-cf__textarea {
	resize: vertical;
	min-height: 110px;
}

select.sibor-cf__input {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.sibor-cf__input-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
}

.sibor-cf__input-wrap .sibor-cf__input {
	flex: 1 1 auto;
}

.sibor-cf__unit {
	display: flex;
	align-items: center;
	padding: 0 14px;
	margin-left: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #666666;
	background-color: #f2f3f5;
	border: 1px solid var(--sibor-border);
	border-radius: 6px;
	white-space: nowrap;
}

.sibor-cf__file {
	padding: 10px 14px;
	background-color: #fafafa;
	cursor: pointer;
}

.sibor-cf__hint {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #888888;
}

/* Honeypot pole – pro reálné návštěvníky vždy skryté */
.sibor-cf__hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	width: 0;
	overflow: hidden;
}

.sibor-cf__row--gdpr {
	margin-bottom: 20px;
}

.sibor-cf__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--sibor-text);
	cursor: pointer;
}

.sibor-cf__checkbox input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	accent-color: var(--sibor-orange);
}

.sibor-cf__checkbox a {
	color: var(--sibor-orange);
	text-decoration: underline;
}

.sibor-cf__actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
}

.sibor-cf__actions:has(.sibor-cf__button:only-child) {
	justify-content: flex-end;
}

.sibor-cf__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 32px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 28px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
	font-family: inherit;
	border: 1px solid transparent;
}

.sibor-cf__button--primary {
	color: #ffffff;
	background-color: var(--sibor-orange);
	border-color: var(--sibor-orange);
	margin-left: auto;
}

.sibor-cf__button--primary:hover {
	background-color: var(--sibor-orange-dark);
	border-color: var(--sibor-orange-dark);
}

.sibor-cf__button--secondary {
	color: var(--sibor-navy);
	background-color: transparent;
	border-color: var(--sibor-border);
}

.sibor-cf__button--secondary:hover {
	background-color: #f2f3f5;
}

.sibor-cf__button:disabled {
	opacity: .65;
	cursor: not-allowed;
}

.sibor-cf__button.is-loading .sibor-cf__button-text {
	visibility: hidden;
	position: relative;
}

.sibor-cf__button.is-loading::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	margin: auto;
	border: 2px solid rgba(255, 255, 255, .5);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: sibor-cf-spin .7s linear infinite;
}

@keyframes sibor-cf-spin {
	to { transform: rotate(360deg); }
}

.sibor-cf__notice {
	display: none;
	margin-bottom: 18px;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.5;
}

.sibor-cf__notice--success {
	display: block;
	color: #256029;
	background-color: #e6f4ea;
}

.sibor-cf__notice--error {
	display: block;
	color: #8a1f11;
	background-color: #fbe7e4;
}

.sibor-cf__field-error {
	border-color: #c0392b !important;
}

/* Mobil */
@media (max-width: 600px) {
	.sibor-cf__row--split {
		flex-direction: column;
		gap: 10px;
	}
	/* Bez tohohle řádku prohlížeč po přepnutí na sloupcový směr
	   (flex-direction: column výše) začne 220px z `flex-basis`
	   (desktopová šířka sloupce) brát jako MINIMÁLNÍ VÝŠKU každého
	   pole - odtud ta velká mezera mezi spárovanými poli na mobilu. */
	.sibor-cf__row--split .sibor-cf__col {
		flex-basis: auto;
	}
	.sibor-cf__button {
		width: 100%;
	}
	.sibor-cf__heading {
		font-size: 19px;
	}
}
