/* =========================================
   ULTRA PREMIUM TASARIM (V5 - FULL PACK)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    background-color: #f8fafc !important;
    font-family: 'Inter', sans-serif !important;
}

.container {
    max-width: 600px !important;
    margin: 0 auto;
}

/* =========================================
   BÖLÜM 1: ÜST KISIM (PREMIUM PAKETLER)
   ========================================= */

.paket {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 2px solid #f1f5f9 !important; /* Çok silik gri */
    border-radius: 24px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02) !important;
    overflow: visible !important; /* Rozet dışarı taşabilsin */
}

/* Hover Efekti */
.paket:hover {
    border-color: #cbd5e1 !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05) !important;
}

/* SEÇİLİ DURUM (Sihirli Kısım) */
.paket:has(input:checked) {
    border: 2px solid #dc2626 !important; /* Kırmızı Çerçeve */
    background: #fffafa !important; /* Çok hafif kırmızımsı zemin */
    box-shadow: 0 20px 30px -10px rgba(220, 38, 38, 0.15) !important;
}

/* TİK İŞARETİ (Radio Buton) */
.paket-input {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 20px !important;
    flex-shrink: 0 !important;
}

/* Standart radioyu gizle, yerine özel kutu */
.paket-input input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 28px !important;
    height: 28px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: grid !important;
    place-content: center !important;
    margin: 0 !important;
}

/* Seçilince İçi Dolu Kırmızı Tik */
.paket-input input[type="radio"]:checked {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3) !important;
}

/* Tik İkonu (SVG Mantığıyla CSS ile çizim) */
.paket-input input[type="radio"]:checked::after {
    content: '' !important;
    width: 6px !important;
    height: 12px !important;
    border: solid white !important;
    border-width: 0 3px 3px 0 !important;
    transform: rotate(45deg) translate(0px, -2px) !important;
    display: block !important;
}

/* ÜRÜN RESMİ */
.paket-resim {
    flex: 0 0 90px !important;
    margin-right: 20px !important;
    position: relative !important;
}

.paket-resim img {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    padding: 5px !important;
    background: #fff !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
}

/* İÇERİK DÜZENİ */
.paket-title {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.paket-baslik {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 5px !important;
    line-height: 1.4 !important;
}

/* FİYAT ALANI */
.paket-price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.eski-fiyat {
    font-size: 13px !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
    font-weight: 500 !important;
    margin-bottom: 2px !important;
}

.guncel-fiyat {
    font-size: 24px !important; /* Fiyatı patlat */
    font-weight: 800 !important;
    color: #dc2626 !important;
    letter-spacing: -0.5px !important;
    line-height: 1 !important;
}

/* KARGO ETİKETİ (Havalı Rozet) */
.ucretsiz-kargo {
    position: absolute !important;
    top: -12px !important;
    right: 20px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important; /* Yeşil Degrade */
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    z-index: 10 !important;
    float: none !important;
    display: inline-block !important;
    width: auto !important;
}

/* =========================================
   BÖLÜM 2: ALT KISIM (FORM & GÜVENLİK)
   ========================================= */

/* Beyaz Kutu */
#bilgiler .container {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06) !important;
    border: 1px solid #f1f5f9 !important;
    margin-top: 20px !important;
}

/* INPUTLAR */
#siparis input[name="sp_musteri"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 15px center !important;
    background-size: 22px !important;
    padding-left: 50px !important;
    text-indent: 0 !important;
}

#siparis input[name="sp_telefon"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 15px center !important;
    background-size: 20px !important;
    padding-left: 50px !important;
}

#siparis textarea[name="sp_adres"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 15px 20px !important;
    background-size: 22px !important;
    padding-left: 50px !important;
    padding-top: 20px !important;
}

#siparis .form-control, 
#siparis input[type="text"],
#siparis input[type="tel"],
#siparis select,
#siparis textarea {
    display: block !important;
    width: 100% !important;
    height: 60px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    background-color: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    transition: all 0.3s ease !important;
    margin-bottom: 15px !important;
    outline: none !important;
}

#siparis .form-control:focus,
#siparis input:focus,
#siparis select:focus,
#siparis textarea:focus {
    background-color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}

