/* Formularz Konsultacji — style spójne z natalialisiecka.pl */

.fk-wrapper {
	--fk-text: #111111;
	--fk-muted: #5c5c5c;
	--fk-border: #dcdcdc;
	--fk-border-focus: #111111;
	--fk-bg: #ffffff;
	--fk-bg-subtle: #f7f7f5;
	--fk-error: #b3261e;
	--fk-error-bg: #fdecea;
	--fk-success: #1e6b3f;
	--fk-radius: 6px;

	max-width: 680px;
	margin: 0 auto;
	font-family: inherit;
	color: var(--fk-text);
	box-sizing: border-box;
}

.fk-wrapper *, .fk-wrapper *::before, .fk-wrapper *::after {
	box-sizing: inherit;
}

.fk-intro {
	margin-bottom: 32px;
}

.fk-intro p {
	font-size: 17px;
	line-height: 1.75;
	color: var(--fk-muted);
	margin: 0;
}

.fk-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px 24px;
}

.fk-field--full {
	grid-column: 1 / -1;
}

@media (max-width: 580px) {
	.fk-grid { grid-template-columns: 1fr; }
}

.fk-field {
	display: flex;
	flex-direction: column;
}

.fk-field label {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--fk-text);
	letter-spacing: 0.01em;
}

.fk-req { color: var(--fk-error); }

.fk-field input[type="text"],
.fk-field input[type="email"],
.fk-field select,
.fk-field textarea {
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	padding: 11px 14px;
	border: 1px solid var(--fk-border);
	border-radius: var(--fk-radius);
	background: var(--fk-bg);
	color: var(--fk-text);
	width: 100%;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.fk-field textarea { resize: vertical; min-height: 110px; }

.fk-field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%23111111' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.fk-field input:focus,
.fk-field select:focus,
.fk-field textarea:focus {
	outline: none;
	border-color: var(--fk-border-focus);
	box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}

.fk-field.fk-field--invalid input,
.fk-field.fk-field--invalid select,
.fk-field.fk-field--invalid textarea {
	border-color: var(--fk-error);
	background: var(--fk-error-bg);
}

.fk-error {
	display: none;
	font-size: 13px;
	color: var(--fk-error);
	margin-top: 6px;
}

.fk-field.fk-field--invalid .fk-error { display: block; }

/* Honeypot */
.fk-field--honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px; overflow: hidden;
}

/* Upload CV */
.fk-file-input { position: relative; }

.fk-file-input input[type="file"] {
	position: absolute; inset: 0;
	opacity: 0; cursor: pointer;
	width: 100%; height: 100%;
}

.fk-file-label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border: 1.5px dashed var(--fk-border);
	border-radius: var(--fk-radius);
	background: var(--fk-bg-subtle);
	color: var(--fk-muted);
	font-size: 14px;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}

.fk-file-input:hover .fk-file-label {
	border-color: var(--fk-border-focus);
	color: var(--fk-text);
}

.fk-file-label.fk-file-label--selected {
	border-style: solid;
	color: var(--fk-text);
	background: var(--fk-bg);
}

.fk-file-icon { font-size: 18px; }

/* Błąd globalny */
.fk-form-error {
	margin-top: 20px;
	padding: 12px 16px;
	border-radius: var(--fk-radius);
	background: var(--fk-error-bg);
	color: var(--fk-error);
	font-size: 14px;
}

/* Przycisk */
.fk-submit {
	margin-top: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 15px 24px;
	background: #111111;
	color: #ffffff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	border: none;
	border-radius: var(--fk-radius);
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s;
}

.fk-submit:hover:not(:disabled) { background: #2b2b2b; }
.fk-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.fk-spinner {
	width: 16px; height: 16px;
	border: 2px solid rgba(255,255,255,0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: fk-spin 0.7s linear infinite;
}

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

/* Sukces */
.fk-success {
	text-align: center;
	padding: 48px 24px;
}

.fk-success h3 {
	margin: 20px 0 10px;
	font-size: 22px;
	color: var(--fk-text);
}

.fk-success p {
	margin: 0 auto;
	max-width: 440px;
	color: var(--fk-muted);
	font-size: 15px;
	line-height: 1.6;
}

.fk-success-icon {
	width: 64px; height: 64px;
	margin: 0 auto; display: block;
}

.fk-success-circle {
	stroke: var(--fk-success); stroke-width: 2;
	stroke-dasharray: 166; stroke-dashoffset: 166;
	animation: fk-circle 0.5s ease forwards;
}

.fk-success-check {
	stroke: var(--fk-success); stroke-width: 3;
	stroke-linecap: round; stroke-linejoin: round;
	stroke-dasharray: 48; stroke-dashoffset: 48;
	animation: fk-check 0.35s 0.45s ease forwards;
}

@keyframes fk-circle { to { stroke-dashoffset: 0; } }
@keyframes fk-check { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
	.fk-spinner, .fk-success-circle, .fk-success-check { animation: none; }
}

@media (max-width: 480px) {
	.fk-success { padding: 32px 16px; }
}
