:root {
    --primary-color: #00a36c;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --border-color: #e9ecef;
    --hover-color: rgba(0, 163, 108, 0.1);
    --shadow-color: rgba(0, 163, 108, 0.15);
    --transition: all 0.3s ease;
}

/* Debug bilgileri */
.debug-info {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    font-size: 14px !important;
    color: #495057 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.debug-info strong {
    color: #00a36c !important;
    display: block !important;
    margin-bottom: 8px !important;
}

.debug-info span {
    font-weight: 500 !important;
    color: #6c757d !important;
}

.debug-info span:not(:last-child)::after {
    content: ' → ' !important;
    color: #adb5bd !important;
    font-weight: normal !important;
}

/* Step by Step İlan Girişi CSS */

.step-ilan-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Progress Bar */
.step-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step.active {
    border-color: #00a36c;
    color: #00a36c;
    background: #f0fff4;
}

.step.completed {
    border-color: #00a36c;
    color: #fff;
    background: #00a36c;
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    text-align: center;
    margin-bottom: 40px;
}

.step-title h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-title p {
    font-size: 1.6rem;
    color: #666;
}

/* Kategori Seçimi */
.category-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.category-column {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-column:hover {
    border-color: #00a36c;
    box-shadow: 0 10px 30px rgba(0, 163, 108, 0.1);
}

.category-column h4 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.category-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Kategori Seçenekleri */
.category-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
}

.category-option:hover {
    border-color: #00a36c;
    background: #f0fff4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 163, 108, 0.15);
}

.category-option:hover .option-text {
    color: #00a36c;
    font-weight: 600;
}

/* Seçilen kategori için yeşil stil - Basit selector */
.category-option.selected {
    border-color: #00a36c !important;
    background: #f0fff4 !important;
    box-shadow: 0 4px 12px rgba(0, 163, 108, 0.2) !important;
}

.category-option.selected:hover {
    background: #e6ffed !important;
    border-color: #00a36c !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 163, 108, 0.25) !important;
}

.category-option.selected .option-text {
    color: #00a36c !important;
    font-weight: 600 !important;
}

.category-option input[type="radio"] {
    display: none;
}

.option-text {
    flex: 1;
    font-size: 1.6rem;
    color: #333;
    font-weight: 500;
    cursor: pointer;
}

.category-option.selected .option-text {
    color: #00a36c;
    font-weight: 600;
}
  
  /* Kategori String Display */
  .category-string-display {
    margin: 30px 0;
    text-align: center;
  }
  
  .breadcrumb {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: 25px;
    border: 1px solid #e9ecef;
  }
  
  .breadcrumb-item {
    color: #6c757d;
    font-weight: 500;
    font-size: 1.6rem;
  }
  
  .breadcrumb-item:first-child {
    color: #007bff;
    font-weight: 600;
  }
  
  .breadcrumb-separator {
    margin: 0 10px;
    color: #adb5bd;
    font-weight: 300;
  }
  
  /* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.step2-field-grid.arsa-active {
    border-bottom: 1px dashed #e3e8eb;
    padding-bottom: 24px;
}

.arsa-field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 24px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    background: #fff;
}

.field-anchor {
    display: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00a36c;
    box-shadow: 0 0 0 3px rgba(0, 163, 108, 0.1);
}

.form-group.focused label {
    color: #00a36c;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.field-error {
    color: #dc3545;
    font-size: 1.2rem;
    margin-top: 5px;
    font-weight: 500;
}

/* Checkbox Styling */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

/* File Input */
.form-group input[type="file"] {
    padding: 10px;
    border: 2px dashed #e0e0e0;
    background: #f9f9f9;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #00a36c;
    background: #f0fff4;
}

