/**
 * Cam Balkon Hesaplayıcı - Frontend Stiller
 */

.cbh-calculator-wrapper {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #f3f4f6;
}

.cbh-calculator-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.cbh-header {
    text-align: center;
    margin-bottom: 24px;
}

.cbh-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.cbh-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Ürün Özellikleri */
.cbh-info-box {
    background: #eff6ff;
    border: 2px solid #1e40af;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
}

.cbh-info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.cbh-info-content {
    flex: 1;
}

.cbh-info-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 12px 0;
}

.cbh-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cbh-info-list li {
    font-size: 14px;
    color: #1e40af;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.cbh-info-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cbh-info-list li:last-child {
    margin-bottom: 0;
}

/* Form */
.cbh-form {
    margin-top: 24px;
}

.cbh-section {
    margin-bottom: 32px;
}

.cbh-section-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

/* Balkon Tipi Seçimi */
.cbh-type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.cbh-type-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
}

.cbh-type-option:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.cbh-type-option.active {
    border-color: #1e40af;
    background: #bfdbfe;
    border-width: 3px;
}

.cbh-type-icon {
    color: #1e40af;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cbh-type-label {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.cbh-type-desc {
    font-size: 14px;
    color: #6b7280;
}

/* Ölçü Birimi */
.cbh-unit-options {
    display: flex;
    gap: 12px;
}

.cbh-unit-btn {
    flex: 1;
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cbh-unit-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.cbh-unit-btn.active {
    border-color: #1e40af;
    background: #2563eb;
    color: #ffffff;
}

/* Input Alanları */
.cbh-input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.cbh-input-wrapper {
    display: flex;
    flex-direction: column;
}

.cbh-input-wrapper label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.cbh-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.cbh-input:focus {
    outline: none;
    border-color: #2563eb;
}

.cbh-note {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Hesapla Butonu */
.cbh-calculate-btn {
    width: 100%;
    padding: 16px;
    background: #6b7280;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 24px;
}

.cbh-calculate-btn:hover {
    background: #4b5563;
}

.cbh-calculate-btn:active {
    transform: scale(0.98);
}

/* Sonuç */
.cbh-result {
    margin-top: 32px;
    padding: 24px;
    background: #eff6ff;
    border: 2px solid #1e40af;
    border-radius: 12px;
}

.cbh-result-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 16px 0;
}

.cbh-result-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cbh-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
}

.cbh-result-label {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
}

.cbh-result-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.cbh-result-price {
    color: #059669;
    font-size: 24px;
}

/* Hata Mesajı */
.cbh-error {
    margin-top: 16px;
    padding: 16px;
    background: #fef2f2;
    border: 2px solid #ef4444;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .cbh-calculator-wrapper {
        padding: 10px;
    }
    
    .cbh-calculator-card {
        padding: 20px;
    }
    
    .cbh-type-options {
        grid-template-columns: 1fr;
    }
    
    .cbh-input-group {
        grid-template-columns: 1fr;
    }
}

