/* ============================================================
   Novum Forms v2 — Frontend Styles
   ============================================================ */

/* ── Wrap ── */
.nf-wrap{max-width:720px;width:100%;background:#fff;border:1px solid rgba(62,126,214,.15);border-radius:20px;padding:44px 48px;box-shadow:0 8px 40px rgba(22,57,107,.08);font-family:Inter,Arial,sans-serif;box-sizing:border-box}

/* ── Form Header ── */
.nf-form-header{margin-bottom:32px}
.nf-form-title{font-size:24px;font-weight:800;color:#16396B;margin:0 0 8px;line-height:1.2}
.nf-form-sub{font-size:14px;color:#516B8D;line-height:1.72;margin:0}

/* ── Fields ── */
.nf-row{display:flex;gap:18px;margin-bottom:18px}
.nf-row .nf-field{flex:1;margin-bottom:0}
.nf-field{margin-bottom:18px;position:relative}
.nf-field label{display:block;font-size:12px;font-weight:700;color:#16396B;text-transform:uppercase;letter-spacing:.07em;margin-bottom:6px}
.nf-req{color:#3E7ED6}
.nf-field input,.nf-field select,.nf-field textarea{width:100%;box-sizing:border-box;background:#F5F8FE;border:1.5px solid rgba(62,126,214,.2);border-radius:10px;padding:13px 16px;font-size:14px;font-family:Inter,Arial,sans-serif;color:#1a2b3c;transition:border-color .2s,box-shadow .2s,background .2s;outline:none;-webkit-appearance:none;appearance:none}
.nf-field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233E7ED6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:40px;cursor:pointer}
.nf-field textarea{resize:vertical;min-height:110px}
.nf-field input:focus,.nf-field select:focus,.nf-field textarea:focus{border-color:#3E7ED6;box-shadow:0 0 0 3px rgba(62,126,214,.12);background:#fff}
.nf-field input.nf-invalid,.nf-field select.nf-invalid,.nf-field textarea.nf-invalid{border-color:#e53e3e;box-shadow:0 0 0 3px rgba(229,62,62,.10)}
.nf-char-count{display:block;font-size:11px;color:#9aacbe;margin-top:5px;text-align:right}
.nf-honey{position:absolute;left:-9999px;opacity:0;height:0;overflow:hidden;pointer-events:none}

/* ── Button ── */
.nf-footer{margin-top:28px}
.nf-btn{display:inline-flex;align-items:center;gap:8px;background:#16396B;color:#fff;font-family:Inter,Arial,sans-serif;font-size:14px;font-weight:700;border:none;border-radius:10px;padding:14px 30px;cursor:pointer;transition:background .2s,transform .15s;min-width:200px;justify-content:center;box-shadow:0 4px 16px rgba(22,57,107,.22)}
.nf-btn:hover{background:#1a4a8a;transform:translateY(-1px)}
.nf-btn:active{transform:translateY(0)}
.nf-btn:disabled{opacity:.65;cursor:not-allowed;transform:none;box-shadow:none}
.nf-spin{display:inline-block;width:14px;height:14px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:nf-spin .7s linear infinite}
@keyframes nf-spin{to{transform:rotate(360deg)}}

/* ── Error Alert ── */
.nf-alert{margin-top:20px;padding:16px 20px;border-radius:10px;font-size:14px;line-height:1.65}
.nf-error{background:#fff5f5;border:1px solid #feb2b2;color:#742a2a}
.nf-disabled{color:#516B8D;font-size:14px;font-style:italic}

/* ══════════════════════════════════════════════
   SUCCESS STATE — tick animation
   ══════════════════════════════════════════════ */
.nf-success-state{
	display:none;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	text-align:center;
	padding:56px 32px;
	min-height:320px;
}

/* Circle container */
.nf-tick-circle{
	width:90px;
	height:90px;
	margin-bottom:28px;
	position:relative;
}

/* SVG */
.nf-tick-svg{
	width:90px;
	height:90px;
}

/* Circle stroke */
.nf-tick-circle-path{
	stroke:#16396B;
	stroke-width:3;
	stroke-dasharray:151;
	stroke-dashoffset:151;
	stroke-linecap:round;
	transition:none;
}

/* Checkmark stroke */
.nf-tick-check{
	stroke:#3E7ED6;
	stroke-width:4;
	stroke-dasharray:50;
	stroke-dashoffset:50;
	stroke-linecap:round;
	stroke-linejoin:round;
	transition:none;
}

/* Animate on class add */
.nf-tick-animate .nf-tick-circle-path{
	animation:nf-circle-draw .5s cubic-bezier(.65,0,.45,1) forwards;
}
.nf-tick-animate .nf-tick-check{
	animation:nf-check-draw .4s cubic-bezier(.65,0,.45,1) .45s forwards;
}

@keyframes nf-circle-draw{
	to{stroke-dashoffset:0}
}
@keyframes nf-check-draw{
	to{stroke-dashoffset:0}
}

/* Success text */
.nf-success-title{
	font-size:22px;
	font-weight:800;
	color:#16396B;
	margin:0 0 10px;
	font-family:Inter,Arial,sans-serif;
}
.nf-success-msg{
	font-size:15px;
	color:#516B8D;
	margin:0;
	line-height:1.7;
	font-family:Inter,Arial,sans-serif;
	max-width:320px;
}

/* ── Responsive ── */
@media(max-width:640px){
	.nf-wrap{padding:28px 22px}
	.nf-row{flex-direction:column;gap:0}
	.nf-row .nf-field{margin-bottom:18px}
	.nf-success-state{padding:40px 16px}
}
