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

:root {
    --primary: #1364FF;
    --dark: #151D31;
    --light: #F7F7F7;
    --success: #7CD65E;
    --gray: #939393;
}

body { 
    background-color: var(--light); 
    font-family: 'Outfit', sans-serif; 
    color: var(--dark);
}

/* HEADER */
.app-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.btn-exit { color: var(--gray); font-weight: 500; text-decoration: none; display: flex; align-items: center; gap: 8px; transition:0.3s; font-size: 14px;}
.btn-exit:hover { color: var(--primary); }

/* WIZARD CONTAINER */
.wizard-container {
    max-width: 750px;
    margin: 40px auto;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.04);
}
/* --- NUMARALI İLERLEME ÇUBUĞU (WIZARD STEPS) --- */
.step-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 40px auto;
    max-width: 400px; /* Genişliği sınırladık ki çok ayrık durmasın */
    position: relative;
}

/* Gri Çizgi (Arkaplan) */
.step-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e9ecef;
    transform: translateY(-50%);
    z-index: 0;
}

/* İlerleme Çizgisi (Mavi - JS ile genişliği artacak) */
.step-progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: #1364FF;
    transform: translateY(-50%);
    z-index: 0;
    width: 0%; /* JS ile güncellenecek */
    transition: width 0.4s ease;
}

/* Numaralı Daireler */
.step-item {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    text-align: center;
    line-height: 36px; /* Dikey ortalama */
    font-weight: 700;
    color: #999;
    transition: all 0.3s ease;
    font-size: 16px;
    cursor: default;
}

/* Aktif Adım (Mavi) */
.step-item.active {
    background: #1364FF;
    border-color: #1364FF;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(19, 100, 255, 0.2);
    transform: scale(1.1);
}

/* Tamamlanan Adım (Yeşil ve Tik İşareti) */
.step-item.completed {
    background: #198754; 
    border-color: #198754;
    color: #fff;
    content: '\2713'; /* Tik işareti */
}

/* TABS */
.service-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.service-tab-btn {
    padding: 10px 20px;
    border-radius: 30px;
    background: #f8f9fa;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #eee;
    font-size: 13px;
    display: flex; 
    align-items: center; 
    gap: 6px;
}
.service-tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.service-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(19, 100, 255, 0.2);
}

/* PROGRESS */
.step-progress {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    margin-bottom: 20px;
}
.step-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #eee;
    transition: 0.3s;
}
.step-dot.active { background: var(--primary); transform: scale(1.3); }
.step-dot.completed { background: var(--success); }

/* FORMS */
.form-step { display: none; animation: fadeIn 0.3s ease; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.form-control, .form-select {
    height: 50px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding-left: 15px;
    font-size: 14px;
    font-weight: 500;
    background-color: #fff;
    transition: 0.3s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(19, 100, 255, 0.05); }
.form-label { font-weight: 600; font-size: 13px; color: var(--dark); margin-bottom: 6px; margin-left: 3px; }

/* --- PAKET KUTULARI (GRID AYARI) --- */
.package-grid {
    display: grid;
    /* Masaüstü: 4 Sütun */
    grid-template-columns: repeat(4, 1fr); 
    gap: 12px;
}
.package-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px 5px; /* Padding küçültüldü */
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.package-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.package-card.selected {
    border-color: var(--primary);
    background: #F0F6FF;
    color: var(--primary);
    border-width: 2px;
}
.package-icon { font-size: 24px; margin-bottom: 8px; color: var(--gray); } /* İkon küçültüldü */
.package-card.selected .package-icon { color: var(--primary); }
.package-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; line-height: 1.2; }
.package-desc { font-size: 11px; color: var(--gray); line-height: 1.2; }

/* EXTRA SERVICES */
.extra-card {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; border: 1px solid #e5e7eb; border-radius: 10px;
    cursor: pointer; transition: 0.2s; margin-bottom: 10px;
}
.extra-card:hover { border-color: var(--primary); }
.extra-card.selected { border-color: var(--success); background: #F2FBF0; }
.extra-price { font-weight: 700; color: var(--success); font-size: 13px; margin-left: auto; }

/* BUTTONS */
.btn-primary-custom {
    background: var(--primary); color: #fff; border: none;
    padding: 14px 30px; border-radius: 50px; font-weight: 600; font-size: 15px;
    width: 100%; transition: 0.3s;
}
.btn-primary-custom:hover { background: #004ADB; transform: translateY(-2px); box-shadow: 0 8px 15px rgba(19, 100, 255, 0.2); }
.btn-back {
    background: transparent; border: 1px solid #ddd; color: var(--gray);
    padding: 14px 25px; border-radius: 50px; font-weight: 600; font-size: 14px;
}

/* --- MOBİL ÖZEL AYARLAR --- */
@media (max-width: 768px) {
    
    /* Wizard Padding */
    .wizard-container {
        margin: 10px;
        padding: 25px 15px;
    }

    /* Başlık Boyutu */
    h3 { font-size: 1.5rem; }

    /* ÜST SEKMELER (Hizmet Türleri) */
    .service-tabs {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4'ü yan yana */
        gap: 5px;
        margin-bottom: 20px;
    }

    .service-tab-btn {
        flex-direction: column; /* İkon üstte, yazı altta */
        padding: 8px 2px;
        text-align: center;
        font-size: 10px; /* Mobilde yazı çok küçülsün sığması için */
        gap: 4px;
        border-radius: 10px;
        height: 100%;
        justify-content: center;
        white-space: normal; /* Yazı gerekirse alt satıra geçsin */
        line-height: 1.2;
    }

    .service-tab-btn i {
        font-size: 20px; /* İkon boyutu */
        margin-bottom: 2px;
    }
}