/**
 * Mutfak Form Stili - Geliştirilmiş Versiyon
 */

/* Genel form konteyner */
.kitchen-quotation-form-container {
    max-width: 960px;
    margin: 0 auto 40px;
    font-family: 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    padding: 30px;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

/* Form başlığı */
.kitchen-form-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* İlerleme adımları */
.kitchen-form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.kitchen-form-step {
    flex: 1;
    text-align: center;
    padding: 12px 15px;
    font-size: 15px;
    color: #888;
    position: relative;
    min-width: 110px;
    border-bottom: 3px solid #ddd;
    transition: all 0.3s ease;
    font-weight: 500;
}

.kitchen-form-step.active {
    color: #4CAF50;
    font-weight: 600;
    border-color: #4CAF50;
}

.kitchen-form-step.completed {
    color: #4CAF50;
    border-color: #4CAF50;
}

/* İlerleme çubuğu */
.kitchen-form-progress-container {
    margin-bottom: 35px;
}

.kitchen-form-progress-bar {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kitchen-form-progress {
    height: 100%;
    width: 20%;
    background-color: #4CAF50;
    transition: width 0.5s ease;
}

/* Form bölümleri */
.kitchen-form-section {
    display: none;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
}

.kitchen-form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Bölüm başlığı */
.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* Seçenekler grid yapısı */
.kitchen-form-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

/* Seçenek öğesi - sabit yükseklik ve genişlik için düzenlemeler */
.kitchen-form-option-item {
    display: flex;
    flex-direction: column;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #fafafa;
    height: 370px; /* Sabit yükseklik */
    box-sizing: border-box;
}

.kitchen-form-option-item:hover {
    border-color: #bbb;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.kitchen-form-option-item.selected {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.15);
}

/* Görsel için sabit boyut ve fit özellikleri */
.option-image {
    height: 220px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; /* Görsel boyutunun küçülmesini engeller */
}

.kitchen-form-option-item:hover .option-image {
    transform: scale(1.02);
}

/* Başlık ve açıklama için alan düzenlemesi */
.option-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
    line-height: 1.3;
}

.option-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 15px;
    /* Çok uzun açıklamalar için taşma kontrolü */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1; /* Esnek büyüme ile boş alanı doldurur */
}

/* İşaretleme checkbox'ı */
.option-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    right: 15px;
    transition: all 0.3s ease;
    background: white;
    z-index: 2;
}

.kitchen-form-option-item.selected .option-checkbox {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.kitchen-form-option-item.selected .option-checkbox:after {
    content: '\2713';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Uzunluk girişleri */
.length-inputs-container {
    margin-top: 25px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.length-input-field {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.length-input-field label {
    width: 220px;
    margin-right: 15px;
    font-weight: 500;
    color: #444;
}

.length-input {
    width: 120px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
}

.length-input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.input-suffix {
    margin-left: 10px;
    font-weight: 500;
    color: #666;
}

/* Aksesuar adet kontrolleri */
.quantity-control {
    display: none;
    margin-top: 15px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: rgba(76, 175, 80, 0.08);
    border-radius: 6px;
}

.kitchen-form-option-item.selected .quantity-control {
    display: flex;
}

.quantity-button {
    background-color: white;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #444;
    font-weight: bold;
}

.quantity-button:hover {
    background: #f0f0f0;
}

.quantity-button.decrease {
    color: #f44336;
}

.quantity-button.increase {
    color: #4CAF50;
}

.quantity {
    width: 45px;
    text-align: center;
    margin: 0 10px;
    font-weight: 600;
    font-size: 16px;
    background: white;
    padding: 5px 0;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* Müşteri bilgileri formu */
.customer-info-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.customer-info-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.customer-info-field:focus {
    border-color: #4CAF50;
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

textarea.customer-info-field {
    height: 150px;
    resize: vertical;
    line-height: 1.5;
}

/* Navigasyon butonları */
.kitchen-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.kitchen-form-prev,
.kitchen-form-next,
.kitchen-form-submit {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.kitchen-form-prev {
    background-color: #757575;
}

.kitchen-form-next,
.kitchen-form-submit {
    background-color: #2196F3;
}

.kitchen-form-prev:hover {
    background-color: #616161;
    transform: translateY(-2px);
}

.kitchen-form-next:hover,
.kitchen-form-submit:hover {
    background-color: #1e88e5;
    transform: translateY(-2px);
}

/* Hata mesajları */
.error-message {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    font-weight: 500;
    display: block;
    padding: 5px 0;
}

.has-error {
    border-color: #f44336 !important;
}

.kitchen-form-message {
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    font-size: 16px;
}

.kitchen-form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.kitchen-form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Özet görünümü */
.kitchen-form-summary {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.summary-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.summary-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.summary-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.summary-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 20px;
    font-weight: 600;
}

.customer-details table {
    width: 100%;
    border-collapse: collapse;
}

.customer-details td {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
}

.customer-details td:first-child {
    font-weight: 600;
    width: 40%;
    color: #444;
}

.total-price-box {
    grid-column: 1 / -1;
    text-align: center;
    background-color: #e8f5e9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.15);
    border: 1px solid #c8e6c9;
}

.total-price-label {
    font-size: 20px;
    font-weight: 600;
    margin-right: 10px;
    color: #2e7d32;
}

.total-price-value {
    font-size: 28px;
    font-weight: 700;
    color: #4CAF50;
}

.calculation-details {
    grid-column: 1 / -1;
}

.summary-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.summary-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    font-weight: 600;
}

.accessories-list {
    padding-left: 25px;
    margin-bottom: 15px;
}

.accessories-list li {
    margin-bottom: 8px;
    padding: 5px 0;
    color: #444;
}

.price-line {
    text-align: right;
    font-weight: 600;
    color: #4CAF50;
    font-size: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}
.lengths-list {
    margin: 10px 0 10px 20px;
    padding-left: 0;
    list-style: none;
}

.lengths-list li {
    padding: 3px 0;
    color: #555;
}
/* Responsive tasarım */
@media screen and (max-width: 768px) {
	 .kitchen-form-options {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
	.kitchen-form-option-item {
        height: auto; /* Mobilde yükseklik sınırlamasını kaldır */
        min-height: 320px;
    }
	.option-image {
        height: 180px; /* Mobilde daha küçük görsel */
    }
    .kitchen-quotation-form-container {
        padding: 20px 15px;
        font-size: 15px;
    }
    
    .kitchen-form-title {
        font-size: 24px;
    }
    
    .kitchen-form-option-item {
        flex: 1 1 100%;
    }
    
    .customer-info-form {
        grid-template-columns: 1fr;
    }
    
    .summary-content {
        grid-template-columns: 1fr;
    }
    
    .kitchen-form-step {
        font-size: 13px;
        padding: 8px 5px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .total-price-value {
        font-size: 24px;
    }
}