/* Wrapper - İçerik alanının tamamını kullanmak için */
.tth-wizard-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    clear: both;
    box-sizing: border-box;
}

/* Genel Kapsayıcı ve Yazı Tipi */
.tth-wizard-container { 
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 40px 0 !important; 
    padding: 30px !important; 
    background-color: #f9f9f9 !important; 
    border: 1px solid #ddd !important; 
    border-radius: 8px !important; 
    font-family: 'Arial', sans-serif !important; 
    text-align: center !important; 
    text-transform: uppercase !important;
    box-sizing: border-box !important;
    clear: both !important;
    min-width: 100% !important;
}

/* WordPress içerik alanları için padding dengeleme */
.entry-content > .tth-wizard-wrapper,
.post-content > .tth-wizard-wrapper,
.page-content > .tth-wizard-wrapper,
#content > .tth-wizard-wrapper,
.main-content > .tth-wizard-wrapper,
.site-content > .tth-wizard-wrapper,
article > .tth-wizard-wrapper,
.entry > .tth-wizard-wrapper,
.wp-block-group__inner-container > .tth-wizard-wrapper {
    width: calc(100% + var(--wp--custom--spacing--outer, 0px) * 2) !important;
    max-width: calc(100% + var(--wp--custom--spacing--outer, 0px) * 2) !important;
    margin-left: calc(-1 * var(--wp--custom--spacing--outer, 0px)) !important;
    margin-right: calc(-1 * var(--wp--custom--spacing--outer, 0px)) !important;
    padding-left: var(--wp--custom--spacing--outer, 0px) !important;
    padding-right: var(--wp--custom--spacing--outer, 0px) !important;
}
.tth-wizard-container h2 { font-size: 28px; color: #333; margin-bottom: 15px; }
.tth-wizard-container h3 { font-size: 20px; font-weight: normal; color: #555; line-height: 1.6; }
.tth-wizard-container p { color: #666; font-size: 16px; margin-bottom: 25px; }
.tth-hidden-section { display: none; }

/* Butonlar */
.tth-buton { display: inline-block; background-color: #0073aa; color: #fff; padding: 15px 30px; font-size: 18px; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; margin-top: 30px; margin-left: 10px; margin-right: 10px; transition: background-color 0.3s ease; }
.tth-buton:hover { background-color: #005a87; }
.tth-buton:disabled { background-color: #a0a5aa; cursor: not-allowed; }
.tth-buton-ikincil { display: inline-block; background-color: #6c757d; color: #fff; padding: 10px 20px; font-size: 16px; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; margin-top: 10px; transition: background-color 0.3s ease; }
.tth-buton-ikincil:hover { background-color: #5a6268; }

/* Navigasyon Butonları Grubu */
.tth-navigation-buttons { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; }

/* Form Elemanları Genel */
.tth-input, .tth-select, .tth-wizard-container textarea { width: 100%; padding: 10px; font-size: 16px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; margin-top: 5px; font-family: 'Arial', sans-serif; }
.form-bolumu { text-align: left; padding: 20px; border: 1px solid #e0e0e0; border-radius: 5px; margin-top: 20px; background: #fff; }
.form-bolumu h4 { margin-top: 0; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.input-grubu { display: flex; gap: 15px; align-items: center; margin-top: 10px; }
.checkbox-grubu { margin-top: 20px; text-align: left; }
.tth-input.error { border: 2px solid red !important; }

/* ADIM 1 */
.tth-start-checkbox { margin: 30px 0; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.tth-start-checkbox input[type="checkbox"] { width: 22px; height: 22px; }
.tth-takip-turu-secenekleri { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.tth-takip-turu-kutu { border: 2px solid #ccc; padding: 25px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; background-color: #fff; }
.tth-takip-turu-kutu.selected { border-color: #0073aa; }
.tth-takip-turu-kutu h4 { margin: 0; font-size: 20px; color: #0073aa; }
.tth-takip-turu-kutu .aciklama { display: none; padding: 15px; background-color: #f0f8ff; border-top: 2px solid #0073aa; margin: 15px -25px -25px -25px; text-align: left; font-size: 15px; line-height: 1.4; color:#333; text-transform: none; }
.tth-takip-turu-kutu.selected .aciklama { display: block; }
.tth-tereke-alani { margin-top: 30px; padding: 20px; border: 1px dashed #ccc; border-radius: 5px; background-color: #fafafa; }

/* ADIM 11 */
.ek-talepler label { display: block; margin-bottom: 10px; font-size: 16px; text-align: left;}
.toplam-alacak { background-color: #eef7ff; }
.toplam-alacak .tth-input { font-weight: bold; font-size: 20px; color: #0073aa; text-align: right; }
#tth-ek-kalemler-listesi .input-grubu { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }

/* ADIM 12 */
.radio-soru { margin-top: 20px; text-align: left;}
.radio-soru p { margin-bottom: 8px; font-weight: 500;}
.radio-soru label { margin-right: 15px; }
.radio-soru input[type="text"] { margin-top: 8px; }

/* ÖNİZLEME EKRANI STİLLERİ */
.tth-onizleme-belgesi { text-align: left; padding: 40px; border: 1px solid #ccc; background: white; margin-top: 20px; font-family: 'Times New Roman', Times, serif; font-size: 11pt; line-height: 1.4; color: #000; text-transform: none; }
.tth-onizleme-belgesi.editable { border: 2px dashed #0073aa; background-color: #f0f8ff; }
.belge-baslik { text-align: center; font-weight: bold; text-decoration: underline; font-size: 14pt; margin-bottom: 15px; }
.belge-ornek-no { text-align: right; font-weight: bold; margin-bottom: 15px; }
.tth-onizleme-belgesi table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.tth-onizleme-belgesi td { border: 1px solid #000; padding: 8px; vertical-align: top; word-break: break-word; }
.tth-onizleme-belgesi .sol-sutun { width: 45%; font-weight: bold; font-size: 9pt; } /* PUNTO DEĞİŞİKLİĞİ */
.tth-onizleme-belgesi .sag-sutun { width: 55%; font-size: 11pt; }
.tth-onizleme-belgesi .sag-sutun p { margin: 0 0 10px 0; color: #000; }
.tth-onizleme-belgesi .ek-talepler-onizleme p { font-size: 8pt; line-height: 1.2; }
.tth-onizleme-belgesi .sag-sutun p:last-child { margin-bottom: 0; }
.belge-sonuc { margin-top: 30px; }
.belge-imza-alani { margin-top: 50px; text-align: right; }
.belge-imza-alani p { margin:0; }

/* HATA MESAJLARI */
.tth-error-message {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE TASARIM */
@media (max-width: 768px) {
    .tth-wizard-container {
        padding: 15px;
        margin: 20px 0;
        width: 100%;
    }
    .tth-wizard-container h2 {
        font-size: 22px;
    }
    .tth-takip-turu-secenekleri {
        grid-template-columns: 1fr;
    }
    .tth-navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .tth-navigation-buttons > div {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .tth-buton, .tth-buton-ikincil {
        width: 100%;
        margin: 5px 0;
    }
    .input-grubu {
        flex-direction: column;
    }
    .tth-onizleme-belgesi {
        padding: 20px;
        font-size: 10pt;
    }
    .tth-onizleme-belgesi .sol-sutun {
        font-size: 8pt;
    }
}

@media (max-width: 480px) {
    .tth-wizard-container {
        padding: 10px;
        margin: 10px 0;
        width: 100%;
    }
    .tth-wizard-container h2 {
        font-size: 18px;
    }
    .tth-wizard-container h3 {
        font-size: 16px;
    }
    .tth-onizleme-belgesi {
        padding: 15px;
        font-size: 9pt;
    }
    .tth-onizleme-belgesi table {
        font-size: 8pt;
    }
}

/* YAZDIRMA STİLLERİ (NİHAİ DÜZELTME) */
body.print-preview-body { 
    background-color: #525659;
    margin: 0; 
    padding: 0;
}
.print-preview-body .tth-onizleme-belgesi {
    width: 210mm;
    min-height: 297mm;
    padding: 0.3cm;
    margin: 0.3cm auto;
    border: 1px #D3D3D3 solid;
    border-radius: 5px;
    background: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}
.print-preview-body #wpadminbar { display: none; }

@media print {
  @page {
    size: A4;
    margin: 0.2cm;
  }
  body, html {
    margin: 0;
    padding: 0;
    background: #fff !important;
  }
  .print-preview-body .tth-onizleme-belgesi {
    margin: 0;
    border: initial;
    border-radius: initial;
    width: 100%;
    min-height: initial;
    box-shadow: initial;
    background: initial;
    page-break-after: always;
    page-break-before: auto;
  }
}