:root {
    --kc-primary: #2563eb;
    --kc-secondary: #1d4ed8;
    --kc-accent: #3b82f6;
    --kc-text: #1f2937;
    --kc-bg: #ffffff;
    --kc-border: #e5e7eb;
    --kc-success: #10b981;
}

* {
    box-sizing: border-box;
}

.kc-calculator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--kc-text);
    line-height: 1.6;
}

.kc-container {
    display: flex;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 16px;
}

.kc-main {
    flex: 1;
    max-width: 900px;
}

.kc-progress {
    background: white;
    border: 1px solid var(--kc-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.kc-progress-bar {
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.kc-progress-fill {
    height: 100%;
    background: var(--kc-primary);
    transition: width 0.3s ease;
    width: 12.5%;
}

.kc-progress-text {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.kc-content {
    background: white;
    border: 1px solid var(--kc-border);
    border-radius: 8px;
    padding: 32px;
    min-height: 400px;
    margin-bottom: 24px;
}

.kc-step {
    display: none;
}

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

.kc-step h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--kc-text);
    margin: 0 0 8px 0;
}

.kc-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 24px 0;
}

.kc-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.kc-option-card {
    background: #fafbfc;
    border: 2px solid var(--kc-border);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kc-option-card:hover {
    border-color: var(--kc-primary);
    transform: translateY(-2px);
}

.kc-option-card.kc-selected {
    background: var(--kc-highlight);
    border-color: var(--kc-primary);
}

.kc-option-svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px auto;
}

.kc-option-svg svg {
    width: 100%;
    height: 100%;
}

.kc-option-icon {
    font-size: 36px;
    color: var(--kc-primary);
    margin-bottom: 12px;
}

.kc-option-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.kc-option-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.kc-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.kc-input-field {
    margin-bottom: 16px;
}

.kc-input-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--kc-text);
}

.kc-input-field input,
.kc-input-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--kc-border);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.kc-input-field input:focus,
.kc-input-field textarea:focus {
    outline: none;
    border-color: var(--kc-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.kc-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kc-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafbfc;
    border: 2px solid var(--kc-border);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kc-option-row:hover {
    border-color: var(--kc-primary);
}

.kc-option-row.kc-selected {
    background: var(--kc-highlight);
    border-color: var(--kc-primary);
}

.kc-option-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px 0;
}

.kc-option-info p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.kc-option-badge {
    background: var(--kc-highlight);
    color: var(--kc-primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.kc-badge-success {
    background: #f0fdf4;
    color: var(--kc-success);
}

.kc-color-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #92400e;
}

.kc-color-warning i {
    color: #f59e0b;
    font-size: 16px;
}

.kc-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.kc-color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 2px solid var(--kc-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kc-color-option:hover {
    border-color: var(--kc-primary);
}

.kc-color-option.kc-selected {
    border-color: var(--kc-primary);
    background: var(--kc-highlight);
}

.kc-color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 6px;
}

.kc-color-option span {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.kc-color-custom {
    background: linear-gradient(135deg, #f3f4f6 25%, #e5e7eb 25%, #e5e7eb 50%, #f3f4f6 50%, #f3f4f6 75%, #e5e7eb 75%, #e5e7eb);
    background-size: 8px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.kc-openslaande-types,
.kc-raamkozijn-types {
    animation: fadeIn 0.3s ease;
}

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

.kc-extras-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kc-checkbox-option {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fafbfc;
    border: 2px solid var(--kc-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kc-checkbox-option:hover {
    border-color: var(--kc-primary);
}

.kc-checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.kc-checkbox-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.kc-checkbox-title {
    font-size: 14px;
    font-weight: 500;
}

.kc-checkbox-price {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.kc-multi-product-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kc-form-fields {
    display: flex;
    flex-direction: column;
}

.kc-navigation {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.kc-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

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

.kc-btn-primary:hover {
    background: var(--kc-secondary);
}

.kc-btn-success {
    background: var(--kc-success);
    color: white;
}

.kc-btn-success:hover {
    background: #059669;
}

.kc-btn-outline {
    background: white;
    color: var(--kc-primary);
    border: 2px solid var(--kc-primary);
}

.kc-btn-outline:hover {
    background: var(--kc-highlight);
}

.kc-sidebar {
    width: 380px;
    flex-shrink: 0;
}

.kc-summary {
    position: sticky;
    top: 20px;
    background: white;
    border: 1px solid var(--kc-border);
    border-radius: 8px;
    overflow: hidden;
}

.kc-summary h3 {
    background: white;
    color: var(--kc-text);
    padding: 32px 24px 24px 24px;
margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--kc-border);
  padding-top: 15px !important;
  padding-left: 15px !important;
  padding-bottom: 15px !important;
    }
.kc-products-list {
    padding: 16px;
}

.kc-product-item {
    background: #fafbfc;
    border: 1px solid var(--kc-border);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

.kc-product-item:last-child {
    margin-bottom: 0;
}

.kc-product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--kc-border);
}

.kc-product-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--kc-primary);
}

.kc-product-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.kc-product-edit,
.kc-product-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.kc-product-edit {
    color: var(--kc-primary);
}

.kc-product-edit:hover {
    color: var(--kc-secondary);
    transform: scale(1.1);
}

.kc-product-delete {
    color: #ef4444;
}

.kc-product-delete:hover {
    color: #dc2626;
    transform: scale(1.1);
}

.kc-product-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    margin: 4px 0;
    background: white;
    border-radius: 4px;
    font-size: 12px;
    color: #4b5563;
}

.kc-product-detail i {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kc-primary);
    background: var(--kc-highlight);
    border-radius: 3px;
    font-size: 10px;
}

.kc-subsidy-info {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    margin: 16px;
    overflow: hidden;
}

.kc-subsidy-header {
    background: var(--kc-success);
    color: white;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
}

.kc-subsidy-body {
    padding: 16px;
}

.kc-subsidy-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--kc-success);
    margin-bottom: 12px;
}

.kc-subsidy-details {
    background: white;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 12px;
}

.kc-subsidy-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 6px 0;
    font-size: 11px;
}

.kc-subsidy-row:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

.kc-subsidy-row span:first-child {
    color: #6b7280;
}

.kc-subsidy-row span:last-child {
    font-weight: 600;
    color: #065f46;
    text-align: right;
    white-space: nowrap;
}

.kc-total-section {
    padding: 16px;
    border-top: 2px solid var(--kc-border);
}

.kc-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.kc-total-amount {
    color: var(--kc-primary);
    font-size: 20px;
}

.kc-summary-note {
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid var(--kc-border);
}

.kc-summary-note p {
    margin: 0;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .kc-container {
        flex-direction: column;
    }
    
    .kc-sidebar {
        width: 100%;
        order: -1;
    }
    
    .kc-summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .kc-input-group {
        grid-template-columns: 1fr;
    }
    
    .kc-options-grid {
        grid-template-columns: 1fr;
    }
    
    .kc-navigation {
        flex-direction: column;
    }
    
    .kc-btn {
        width: 100%;
        justify-content: center;
    }
}
