/* =========================================================================
   Codetech — wygląd formularzy Fluent Forms (Kontakt, Wycena).
   Zakres ograniczony do wrappera .codetech-form (strony Kontakt/Wycena).
   Mapuje klasy FF na tokeny Codetech (1:1 z dotychczasowym designem).
   ========================================================================= */

/* Reset marginesów i układ pionowy */
.codetech-form .frm-fluent-form { color: #0B1230; }
.codetech-form .ff-el-group { margin: 0 0 20px; }
.codetech-form .ff-el-group:last-child { margin-bottom: 0; }

/* Etykiety */
.codetech-form .ff-el-input--label label {
	font-size: 14px; font-weight: 700; color: #5c6173; margin: 0 0 9px; padding: 0; line-height: 1.3; display: inline-block;
}
.codetech-form .ff-el-is-required.ff-el-group .ff-el-input--label label:after { color: #C00018; }

/* Pola: input / select / textarea */
.codetech-form .ff-el-form-control {
	width: 100%; border: 1px solid #e2e2ea; border-radius: 12px; padding: 14px 16px;
	font-size: 15px; line-height: 1.4; background: #fff; color: #0B1230; box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease; -webkit-appearance: none; appearance: none;
}
.codetech-form select.ff-el-form-control {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%235c6173' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px;
}
.codetech-form textarea.ff-el-form-control { resize: vertical; min-height: 130px; }
.codetech-form .ff-el-form-control::placeholder { color: #9aa0ae; }
.codetech-form .ff-el-form-control:focus {
	border-color: #C00018; box-shadow: 0 0 0 3px rgba(192,0,24,0.12); outline: none;
}

/* Dwie kolumny (kontenery FF) */
.codetech-form .ff-t-container { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0; }
.codetech-form .ff-t-container .ff-t-cell { padding: 0; width: auto; }
.codetech-form .ff-t-container .ff-el-group { margin-bottom: 0; }
.codetech-form .ff-el-group.hide_label > .ff-el-input--label { display: none; }
.codetech-form .ff-el-section-title { display: none; }
.codetech-form .ff-el-section-break hr { display: none; }
.codetech-form .ff-el-section-break { border: none; padding: 0; margin: 0 0 14px; }.codetech-form .ff-el-group:not(.ff-hpsf-container):not(.ff-el-section-break) ~ .ff-el-section-break { margin-top: 30px; }
.codetech-form .cdt-ff-legend {
	font-size: 13px; font-weight: 700; color: #C00018; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 8px;
}
.codetech-form .cdt-ff-hint { margin: 0 0 4px; font-size: 14px; color: #8a90a3; line-height: 1.5; }

/* Radio / checkbox jako „chipy" Codetech */
.codetech-form .ff-el-input--content:has(.ff-el-form-check) { display: flex; flex-wrap: wrap; gap: 10px; }
.codetech-form .ff-el-form-check {
	display: inline-flex; align-items: center; margin: 0; padding: 11px 18px; border: 1px solid #e2e2ea; background: #fff;
	border-radius: 100px; font-size: 14px; font-weight: 700; color: #5c6173; cursor: pointer; line-height: 1;
	transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.codetech-form .ff-el-form-check-label {
	display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 0; line-height: 1.2;
	font-size: 14px; font-weight: 700; color: inherit; cursor: pointer;
}
.codetech-form .ff-el-form-check-input {
	position: static; flex: none; margin: 0; width: 15px; height: 15px;
	border: 1.5px solid #c7cad6; border-radius: 50%; background: #fff;
	-webkit-appearance: none; appearance: none; cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.codetech-form .ff-el-form-check-checkbox .ff-el-form-check-input { border-radius: 5px; }
.codetech-form .ff-el-form-check:hover { border-color: #C00018; color: #0B1230; }
.codetech-form .ff-el-form-check:has(.ff-el-form-check-input:checked) { border-color: #C00018; background: #fdeef0; color: #C00018; }
.codetech-form .ff-el-form-check:has(.ff-el-form-check-input:checked) .ff-el-form-check-input {
	border-color: #C00018; background: #C00018 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4 4 10-10' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.codetech-form .ff-el-input--content:has(.ff-el-tc) { display: block; }
.codetech-form .ff-el-form-check.ff-el-tc,
.codetech-form .ff-el-form-check.ff-el-tc:hover,
.codetech-form .ff-el-form-check.ff-el-tc:has(.ff-el-form-check-input:checked) {
	display: block; padding: 0; margin: 4px 0 0; border: none; background: none; border-radius: 0; color: #5c6173;
}
.codetech-form .ff_tc_label {
	display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; margin: 0;
	font-size: 14px; font-weight: 400; line-height: 1.55; color: #5c6173; cursor: pointer;
}
.codetech-form .ff_tc_checkbox { display: flex; margin-top: 1px; }
.codetech-form .ff-el-tc .ff-el-form-check-input {
	flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid #c7cad6; border-radius: 6px;
	background: #fff; -webkit-appearance: none; appearance: none; cursor: pointer;
	transition: border-color .2s ease, background .2s ease;
}
.codetech-form .ff-el-tc .ff-el-form-check-input:checked {
	border-color: #C00018;
	background: #C00018 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4 4 10-10' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.codetech-form .ff-el-tc .ff-el-form-check-input:focus-visible {
	outline: none; border-color: #C00018; box-shadow: 0 0 0 3px rgba(192,0,24,0.12);
}.codetech-form .ff-el-tc .ff_t_c { margin: 0; padding: 0 5px 0 10px; font-size: 14px; line-height: 1.55; color: #5c6173; }
.codetech-form .ff-el-tc .ff_t_c a { color: #C00018; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.codetech-form .ff-el-tc .ff_t_c a:hover { text-decoration: none; }.codetech-form .ff-el-is-error .ff-el-tc .ff-el-form-check-input { border-color: #e0413a; }

/* Przycisk submit → .cdt-btn--primary */
.codetech-form .ff-el-group.ff_submit_btn_wrapper { margin-top: 6px; }
.codetech-form .ff-btn-submit {
	background: #C00018; color: #fff; border: none; border-radius: 10px; padding: 16px 30px; font-size: 16px;
	font-weight: 700; line-height: 1; cursor: pointer; display: inline-flex; align-items: center;
	transition: transform .25s ease, background .25s ease; box-shadow: 0 12px 30px -12px rgba(192,0,24,.6);
}
.codetech-form .ff-btn-submit::after { content: '→'; margin-left: 10px; font-size: 17px; line-height: 1; }
.codetech-form .ff-btn-submit:hover { transform: translateY(-2px); background: #a30014; }
.codetech-form .ff-btn-submit[disabled] { opacity: .7; cursor: default; transform: none; }

/* Komunikaty błędów */
.codetech-form .ff-el-is-error .ff-el-form-control,
.codetech-form .ff-el-form-control.has-error { border-color: #e0413a; }
.codetech-form .error,
.codetech-form .text-danger,
.codetech-form .ff-el-is-error .error { color: #e0413a; font-size: 14px; font-weight: 500; margin-top: 6px; }

/* Honeypot ukryty */
.codetech-form .ff-hpsf-container { position: absolute !important; left: -9999px !important; }
.codetech-form .ff-message-success { padding: 6px 0; border: none; background: none; box-shadow: none; }
.cdt-ff-thanks { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 10px 0; }
.cdt-ff-thanks__icon {
	width: 60px; height: 60px; border-radius: 50%; background: #C00018; color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; font-weight: 700;
}
.cdt-ff-thanks__title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: #0B1230; }
.cdt-ff-thanks__text { color: #5c6173; font-size: 16px; line-height: 1.6; margin: 0; max-width: 42ch; }
.cdt-form-fallback { color: #5c6173; font-size: 16px; line-height: 1.6; margin: 0; }
.cdt-form-fallback a { color: #C00018; font-weight: 700; text-decoration: none; }
@media (max-width: 640px) {
	.codetech-form .ff-t-container { grid-template-columns: 1fr; }
}