.file-preview {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.file-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-prev {
    background: #6c757d;
    color: #fff;
}

.btn-prev:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-next,
.btn-submit {
    background: #00a36c;
    color: #fff;
}

.btn-next:hover,
.btn-submit:hover {
    background: #008f5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 163, 108, 0.3);
}

.btn-next:disabled,
.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Önizleme */
.preview-content {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.preview-section h4 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #00a36c;
    padding-bottom: 8px;
}

.preview-section p {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

.preview-section strong {
    color: #333;
    font-weight: 600;
}

/* Toast Messages */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: #00a36c;
}

.toast-error {
    background: #dc3545;
}

.toast-info {
    background: #17a2b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .step-ilan-form-container {
        padding: 15px;
    }
    
    .step-header h2 {
        font-size: 2.2rem;
    }
    
    .step-progress {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-progress::before {
        display: none;
    }
    
    .category-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .step-header h2 {
        font-size: 1.8rem;
    }
    
    .step-title h3 {
        font-size: 1.6rem;
    }
    
    .category-column {
        padding: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #00a36c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #00a36c;
    stroke-miterlimit: 10;
    margin: 0 auto 20px;
    box-shadow: inset 0px 0px 0px #00a36c;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.success-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #00a36c;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fill {
    100% { box-shadow: inset 0px 0px 0px 30px #00a36c; }
}

/* Hata ve Loading Stilleri */
.loading {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
}

.category-placeholder {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.konut-turu-container.no-subcategory {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.category-complete-card {
    background: linear-gradient(135deg, #f2fff6 0%, #e7fff0 100%);
    border: 1px solid #c6f2d6;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 163, 108, 0.12);
    max-width: 240px;
    width: 100%;
    color: #0f5132;
}

.category-complete-icon {
    font-size: 36px;
    background: #00a36c;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    box-shadow: 0 8px 18px rgba(0, 163, 108, 0.25);
}

.category-complete-body h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-complete-body p {
    font-size: 14px;
    color: #1f7751;
    margin: 0;
}

/* Toast Mesajları */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: #28a745;
}

.toast-error {
    background: #dc3545;
}

.toast-info {
    background: #17a2b8;
}

.toast-message {
    margin-right: 10px;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    float: right;
    margin-left: 10px;
}

.toast-close:hover {
    opacity: 0.8;
}

/* Global Kategori String Display - Tüm step'lerin altında */
.global-category-string-display {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 12px 24px;
    box-shadow: 0 8px 32px rgba(0, 163, 108, 0.2);
    z-index: 1000;
    min-width: 300px;
    text-align: center;
    transition: all 0.3s ease;
}

.global-category-string-display:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 40px rgba(0, 163, 108, 0.3);
    transform: translateX(-50%) translateY(-2px);
}

.global-category-string-display .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.global-category-string-display .breadcrumb-item {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: color 0.3s ease;
}

.global-category-string-display .breadcrumb-item:first-child {
    color: var(--primary-color);
    font-weight: 600;
}

.global-category-string-display .breadcrumb-separator {
    color: #ccc;
    font-weight: 300;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .global-category-string-display {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        min-width: auto;
        padding: 10px 16px;
    }
    
    .global-category-string-display:hover {
        transform: none;
    }
    
    .global-category-string-display .breadcrumb {
        font-size: 12px;
        gap: 6px;
    }
}

/* Konut özel alanları - başlangıçta gizli */
.konut-ozel-alan {
    display: none;
}

/* Konut özel alanları gösterildiğinde */
.konut-ozel-alan.show {
    display: block;
}

/* WYSIWYG Editör Stilleri */
.wysiwyg-field-container {
    margin-bottom: 20px;
}

.wysiwyg-field-container .wp-editor-container {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wysiwyg-field-container .wp-editor-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 163, 108, 0.1);
}

/* WordPress editör stillerini özelleştir */
.wysiwyg-field-container .wp-editor-area {
    border: none !important;
    outline: none !important;
    min-height: 120px !important;
}

.wysiwyg-field-container .wp-editor-tools {
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
    padding: 8px;
}

/* Form grid düzeni */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* İlan başlığı ve açıklama için tam genişlik */
.form-group.full-width {
    grid-column: 1 / -1;
}

/* Özel olarak ilan başlığı, açıklama ve kaynak_url için */
.form-group[data-field="ilan_basligi"],
.form-group[data-field="aciklama"],
.form-group[data-field="kaynak_url"],
.form-group[data-field="konumu"] {
    grid-column: 1 / -1;
}



/* WYSIWYG editör tam genişlik */
.wysiwyg-field-container {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

/* CKEditor Stilleri */
.ckeditor-textarea {
    display: none; /* CKEditor başlatıldıktan sonra gizle */
}

.ck.ck-editor {
    width: 100%;
    margin-bottom: 20px;
}

.ck.ck-editor__main {
    min-height: 200px;
}

.ck.ck-editor__main > .ck-editor__editable {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.ck.ck-editor__main > .ck-editor__editable:not(.ck-editor__nested-editable).ck-focused {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 163, 108, 0.1);
}

.ck.ck-toolbar {
    border-color: var(--border-color);
    background: #f8f9fa;
}

.ck.ck-toolbar .ck-toolbar__items {
    flex-wrap: wrap;
}

.ck.ck-button {
    border-radius: 4px;
    transition: all 0.2s ease;
}

.ck.ck-button:hover {
    background: #e9ecef;
}

.ck.ck-button.ck-on {
    background: var(--primary-color);
    color: white;
}

.ck.ck-dropdown__panel {
    border-color: var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* CKEditor responsive tasarım */
@media (max-width: 768px) {
    .ck.ck-toolbar .ck-toolbar__items {
        justify-content: center;
    }
    
    .ck.ck-editor__main > .ck-editor__editable {
        min-height: 150px;
        max-height: 300px;
    }
}

/* Location Seçimi Stilleri */
.location-selection {
    grid-column: 1 / -1;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.location-selection h4 {
    margin: 0 0 20px 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
}

.location-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.location-column h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Select Wrapper Stilleri */
.select-wrapper {
    position: relative;
}

.location-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.location-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 163, 108, 0.1);
}

.location-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 163, 108, 0.1);
}

.location-select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

/* Arama Kutusu Stilleri */
.search-box {
    position: relative;
    margin-top: 8px;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 163, 108, 0.1);
}

.search-input::placeholder {
    color: #999;
    font-style: italic;
}

/* Arama Sonuçları Stilleri */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    font-size: 13px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item.no-results {
    color: #999;
    font-style: italic;
    cursor: default;
}

.search-result-item.no-results:hover {
    background-color: transparent;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .location-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .location-selection {
        padding: 15px;
    }
    
    .search-results {
        max-height: 150px;
    }
}

/* Checkbox Stilleri - Görseldeki gibi modern tasarım */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    margin-top: 16px;
    align-items: stretch;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 6px;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
    min-height: 48px;
}

