/* ============================================================
   Woven Teklif Formu — Frontend CSS
   ============================================================ */

.wtf-wrap *, .wtf-wrap *::before, .wtf-wrap *::after { box-sizing: border-box; }

/* ── Wrapper ── */
.wtf-wrap {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	max-width: 640px;
	margin: 0 auto;
	padding: 0 16px 48px;
	color: #1a1a2e;
	-webkit-font-smoothing: antialiased;
}

/* ── Hero ── */
.wtf-hero {
	text-align: center;
	padding: 44px 20px 32px;
}
.wtf-hero__icon {
	width: 56px; height: 56px;
	background: linear-gradient(135deg, #1a3c6b, #2d5fa8);
	border-radius: 16px;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 18px;
	box-shadow: 0 8px 20px rgba(26,60,107,.25);
}
.wtf-hero__icon svg { width: 28px; height: 28px; color: #fff; }
.wtf-hero h2 { font-size: 26px; font-weight: 800; color: #0f1f3d; margin: 0 0 8px; letter-spacing: -.5px; }
.wtf-hero p  { font-size: 15px; color: #6b7a8d; margin: 0; line-height: 1.6; }

/* ── Steps ── */
.wtf-steps {
	display: flex; align-items: center; justify-content: center;
	gap: 0; margin-bottom: 16px;
}
.wtf-step {
	display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.wtf-step__num {
	width: 38px; height: 38px; border-radius: 50%;
	background: #edf0f7; color: #8a9ab5;
	font-size: 14px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
	transition: all .3s ease;
	border: 2px solid transparent;
}
.wtf-step span { font-size: 11px; font-weight: 600; color: #8a9ab5; white-space: nowrap; transition: color .3s; }
.wtf-step.active .wtf-step__num  { background: #1a3c6b; color: #fff; border-color: #1a3c6b; box-shadow: 0 4px 14px rgba(26,60,107,.3); }
.wtf-step.active span             { color: #1a3c6b; }
.wtf-step.done .wtf-step__num    { background: #059669; color: #fff; border-color: #059669; }
.wtf-step.done span               { color: #059669; }
.wtf-step__line {
	flex: 1; height: 2px; min-width: 30px; max-width: 80px;
	background: #edf0f7; margin-bottom: 22px; transition: background .3s;
}
.wtf-step__line.done { background: #059669; }

/* ── Progress bar ── */
.wtf-progress {
	height: 3px; background: #edf0f7; border-radius: 2px; margin-bottom: 24px; overflow: hidden;
}
.wtf-progress__bar {
	height: 100%;
	background: linear-gradient(90deg, #1a3c6b, #3a7bd5);
	border-radius: 2px;
	transition: width .4s ease;
}

/* ── Panel ── */
.wtf-panel { display: none; }
.wtf-panel.active { display: block; animation: wtf-fade .25s ease; }
@keyframes wtf-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ── Card ── */
.wtf-card {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 2px 20px rgba(26,60,107,.07), 0 1px 4px rgba(0,0,0,.04);
	padding: 28px 32px;
	margin-bottom: 12px;
	border: 1px solid rgba(26,60,107,.06);
}
@media (max-width: 560px) { .wtf-card { padding: 20px 18px; } }

.wtf-card__header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.wtf-card__icon {
	width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
}
.wtf-card__icon svg { width: 22px; height: 22px; }
.wtf-card__icon--blue   { background: #e8f0fe; color: #1a3c6b; }
.wtf-card__icon--green  { background: #d1fae5; color: #065f46; }
.wtf-card__icon--purple { background: #ede9fe; color: #5b21b6; }
.wtf-card__header h3 { font-size: 16px; font-weight: 700; color: #0f1f3d; margin: 0 0 3px; }
.wtf-card__header p  { font-size: 13px; color: #6b7a8d; margin: 0; }

/* ── Fields ── */
.wtf-field { margin-bottom: 18px; position: relative; }
.wtf-field label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.wtf-req { color: #ef4444; margin-left: 2px; }
.wtf-input-wrap { position: relative; }
.wtf-input-icon {
	position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
	width: 17px; height: 17px; color: #9ca3af; pointer-events: none;
}
.wtf-input-wrap input {
	width: 100%; padding: 12px 14px 12px 40px;
	border: 1.5px solid #e2e8f0; border-radius: 12px;
	font-size: 15px; color: #1a1a2e; background: #f8fafc;
	transition: border-color .2s, box-shadow .2s, background .2s;
	outline: none; font-family: inherit; -webkit-appearance: none;
}
.wtf-input-wrap input:focus { border-color: #1a3c6b; background: #fff; box-shadow: 0 0 0 3px rgba(26,60,107,.1); }
.wtf-input-wrap input.err   { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.wtf-err { font-size: 12px; color: #ef4444; margin-top: 4px; display: none; }

.wtf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .wtf-row2 { grid-template-columns: 1fr; } }

/* ── Contact prefs ── */
.wtf-prefs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.wtf-pref  { flex: 1; min-width: 110px; }
.wtf-pref input[type="radio"] { display: none; }
.wtf-pref span {
	display: flex; align-items: center; justify-content: center; gap: 7px;
	padding: 11px 12px; border: 1.5px solid #e2e8f0; border-radius: 12px;
	font-size: 14px; font-weight: 500; color: #6b7a8d; cursor: pointer;
	transition: all .2s; background: #f8fafc; user-select: none;
}
.wtf-pref span svg { width: 17px; height: 17px; flex-shrink: 0; }
.wtf-pref span:hover { border-color: #1a3c6b; color: #1a3c6b; }
.wtf-pref input:checked + span { border-color: #1a3c6b; background: #eef3fb; color: #1a3c6b; font-weight: 700; }

/* ── Products ── */
.wtf-product-header {
	display: grid; grid-template-columns: 1fr 100px 36px;
	gap: 10px; padding: 0 4px 6px; margin-bottom: 2px;
}
.wtf-product-header span { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .6px; }
@media (max-width: 480px) { .wtf-product-header { grid-template-columns: 1fr 36px; } .wtf-product-header span:nth-child(2) { display: none; } }

.wtf-product-row {
	display: grid; grid-template-columns: 1fr 100px 36px;
	gap: 10px; margin-bottom: 10px;
	animation: wtf-slide .2s ease;
}
@keyframes wtf-slide { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) { .wtf-product-row { grid-template-columns: 1fr 36px; } .wtf-product-row .wtf-qty-field { display: none; } }

.wtf-product-row input {
	width: 100%; padding: 11px 14px;
	border: 1.5px solid #e2e8f0; border-radius: 12px;
	font-size: 14px; color: #1a1a2e; background: #f8fafc;
	outline: none; font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.wtf-product-row input:focus { border-color: #1a3c6b; background: #fff; box-shadow: 0 0 0 3px rgba(26,60,107,.1); }

.wtf-remove-btn {
	width: 36px; height: 42px; padding: 0;
	border: 1.5px solid #e2e8f0; border-radius: 12px;
	background: #fff; color: #9ca3af; font-size: 18px;
	cursor: pointer; display: flex; align-items: center; justify-content: center;
	transition: all .15s;
}
.wtf-remove-btn:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }
.wtf-remove-btn:disabled { opacity: .35; cursor: default; }

.wtf-add-btn {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 10px 18px; margin-top: 4px;
	border: 1.5px dashed #cbd5e1; border-radius: 12px;
	background: transparent; color: #1a3c6b;
	font-size: 14px; font-weight: 600; cursor: pointer;
	transition: all .2s; font-family: inherit;
}
.wtf-add-btn svg { width: 15px; height: 15px; }
.wtf-add-btn:hover { border-color: #1a3c6b; background: #eef3fb; }

.wtf-products-err {
	font-size: 13px; color: #ef4444;
	background: #fef2f2; border: 1px solid #fecaca;
	border-radius: 8px; padding: 9px 13px; margin: 4px 0 10px;
}

/* ── Nav ── */
.wtf-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.wtf-btn {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 13px 24px; border-radius: 12px;
	font-size: 15px; font-weight: 700; cursor: pointer;
	border: none; font-family: inherit; transition: all .2s;
	white-space: nowrap;
}
.wtf-btn svg { width: 16px; height: 16px; }
.wtf-btn--ghost {
	background: #f1f5f9; color: #64748b; border: none;
}
.wtf-btn--ghost:hover { background: #e2e8f0; color: #1a3c6b; }
.wtf-btn--primary {
	background: linear-gradient(135deg, #1a3c6b, #2d5fa8);
	color: #fff; flex: 1; justify-content: center;
	box-shadow: 0 4px 14px rgba(26,60,107,.3);
}
.wtf-btn--primary:hover { background: linear-gradient(135deg, #162f55, #245197); box-shadow: 0 6px 18px rgba(26,60,107,.4); transform: translateY(-1px); }
.wtf-btn--primary:active { transform: translateY(0); }
.wtf-btn--primary:disabled { opacity: .7; cursor: not-allowed; transform: none !important; }
.wtf-btn--submit { letter-spacing: .2px; }

/* ── Summary ── */
.wtf-summary { display: grid; gap: 12px; }
.wtf-summary__block { background: #f8fafc; border-radius: 12px; padding: 14px 18px; border: 1px solid #e8edf5; }
.wtf-summary__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: #9ca3af; margin-bottom: 10px; }
.wtf-summary__row {
	display: flex; align-items: center; gap: 9px;
	font-size: 14px; color: #374151; padding: 4px 0;
}
.wtf-summary__row svg { width: 15px; height: 15px; color: #9ca3af; flex-shrink: 0; }
.wtf-summary__row--contact { padding-top: 6px; }
.wtf-summary__row--contact span {
	display: inline-block; padding: 3px 12px;
	background: #eef3fb; color: #1a3c6b; border-radius: 20px;
	font-size: 12px; font-weight: 700;
}
.wtf-summary__products { margin: 0; padding-left: 18px; }
.wtf-summary__products li { font-size: 14px; color: #374151; line-height: 1.8; }
.wtf-summary__products li em { color: #9ca3af; margin-left: 4px; font-style: normal; font-size: 13px; }

.wtf-submit-err {
	background: #fef2f2; border: 1px solid #fecaca; color: #c0392b;
	border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-top: 14px;
}

/* ── Success ── */
.wtf-success { text-align: center; padding: 48px 24px 24px; }
.wtf-success__ring {
	width: 88px; height: 88px; margin: 0 auto 22px;
}
.wtf-success__check { width: 100%; height: 100%; }

.wtf-check-circle {
	stroke: #059669; stroke-width: 2;
	stroke-dasharray: 166; stroke-dashoffset: 166;
	stroke-linecap: round; stroke-linejoin: round;
	animation: wtf-circle .6s cubic-bezier(.65,0,.45,1) .2s forwards;
}
.wtf-check-mark {
	stroke: #059669; stroke-width: 2.5;
	stroke-dasharray: 48; stroke-dashoffset: 48;
	stroke-linecap: round; stroke-linejoin: round;
	animation: wtf-check .3s cubic-bezier(.65,0,.45,1) .8s forwards;
}
@keyframes wtf-circle { to { stroke-dashoffset: 0; } }
@keyframes wtf-check  { to { stroke-dashoffset: 0; } }

.wtf-success h3 { font-size: 22px; font-weight: 800; color: #0f1f3d; margin: 0 0 10px; }
.wtf-success p  { font-size: 15px; color: #374151; margin: 0 0 4px; }
.wtf-success__sub { font-size: 13px; color: #9ca3af !important; }

/* ── Honeypot ── */
.wtf-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; height: 0; }
