/* ============================================================
   KaziForms – Front-End Form Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Wrapper ── */
.kf-form-wrap {
	font-family: 'Inter', sans-serif;
	max-width: 820px;
	margin: 0 auto;
	color: #1a1a2e;
}

.kf-form-title {
	font-size: 22px;
	font-weight: 700;
	color: #1a3c6e;
	margin: 0 0 26px 0;
	padding-bottom: 14px;
	border-bottom: 2px solid #e8eaed;
}

/* ── Notices ── */
.kf-notice {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 500;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.kf-success {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}
.kf-error {
	background: #fee2e2;
	color: #dc2626;
	border: 1px solid #fca5a5;
}

/* ── Field Row ── */
.kf-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

/* ── Field ── */
.kf-field {
	margin-bottom: 18px;
}

.kf-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
	letter-spacing: 0.1px;
}

.kf-req {
	color: #dc2626;
	margin-left: 2px;
}

.kf-visually-hidden {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
}

.kf-field-hint {
	display: block;
	font-size: 11px;
	color: #9ca3af;
	margin-top: 4px;
	font-weight: 400;
}

/* ── Inputs ── */
.kf-field input[type="text"],
.kf-field input[type="email"],
.kf-field input[type="tel"],
.kf-field input[type="number"],
.kf-field input[type="date"],
.kf-field select,
.kf-field textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 13px;
	border: 1.5px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	color: #1a1a2e;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.kf-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	padding-right: 36px;
	cursor: pointer;
}

.kf-field input:focus,
.kf-field select:focus,
.kf-field textarea:focus {
	border-color: #1a3c6e;
	box-shadow: 0 0 0 3px rgba(26,60,110,0.1);
	outline: none;
}

.kf-field input.kf-input-error,
.kf-field select.kf-input-error,
.kf-field textarea.kf-input-error {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}

.kf-field textarea {
	resize: vertical;
	min-height: 100px;
}

.kf-field-error {
	display: block;
	color: #dc2626;
	font-size: 12px;
	margin-top: 5px;
	font-weight: 500;
	display: none;
}

/* ── Submit ── */
.kf-submit-wrap {
	margin-top: 24px;
}

.kf-submit-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #1a1a2e;
	color: #fff;
	border: none;
	padding: 13px 30px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	font-family: 'Inter', sans-serif;
	letter-spacing: 0.8px;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.kf-submit-btn:hover {
	background: #1a3c6e;
	box-shadow: 0 4px 16px rgba(26,60,110,0.3);
	transform: translateY(-1px);
}

.kf-submit-btn:active {
	transform: translateY(0);
}

.kf-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

/* ── Responsive ── */
@media (max-width: 600px) {
	.kf-field-row {
		grid-template-columns: 1fr;
	}
}
