/*
 * Fiyat Al (Çağlar Yılmaz) eklentisinin v3 tasarım diline uyarlanmış görünümü.
 * fiyat-al.js ve HTML yapısı eklentiyle birebir aynıdır; burada yalnızca görünüm değişir.
 */

.fiyat-al-container {
	--fa-primary: #147aff;
	position: relative;
	max-width: 980px;
	margin: 0 auto;
	padding: clamp(22px, 3.5vw, 44px);
	border-radius: 34px;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(24px) saturate(150%);
	-webkit-backdrop-filter: blur(24px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 30px 80px rgba(0,48,120,0.12);
	color: #0e0e0e;
	font-family: inherit;
	scroll-margin-top: 100px;
}

/* Başlık: bölüm başlığı sayfada ayrıca var, formdaki başlık küçük kalır */
.fa-header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.fa-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #0e0e0e; color: #147aff; display: flex; align-items: center; justify-content: center; }
.fa-icon svg { width: 24px; height: 24px; }
.fa-title { margin: 0; font-size: 24px; line-height: 1.1; font-weight: 800; font-stretch: 78%; }
.fa-subtitle { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: #3b3b3b; }
.fiyat-al-container.fa-compact-header .fa-header { display: none; }

.fa-progress-bar { height: 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.07); margin: 0 0 28px; overflow: hidden; }
.fa-progress-fill { height: 100%; width: 33.33%; border-radius: 6px; background: linear-gradient(90deg, #3d7eff, #0071ff); transition: width .35s; }

.fa-form { margin: 0; }
.fa-step { display: none; }
.fa-step-active { display: block; animation: faFadeIn .3s ease; }
@keyframes faFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.fa-label { display: block; margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; font-stretch: 115%; text-transform: uppercase; color: #0050c2; }

/* Adım 1: cihaz kartları */
.fa-device-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .fa-device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fa-device-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 118px; padding: 18px 10px; border-radius: 22px; cursor: pointer; background: rgba(255, 255, 255, 0.85); border: 1.5px solid rgba(14, 14, 14, 0.1); transition: all .15s; text-align: center; user-select: none; }
.fa-device-card:hover { border-color: #147aff; transform: translateY(-2px); }
.fa-device-card-icon { width: 46px; height: 46px; border-radius: 50%; background: #f1f1ef; color: #0e0e0e; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.fa-device-card-icon svg { width: 24px; height: 24px; }
.fa-device-card-label { font-size: 15px; font-weight: 700; font-stretch: 90%; }
.fa-device-card.selected { background: #0e0e0e; color: #fff; border-color: #0e0e0e; box-shadow: 0 14px 30px rgba(14, 14, 14, 0.25); }
.fa-device-card.selected .fa-device-card-icon { background: #147aff; color: #fff; }

/* Adım 2-3: alanlar */
#fa-dynamic-fields, #fa-common-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
@media (max-width: 720px) { #fa-dynamic-fields, #fa-common-fields { grid-template-columns: 1fr; } }
.fa-field-group { min-width: 0; }
.fa-field-group:has(.fa-options-grid), .fa-field-group:has(.fa-checkbox-group) { grid-column: 1 / -1; }
.fa-field-group .fa-label { font-size: 12px; margin-bottom: 10px; }
.fa-select-wrapper { position: relative; }
.fa-select-wrapper::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #0e0e0e; border-bottom: 2px solid #0e0e0e; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.fa-select, .fa-input { width: 100%; font: inherit; font-size: 16px; padding: 15px 44px 15px 18px; border-radius: 16px; border: 1.5px solid rgba(14, 14, 14, 0.14); background: #fff; color: #0e0e0e; outline: none; appearance: none; -webkit-appearance: none; transition: border-color .15s, box-shadow .15s; }
.fa-input { padding-right: 18px; }
.fa-select:focus, .fa-input:focus { border-color: #147aff; box-shadow: 0 0 0 4px rgba(20,122,255,0.15); }
.fa-select:disabled { background: #f4f4f2; color: #888; cursor: not-allowed; }

.fa-options-grid, .fa-checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.fa-option-btn, .fa-checkbox-btn { font: inherit; font-size: 15px; font-weight: 600; padding: 12px 20px; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, 0.9); color: #0e0e0e; border: 1.5px solid rgba(14, 14, 14, 0.14); transition: all .15s; }
.fa-option-btn:hover, .fa-checkbox-btn:hover { border-color: #147aff; }
.fa-option-btn.selected, .fa-checkbox-btn.selected { background: #147aff; color: #fff; border-color: #147aff; box-shadow: 0 10px 24px rgba(20,122,255,0.35); }

.fa-error-msg { display: none; margin-top: 8px; font-size: 13px; font-weight: 600; color: #d42a00; }
.fa-error-msg.visible { display: block; }
.fa-field-error .fa-select, .fa-field-error .fa-input { border-color: #d42a00; }
.fa-field-error .fa-option-btn, .fa-field-error .fa-checkbox-btn { border-color: rgba(212, 42, 0, 0.45); }
.fa-shake { animation: faShake .4s ease; }
@keyframes faShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Gezinme */
.fa-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.fa-btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: 15px; font-weight: 600; border: 0; border-radius: 999px; cursor: pointer; transition: background .15s, transform .15s; }
.fa-btn svg { flex: none; }
.fa-btn-back { background: none; padding: 12px 4px; color: #0e0e0e; }
.fa-btn-back:hover { color: #147aff; }
.fa-btn-next { margin-left: auto; background: #0e0e0e; color: #fff; padding: 15px 26px; }
.fa-btn-next:hover { background: #262626; }
.fa-btn-whatsapp { margin-left: auto; background: #147aff; color: #fff; padding: 15px 26px; box-shadow: 0 10px 30px rgba(20,122,255,0.4); }
.fa-btn-whatsapp:hover { background: #066ef0; }

/* Özet: koyu panel */
.fa-summary { margin-top: 28px; padding: 26px 28px; border-radius: 24px; color: #fff; background: radial-gradient(90% 60% at 100% 0%, rgba(10,120,255,0.45), rgba(11, 11, 11, 0) 70%), #0e0e0e; }
.fa-summary-title { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; font-stretch: 115%; text-transform: uppercase; color: #5299ff; }
#fa-summary-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 720px) { #fa-summary-content { grid-template-columns: 1fr; } }
.fa-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; }
.fa-summary-label { color: #9a9a9a; }
.fa-summary-value { font-weight: 600; text-align: right; }

@media (max-width: 480px) {
	.fiyat-al-container { border-radius: 26px; }
	.fa-btn-next, .fa-btn-whatsapp { width: 100%; justify-content: center; margin-left: 0; }
	.fa-btn-back { order: 2; }
}