.checkbox-option:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-option .checkmark {
    width: 16px;
    height: 16px;
    border-left: 8px solid #d1d5db;
    border-right: 8px solid #d1d5db;
    margin-right: 8px;
    border-radius: 3px;
    background: white;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-option input[type="checkbox"]:checked + .checkmark {
    background-color: #3b82f6;
    border-color: #3b82f6;
    transform: scale(1.1);
}

.checkbox-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.checkbox-option .checkbox-text {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    line-height: 1.3;
    flex: 1;
    text-align: left;
}

.checkbox-option:hover .checkmark {
    border-color: #3b82f6;
}

/* Responsive tasarım */
@media (max-width: 1200px) {
    .checkbox-group {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 992px) {
    .checkbox-group {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .checkbox-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .checkbox-option {
        padding: 8px 10px;
        min-height: 36px;
    }
    
    .checkbox-option .checkmark {
        width: 14px;
        height: 14px;
    }
    
    .checkbox-option .checkbox-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .checkbox-option {
        padding: 10px 12px;
        min-height: 40px;
    }
    
    .checkbox-option .checkmark {
        width: 16px;
        height: 16px;
    }
    
    .checkbox-option .checkbox-text {
        font-size: 13px;
    }
}

/* Medya Alanları Stilleri */
.featured-image-upload,
.gallery-upload,
.video-upload,
.tur-upload {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.featured-image-upload:hover,
.gallery-upload:hover,
.video-upload:hover,
.tur-upload:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.featured-image-upload input[type="file"],
.gallery-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Video ve 3D Tur URL alanları için 100% width */
.video-upload input[type="url"],
.tur-upload input[type="url"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.video-upload input[type="url"]:focus,
.tur-upload input[type="url"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 4. step'teki tüm medya alanları için zorla 100% width */
.step-content[data-step="4"] .featured-image-upload,
.step-content[data-step="4"] .gallery-upload,
.step-content[data-step="4"] .video-upload,
.step-content[data-step="4"] .tur-upload {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    grid-column: 1 / -1 !important;
    display: block !important;
}

.step-content[data-step="4"] .video-upload input[type="url"],
.step-content[data-step="4"] .tur-upload input[type="url"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 4. step'teki form-grid'i tek sütun yap */
.step-content[data-step="4"] .form-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
}

/* 4. step'teki tüm form-group'ları tam genişlik yap */
.step-content[data-step="4"] .form-group {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.upload-placeholder {
    pointer-events: none;
}

.upload-placeholder .upload-buttons {
    pointer-events: auto;
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-media-library,
.btn-upload-file {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-media-library {
    background: var(--primary-color);
    color: white;
}

.btn-media-library:hover {
    background: #008f5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 163, 108, 0.3);
}

.btn-upload-file {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-upload-file:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.upload-placeholder p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* Image Preview Stilleri */
.image-preview,
.gallery-preview {
    margin-top: 16px;
}

.preview-item {
    position: relative;
    display: inline-block;
    margin: 8px 8px 8px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
}

.remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-image:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Galeri Preview Grid */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.gallery-preview .preview-item {
    margin: 0;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .featured-image-upload,
    .gallery-upload {
        padding: 16px;
    }
    
    .upload-icon {
        font-size: 28px;
    }
    
    .upload-placeholder p {
        font-size: 13px;
    }
    
    .upload-placeholder .upload-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-media-library,
    .btn-upload-file {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .preview-image {
        width: 100px;
        height: 100px;
    }
    
    .gallery-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
}

/* Featured Image Preview Stilleri */
.featured-preview {
    border: 2px solid #4CAF50 !important;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%) !important;
    padding: 15px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15) !important;
    position: relative !important;
    margin-top: 15px !important;
}

.featured-preview .preview-image {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
    margin-bottom: 10px !important;
}

.featured-preview .preview-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    margin-bottom: 10px !important;
}

.featured-preview .preview-title {
    font-weight: 600 !important;
    color: #2E7D32 !important;
    font-size: 14px !important;
    text-align: center !important;
}

.featured-preview .preview-size {
    font-size: 12px !important;
    color: #666 !important;
    text-align: center !important;
    font-style: italic !important;
}

.featured-preview .remove-image {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: #f44336 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3) !important;
}

.featured-preview .remove-image:hover {
    background: #d32f2f !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4) !important;
}

/* Featured image upload container'ı gizleme */
.featured-image-upload.hidden {
    display: none !important;
}

/* Preview Stilleri */
.preview-content {
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f7fa 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.preview-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.preview-meta {
    display: flex;
    gap: 10px;
}

.preview-badge {
    background-color: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.preview-gallery {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.featured-preview-image {
    max-width: 300px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-preview {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-preview-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-preview-image:hover {
    transform: scale(1.05);
}

.preview-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.preview-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f3f5;
}

.preview-section h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.preview-section h3 i {
    margin-right: 10px;
    color: #3498db;
}

.preview-section p {
    margin: 8px 0;
    color: #34495e;
    line-height: 1.6;
}

.preview-section p strong {
    color: #2c3e50;
    min-width: 120px;
    display: inline-block;
}

@media (max-width: 768px) {
    .preview-details {
        grid-template-columns: 1fr;
    }
    
    .preview-gallery {
        flex-direction: column;
    }
    
    .featured-preview-image {
        max-width: 100%;
        max-height: 400px;
    }
    
    .gallery-preview {
        flex-wrap: wrap;
    }
    
    .gallery-preview-image {
        width: calc(50% - 10px);
        height: auto;
        aspect-ratio: 1/1;
    }
}

/* Konum alanı için genişlik ayarı */
.preview-details .preview-section:first-child {
    grid-column: 1 / -1; /* Tüm sütunları kapla */
    width: 100%; /* Genişliği %100 yap */
}

/* Featured image error durumu */
.featured-image-upload.error {
    border: 2px solid #e74c3c !important;
    background: #fdf2f2 !important;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3) !important;
}

.featured-image-upload.error .upload-placeholder {
    color: #e74c3c !important;
}

.featured-image-upload.error .upload-icon {
    color: #e74c3c !important;
}

.image-preview.error {
    border: 2px solid #e74c3c !important;
    background: #fdf2f2 !important;
}

/* Error mesajı */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}
