/* =========================
   GENEL
========================= */
html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #fcfcfc;
    color: #333;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

:root {
    --primary-color: #d35400;
    --primary-hover: #ba4a00;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --bg-light: #fdf2e9;
}

/* =========================
   ÜST BARLAR
========================= */
.trust-banner {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 0;
    text-align: center;
}

.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* =========================
   SOL ve SAĞ KOLONLAR İÇİN PADDING
========================= */
.main-content { 
    padding: 0px 0px;
}

/* Masaüstü için eşit boşluk */
@media (min-width: 992px) {
    .main-content .row {
        margin: 0 auto;
        max-width: 1200px;
    }
    
    /* 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
========================= */
.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 #f1f1f1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: contrast(1.02) saturate(1.02);
    object-fit: cover;
}

.features-box {
    background: #fff;
    border: 1px solid #eee;
    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;
}

.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 #eee;
    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 #eee;
}

.form-header h4 {
    margin: 0;
    font-weight: 800;
    color: var(--primary-color);
}

.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;
}

.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;
}

/* =========================
   RADIO CARD (PAKET & ÖDEME) - GÜNCELLENDİ
========================= */
.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(211, 84, 0, 0.1);
}

.radio-group input:checked + .radio-card {
    border-color: var(--primary-color);
    background: #fffaf5;
}

/* Onay dairesi SOL TARAFA ALINDI - GÜNCELLENDİ */
.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);
}

/* Onay işareti - GÜNCELLENDİ */
.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 düzenlemesi */
.card-content .pkg-name {
    font-weight: 800;
    font-size: 16px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.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: #c0392b;
    font-weight: 800;
    font-size: 20px;
}

.badge-discount {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 5px;
    font-weight: bold;
}

/* =========================
   HIGHLIGHT BADGE
========================= */
.highlight-badge {
    display: inline-block;
    background: #fff9c4;
    color: #d32f2f;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    border: 1px dashed #ffb300;
    margin-top: 5px;
    animation: pulse-attention 2s infinite;
}

@keyframes pulse-attention {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,193,7,0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 5px rgba(255,193,7,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,193,7,0); }
}

/* =========================
   BEDEN SEÇİMİ - GÜNCELLENDİ
========================= */
/* Radio input'u tamamen gizle */
.size-box {
    display: block;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 15px 5px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s ease;
    background-color: white;
    font-size: 16px;
    color: #333;
    position: relative;
}

/* Hover efekti */
.size-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Seçili beden - GÜNCELLENDİ */
input[type=radio]:checked + .size-box {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    font-weight: 900;
    box-shadow: 0 0 0 2px rgba(211, 84, 0, 0.2);
}

/* Beden altındaki küçük yazı */
.size-box small {
    display: block;
    font-weight: 600;
    margin-top: 5px;
    font-size: 12px;
    opacity: 0.8;
}

input[type=radio]:checked + .size-box small {
    color: rgba(255, 255, 255, 0.9);
}

/* =========================
   BEDEN SEÇİMİ RADIO INPUT'LARINI TAMAMEN GİZLE
========================= */
input[type=radio][name="beden"] {
    display: none !important;
}

/* Ayrıca, eğer beden seçimi için hover veya seçili durumda görünen işaret varsa onu da kaldıralım */
input[type=radio]:checked + .size-box::after {
    content: none !important; /* Eğer önceden eklenmiş bir onay işareti varsa kaldır */
}
/* =========================
   FORM INPUT
========================= */
.form-control,
.form-select {
    height: 50px;
    border-radius: 8px;
    border: 1px solid #d1d1d1;
    padding-left: 15px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(211,84,0,0.08);
}

/* =========================
   SUBMIT BUTTON
========================= */
.btn-order {
    background: linear-gradient(to right, var(--primary-color), var(--primary-hover));
    color: white;
    width: 100%;
    font-size: 20px;
    font-weight: 800;
    padding: 18px;
    border: none;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(211,84,0,0.3);
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211,84,0,0.4);
}

/* =========================
   MOBİL
========================= */
@media (max-width: 768px) {
    .product-image-container { margin-bottom: 20px; }
    .order-form-container {
        box-shadow: none;
        border: none;
        border-top: 1px solid #eee;
        border-radius: 0;
        margin-top: 20px;
    }
    .btn-order {
        font-size: 18px;
        padding: 15px;
    }
    
    /* Mobil için padding düzenlemesi */
    .col-lg-7, .col-lg-5 {
        padding-left: 10 !important;
        padding-right: 10 !important;
    }
}

@media (max-width: 992px) {
    .main-content .row {
        margin: 0;
        max-width: 100%;
    }
}
/* Görseller için fixed boyut */
.product-image-container img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4; /* Görsel oranını koru */
    object-fit: cover;
    display: block;
}

/* 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;
}

/* Beden seçimi kutuları */
.size-box {
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: 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(to right, #d35400, #e67e22);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.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: #d35400;
    text-decoration: underline;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s;
    display: inline;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}

.sozlesme-link:hover {
    color: #ba4a00;
    text-decoration: none;
}