#siparis textarea { height: 120px !important; }

/* Buton ve Güvenlik */
#btn-siparis-tamamla {
    width: 100% !important;
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
    color: white !important;
    padding: 20px !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    border: none !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    box-shadow: 0 10px 20px rgba(185, 28, 28, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-top: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

#btn-siparis-tamamla:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 20px 30px rgba(185, 28, 28, 0.4) !important;
}

.guvenlik-rozeti {
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #dcfce7;
    color: #166534;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Hata Mesajları */
.validate_error {
    color: #ef4444 !important;
    font-size: 12px !important;
    margin-top: -10px !important;
    margin-bottom: 15px !important;
    padding-left: 5px !important;
}

/* Mobil Düzeltmeleri */
@media screen and (max-width: 480px) {
    .paket {
        padding: 15px !important;
        align-items: flex-start !important;
    }
    .paket-resim {
        flex: 0 0 80px !important;
        margin-right: 12px !important;
    }
    .paket-input {
        margin-top: 30px !important; /* Mobilde ortalamak için */
    }
    .guncel-fiyat {
        font-size: 20px !important;
    }
}
/* =========================================
   FİNAL RÖTUŞLAR (Pasta Çileği)
   ========================================= */

/* 1. ÖDEME YÖNTEMİNE KREDİ KARTI İKONU */
#siparis select[name="sp_odeme_yontemi"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='1' y1='10' x2='23' y2='10'%3E%3C/line%3E%3C/svg%3E"), 
                      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: 18px center, right 15px center !important; /* Hem kart ikonu hem ok işareti */
    background-size: 22px, 18px !important;
    padding-left: 50px !important;
}

/* 2. BUTON NABIZ ANİMASYONU (Dikkat Çekici) */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

#btn-siparis-tamamla {
    animation: pulse-red 2s infinite !important;
}

/* 3. BAŞLIK İÇİN UFAK BİR DÜZENLEME */
/* Eğer o yeşil görseli kaldırıp kodla başlık eklediysen bu, başlığı forma daha iyi oturtur */
.form-baslik-container {
    padding-bottom: 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 20px !important;
}
/* =========================================
   PREMIUM HEADER BANNER (Resim Gibi Kod)
   ========================================= */

.premium-form-header {
    /* O resimdeki gibi kırmızı degrade arka plan */
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-radius: 20px; /* Kenarları yuvarla */
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Sola hizalı ama şık */
    gap: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.3); /* Kırmızı gölge */
    position: relative;
    overflow: hidden;
    color: #fff; /* Yazılar beyaz */
}

/* Arka plana hafif desen efekti (Opsiyonel ama havalı) */
.premium-form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.header-icon-bg {
    background: rgba(255, 255, 255, 0.2); /* Yarı saydam beyaz */
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-icon-bg svg {
    stroke: #fff; /* İkon rengi beyaz */
    width: 30px;
    height: 30px;
}

.header-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header-content p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9); /* Hafif saydam beyaz */
    font-weight: 500;
}

/* Mobilde alt alta gelmesin, sığışsın */
@media screen and (max-width: 480px) {
    .premium-form-header {
        padding: 20px;
        gap: 15px;
    }
    .header-icon-bg {
        width: 50px;
        height: 50px;
    }
    .header-content h3 {
        font-size: 17px;
    }
}
/* =========================================
   GÜVEN BANDI (Trust Badges)
   ========================================= */

.guven-bandi-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0; /* Üstüne kesikli çizgi atar, ayırır */
}

.guven-kutusu {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 5px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.guven-kutusu:hover {
    background: #fff;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.guven-ikon {
    font-size: 24px;
    margin-bottom: 5px;
}

.guven-metin strong {
    display: block;
    font-size: 11px;
    color: #0f172a;
    font-weight: 700;
    text-transform: uppercase;
}

.guven-metin span {
    display: block;
    font-size: 10px;
    color: #64748b;
    margin-top: 2px;
}

/* Mobilde sıkışmasın */
@media screen and (max-width: 400px) {
    .guven-metin strong { font-size: 9px; }
    .guven-metin span { font-size: 9px; }
    .guven-ikon { font-size: 20px; }
}