/* =========================
   GENEL
========================= */
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    background-color: #f8fafc;
    color: #333;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

:root {
    --primary-color: #2c6cb0; /* Teknoloji/Güven Mavisi - Akü için */
    --primary-hover: #1e5a96;
    --secondary-color: #27ae60; /* Enerji Yeşili */
    --success-color: #27ae60;
    --bg-light: #e8f4f8; /* Açık mavi arkaplan */
    --feature-color: #2c6cb0; /* Özellik grid için */
}

/* =========================
   ÜST BARLAR
========================= */
.trust-banner {
    background-color: #1e3a5f; /* Profesyonel koyu mavi */
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.top-bar {
    background: linear-gradient(135deg, #2c6cb0, #3498db);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(44, 108, 176, 0.3);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

/* =========================
   SOL ve SAĞ KOLONLAR İÇİN PADDING
========================= */
.main-content { 
    padding: 0px;
}

/* CONTAINER DÜZENLEMESİ - MOBİL İÇİN */
.container {
    max-width: 100% !important;
    padding-left: 0;
    padding-right: 0;
}

/* Masaüstü için eşit boşluk */
@media (min-width: 992px) {
    .container {
        max-width: 1000px !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .main-content .row {
        margin: 0 auto;
        max-width: 1000px;
    }
    
    /* Sol taraf için sağ boşluk */
    .col-lg-7 {
        padding-right: 15px;
    }
    
    /* Sağ taraf (form) için sol boşluk */
    .col-lg-5 {
        padding-left: 15px;
    }
}

/* =========================
   SOL TARAF - GÖRSELLER DÜZENİ (3 ADET ALT ALTA)
========================= */
.product-image-container {
    margin-bottom: 20px;
}

.product-image-container img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e1e8f0;
    transition: transform 0.3s ease;
    object-fit: contain; /* DOĞRU: Kesmeden sığdır */
    height: auto;
    max-height: 1200px; /* Masaüstü için maksimum yükseklik */
    background-color: #fff; /* Boşluk varsa beyaz görünsün */
}

.product-image-container img:hover {
    transform: scale(1.01);
}

/* 3 GÖRSELLİK ALT ALTA DÜZEN - HEPSİ AYNI BÜYÜKLÜKTE */
.product-image-container .row.g-2 {
    display: block;
}

.product-image-container .row.g-2 .col-12 {
    width: 100%;
    margin-bottom: 15px;
    float: none;
}

.product-image-container .row.g-2 .col-12:last-child {
    margin-bottom: 0;
}

.product-image-container .row.g-2 .col-12 img {
    width: 100%;
    height: auto;
    object-fit: contain; /* DOĞRU: Kesmeden sığdır */
    display: block;
    max-height: 600px; /* Masaüstü için maksimum yükseklik */
    background-color: #fff;
}

.features-box {
    background: #fff;
    border: 1px solid #e1e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.features-box h3 {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.features-box li {
    margin-bottom: 15px;
    font-size: 15px;
    display: flex;
    align-items: flex-start;
}

.features-box li i {
    color: var(--success-color);
    font-size: 18px;
    margin-right: 10px;
    margin-top: 2px;
}

.features-box .text-content span {
    display: block;
    font-size: 14px;
    color: #555;
}

/* =========================
   YORUMLAR
========================= */
.review-item p { line-height: 1.4; }

/* =========================
   SAĞ FORM
========================= */
.order-form-container {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e1e8f0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-header {
    background: var(--bg-light);
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e1e8f0;
    border-radius: 12px 12px 0 0;
}

.form-header h4 {
    margin: 0;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.form-header p {
    margin: 0;
    font-size: 13px;
    color: #555;
}

.step-title {
    font-weight: 800;
    margin: 15px 0 10px;
    font-size: 15px;
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

.step-title.mt-4 {
    margin-top: 25px !important;
}

.step-number {
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-family: 'Montserrat', sans-serif;
}

/* =========================
   RADIO CARD (PAKET & ÖDEME)
========================= */
.radio-group input { 
    display: none; 
}

.radio-card {
    display: block;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    padding: 15px 15px 15px 45px;
    margin-bottom: 12px;
    cursor: pointer;
    position: relative;
    transition: all .2s ease;
    background: #fff;
}

.radio-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(44, 108, 176, 0.1);
}

.radio-group input:checked + .radio-card {
    border-color: var(--primary-color);
    background: #e8f4f8;
}

/* Onay dairesi */
.check-circle {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color: white;
    transition: all .2s ease;
}

.radio-group input:checked + .radio-card .check-circle {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.radio-group input:checked + .radio-card .check-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

/* Paket içeriği */
.card-content .pkg-name {
    font-weight: 800;
    font-size: 16px;
    color: #333;
    display: block;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.card-content .pkg-desc {
    font-size: 14px;
    color: #666;
    display: block;
    margin-bottom: 8px;
}

.price-area { 
    margin-top: 6px; 
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 6px;
}

.new-price {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 20px;
}

/* PAKET 1 İÇİN BADGE (KAMPANYA) */
.badge-discount {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 5px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

/* PAKET 2 İÇİN ÖZEL BADGE (FIRSAT) */
#p2 + .radio-card .badge-discount {
    background: #27ae60;
}

/* =========================
   HIGHLIGHT BADGE (Paket 2 için)
========================= */
.highlight-badge {
    display: inline-block;
    background: #e8f4f8;
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    border: 1px dashed #2c6cb0;
    margin-top: 5px;
    animation: pulse-attention 2s infinite;
    font-family: 'Montserrat', sans-serif;
}

@keyframes pulse-attention {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(44, 108, 176, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 5px rgba(44, 108, 176, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(44, 108, 176, 0); }
}

/* =========================
   FORM INPUT
========================= */
.form-control,
.form-select {
    height: 50px;
    border-radius: 8px;
    border: 1px solid #d1d1d1;
    padding-left: 15px;
    font-family: 'Montserrat', sans-serif;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(44, 108, 176, 0.08);
}

textarea.form-control {
    font-family: 'Montserrat', sans-serif;
}

/* =========================
   SUBMIT BUTTON
========================= */
.btn-order {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    width: 100%;
    font-size: 18px;
    font-weight: 800;
    padding: 18px;
    border: none;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(44, 108, 176, 0.3);
    transition: all 0.2s;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 108, 176, 0.4);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
}

/* =========================
   MOBİL
========================= */
@media (max-width: 768px) {
    /* CONTAINER FIX - MOBİLDE BEYAZ BOŞLUK KALDIRMA */
    .container.main-content {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100% !important;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-lg-7, .col-lg-5 {
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 100%;
    }
    
    .product-image-container { 
        margin-bottom: 20px; 
        padding: 0 10px;
    }
    
    .product-image-container img {
       /* max-height: 450px; /* Mobil için daha küçük maksimum yükseklik */
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .product-image-container .row.g-2 .col-12 img {
        /*max-height: 450px; /* Mobil için daha küçük maksimum yükseklik */
    }
    
    .order-form-container {
        box-shadow: none;
        border: none;
        border-top: 1px solid #e1e8f0;
        border-radius: 0;
        margin-top: 20px;
        padding: 0 10px;
        background: #fff;
    }
    
    .btn-order {
        font-size: 16px;
        padding: 15px;
        margin: 15px 0;
    }
    
    .top-bar {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .trust-banner {
        padding: 8px 10px;
    }
    
    .features-box {
        padding: 15px;
        margin: 15px 10px;
        border-radius: 10px;
    }
    
    /* Genel içerik için kenar boşlukları */
    .main-content > .row > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 992px) {
    .main-content .row {
        margin: 0;
        max-width: 100%;
    }
    
    .container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Form elemanları için sabit boyut */
.form-control, .form-select, textarea.form-control {
    min-height: 50px;
    height: auto;
}

/* Buton için sabit boyut */
.btn-order {
    height: 60px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Paket kartları için */
.radio-card {
    min-height: 90px;
    position: relative;
}

/* =========================
   MESAFELİ SATIŞ SÖZLEŞMESİ MODAL
========================= */
.sozlesme-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.sozlesme-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.sozlesme-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sozlesme-modal-header {
    background: linear-gradient(135deg, #2c6cb0, #3498db);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    font-family: 'Montserrat', sans-serif;
}

.sozlesme-modal-header h3 {
    margin: 0;
    font-weight: 800;
    font-size: 20px;
}

.sozlesme-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
    font-weight: 300;
}

.sozlesme-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.sozlesme-modal-body {
    padding: 0;
    flex: 1;
}

.sozlesme-iframe {
    width: 100%;
    height: 70vh;
    border: none;
    display: block;
}

/* Mobil için */
@media (max-width: 768px) {
    .sozlesme-modal {
        padding: 10px;
    }
    
    .sozlesme-modal-content {
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .sozlesme-modal-header {
        padding: 15px;
    }
    
    .sozlesme-modal-header h3 {
        font-size: 18px;
    }
    
    .sozlesme-modal-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .sozlesme-iframe {
        height: 75vh;
    }
}

/* Link stil */
.sozlesme-link {
    color: #2c6cb0;
    text-decoration: underline;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s;
    display: inline;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-family: 'Montserrat', sans-serif;
}

.sozlesme-link:hover {
    color: #1e5a96;
    text-decoration: none;
}

/* Alert stil güncellemesi */
.alert-warning {
    background-color: #fff3e0;
    border-color: #ffcc80;
    color: #e65100;
    font-family: 'Montserrat', sans-serif;
}

/* Form check güncellemesi */
.form-check-label {
    font-family: 'Montserrat', sans-serif;
}

/* Yorum yazan isimler için font */
.review-item strong {
    font-family: 'Montserrat', sans-serif;
}

/* =========================
   ÖZELLİK GRID (4'ü 1 Arada)
========================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.feature-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    border: 2px solid var(--feature-color);
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: #e8f4f8;
}

.feature-item i {
    font-size: 28px;
    color: var(--feature-color);
    margin-bottom: 10px;
    display: block;
}

.feature-item span {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: block;
    line-height: 1.4;
}

.feature-item span strong {
    color: var(--primary-color);
    display: block;
    margin-top: 3px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin: 15px 0;
    }
}

/* =========================
   TEKNİK ÖZELLİKLER TABLO STİLİ
========================= */
.tech-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.tech-specs-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e1e8f0;
}

.tech-specs-table tr:last-child td {
    border-bottom: none;
}

.tech-specs-table td:first-child {
    font-weight: 600;
    color: #2c6cb0;
    width: 50%;
}

.tech-specs-table td:last-child {
    color: #555;
}

/* =========================
   TIKLANABİLİR FEATURES BOX
========================= */
.features-box-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.features-box-link:hover {
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.features-box-link:hover .features-box {
    box-shadow: 0 8px 20px rgba(44, 108, 176, 0.15);
    border-color: #2c6cb0;
}

.features-box-link .features-box {
    transition: all 0.2s ease;
}

/* Mobil için hover efektini kaldır */
@media (max-width: 768px) {
    .features-box-link:hover {
        transform: none;
    }
    .features-box-link:hover .features-box {
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
        border-color: #e1e8f0;
    }
}